From bd05f31ce3c2899d487666dfeb93c6f865b8ec8f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 30 Mar 2026 19:03:31 +0000 Subject: [PATCH 1/4] feat: Add Pausing/Yaml capabilities to public protos PiperOrigin-RevId: 891736643 Source-Link: https://github.com/googleapis/googleapis/commit/3aab7be0b0d609d001b4769ff89a4312f2152fba Source-Link: https://github.com/googleapis/googleapis-gen/commit/3b982464a1fde64933e0073692b551df958cda68 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmbG93LXYxYmV0YTMvLk93bEJvdC55YW1sIiwiaCI6IjNiOTgyNDY0YTFmZGU2NDkzM2UwMDczNjkyYjU1MWRmOTU4Y2RhNjgifQ== --- .../google-cloud-dataflow-v1beta3/.gitignore | 22 + .../.repo-metadata.json | 19 + .../.rubocop.yml | 33 + .../google-cloud-dataflow-v1beta3/.toys.rb | 28 + .../google-cloud-dataflow-v1beta3/.yardopts | 12 + .../AUTHENTICATION.md | 122 ++ .../CHANGELOG.md | 2 + .../google-cloud-dataflow-v1beta3/Gemfile | 14 + .../google-cloud-dataflow-v1beta3/LICENSE.md | 201 +++ .../google-cloud-dataflow-v1beta3/README.md | 154 +++ .../google-cloud-dataflow-v1beta3/Rakefile | 169 +++ .../gapic_metadata.json | 153 +++ .../google-cloud-dataflow-v1beta3.gemspec | 28 + .../lib/google-cloud-dataflow-v1beta3.rb | 21 + .../lib/google/cloud/dataflow/v1beta3.rb | 50 + .../v1beta3/flex_templates_service.rb | 54 + .../v1beta3/flex_templates_service/client.rb | 484 +++++++ .../flex_templates_service/credentials.rb | 52 + .../v1beta3/flex_templates_service/rest.rb | 51 + .../flex_templates_service/rest/client.rb | 431 ++++++ .../rest/service_stub.rb | 144 ++ .../lib/google/cloud/dataflow/v1beta3/jobs.rb | 55 + .../cloud/dataflow/v1beta3/jobs/client.rb | 1170 +++++++++++++++++ .../dataflow/v1beta3/jobs/credentials.rb | 52 + .../cloud/dataflow/v1beta3/jobs/rest.rb | 52 + .../dataflow/v1beta3/jobs/rest/client.rb | 977 ++++++++++++++ .../v1beta3/jobs/rest/service_stub.rb | 499 +++++++ .../google/cloud/dataflow/v1beta3/messages.rb | 54 + .../cloud/dataflow/v1beta3/messages/client.rb | 514 ++++++++ .../dataflow/v1beta3/messages/credentials.rb | 52 + .../cloud/dataflow/v1beta3/messages/rest.rb | 51 + .../dataflow/v1beta3/messages/rest/client.rb | 458 +++++++ .../v1beta3/messages/rest/service_stub.rb | 152 +++ .../google/cloud/dataflow/v1beta3/metrics.rb | 54 + .../cloud/dataflow/v1beta3/metrics/client.rb | 745 +++++++++++ .../dataflow/v1beta3/metrics/credentials.rb | 52 + .../cloud/dataflow/v1beta3/metrics/rest.rb | 51 + .../dataflow/v1beta3/metrics/rest/client.rb | 660 ++++++++++ .../v1beta3/metrics/rest/service_stub.rb | 279 ++++ .../lib/google/cloud/dataflow/v1beta3/rest.rb | 42 + .../cloud/dataflow/v1beta3/snapshots.rb | 54 + .../dataflow/v1beta3/snapshots/client.rb | 688 ++++++++++ .../dataflow/v1beta3/snapshots/credentials.rb | 52 + .../cloud/dataflow/v1beta3/snapshots/rest.rb | 51 + .../dataflow/v1beta3/snapshots/rest/client.rb | 606 +++++++++ .../v1beta3/snapshots/rest/service_stub.rb | 300 +++++ .../dataflow/v1beta3/templates_service.rb | 54 + .../v1beta3/templates_service/client.rb | 730 ++++++++++ .../v1beta3/templates_service/credentials.rb | 52 + .../v1beta3/templates_service/rest.rb | 51 + .../v1beta3/templates_service/rest/client.rb | 657 +++++++++ .../templates_service/rest/service_stub.rb | 292 ++++ .../google/cloud/dataflow/v1beta3/version.rb | 28 + .../google/dataflow/v1beta3/environment_pb.rb | 43 + .../lib/google/dataflow/v1beta3/jobs_pb.rb | 69 + .../dataflow/v1beta3/jobs_services_pb.rb | 93 ++ .../google/dataflow/v1beta3/messages_pb.rb | 33 + .../dataflow/v1beta3/messages_services_pb.rb | 51 + .../lib/google/dataflow/v1beta3/metrics_pb.rb | 47 + .../dataflow/v1beta3/metrics_services_pb.rb | 60 + .../google/dataflow/v1beta3/snapshots_pb.rb | 33 + .../dataflow/v1beta3/snapshots_services_pb.rb | 49 + .../google/dataflow/v1beta3/streaming_pb.rb | 34 + .../google/dataflow/v1beta3/templates_pb.rb | 51 + .../dataflow/v1beta3/templates_services_pb.rb | 84 ++ .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 589 +++++++++ .../proto_docs/google/api/field_behavior.rb | 85 ++ .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 ++++ .../google/dataflow/v1beta3/environment.rb | 676 ++++++++++ .../google/dataflow/v1beta3/jobs.rb | 1100 ++++++++++++++++ .../google/dataflow/v1beta3/messages.rb | 225 ++++ .../google/dataflow/v1beta3/metrics.rb | 517 ++++++++ .../google/dataflow/v1beta3/snapshots.rb | 160 +++ .../google/dataflow/v1beta3/streaming.rb | 292 ++++ .../google/dataflow/v1beta3/templates.rb | 856 ++++++++++++ .../proto_docs/google/protobuf/any.rb | 145 ++ .../proto_docs/google/protobuf/duration.rb | 98 ++ .../proto_docs/google/protobuf/field_mask.rb | 229 ++++ .../proto_docs/google/protobuf/struct.rb | 108 ++ .../proto_docs/google/protobuf/timestamp.rb | 127 ++ .../proto_docs/google/rpc/status.rb | 48 + .../snippets/Gemfile | 32 + .../launch_flex_template.rb | 47 + .../snippets/jobs/aggregated_list_jobs.rb | 51 + .../snippets/jobs/check_active_jobs.rb | 47 + .../snippets/jobs/create_job.rb | 47 + .../snippets/jobs/get_job.rb | 47 + .../snippets/jobs/list_jobs.rb | 51 + .../snippets/jobs/snapshot_job.rb | 47 + .../snippets/jobs/update_job.rb | 47 + .../snippets/messages/list_job_messages.rb | 51 + .../metrics/get_job_execution_details.rb | 51 + .../snippets/metrics/get_job_metrics.rb | 47 + .../metrics/get_stage_execution_details.rb | 51 + .../snippets/snapshots/delete_snapshot.rb | 47 + .../snippets/snapshots/get_snapshot.rb | 47 + .../snippets/snapshots/list_snapshots.rb | 47 + ...ppet_metadata_google.dataflow.v1beta3.json | 735 +++++++++++ .../create_job_from_template.rb | 47 + .../templates_service/get_template.rb | 47 + .../templates_service/launch_template.rb | 47 + .../flex_templates_service_rest_test.rb | 156 +++ .../v1beta3/flex_templates_service_test.rb | 168 +++ .../cloud/dataflow/v1beta3/jobs_rest_test.rb | 451 +++++++ .../cloud/dataflow/v1beta3/jobs_test.rb | 579 ++++++++ .../dataflow/v1beta3/messages_rest_test.rb | 160 +++ .../cloud/dataflow/v1beta3/messages_test.rb | 181 +++ .../dataflow/v1beta3/metrics_rest_test.rb | 275 ++++ .../cloud/dataflow/v1beta3/metrics_test.rb | 316 +++++ .../dataflow/v1beta3/snapshots_rest_test.rb | 267 ++++ .../cloud/dataflow/v1beta3/snapshots_test.rb | 290 ++++ .../v1beta3/templates_service_rest_test.rb | 273 ++++ .../v1beta3/templates_service_test.rb | 305 +++++ .../test/helper.rb | 26 + 116 files changed, 23112 insertions(+) create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/README.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore b/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json new file mode 100644 index 000000000000..01533f5ff2d7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json @@ -0,0 +1,19 @@ +{ + "api_id": "dataflow.googleapis.com", + "api_shortname": "dataflow", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest", + "distribution_name": "google-cloud-dataflow-v1beta3", + "is_cloud": true, + "language": "ruby", + "name": "dataflow", + "name_pretty": "Dataflow V1beta3 API", + "product_documentation": "https://cloud.google.com/dataflow", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details.", + "ruby-cloud-env-prefix": "DATAFLOW", + "ruby-cloud-product-url": "https://cloud.google.com/dataflow", + "ruby-cloud-service-override": "JobsV1Beta3=Jobs;MessagesV1Beta3=Messages;MetricsV1Beta3=Metrics;SnapshotsV1Beta3=Snapshots", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml b/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml new file mode 100644 index 000000000000..4c6e4d8dc75b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-dataflow-v1beta3.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-dataflow-v1beta3.rb" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts b/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts new file mode 100644 index 000000000000..13c1196b1b73 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Dataflow V1beta3 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md new file mode 100644 index 000000000000..0f4275c66d02 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-dataflow-v1beta3 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-dataflow-v1beta3 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/dataflow/v1beta3" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/dataflow/v1beta3" + +::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-dataflow-v1beta3 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/dataflow/v1beta3" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md new file mode 100644 index 000000000000..68ecd2146243 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Dataflow V1beta3 API + +Manages Google Cloud Dataflow projects on Google Cloud Platform. + +Dataflow is a managed service for executing a wide variety of data processing patterns. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Dataflow V1beta3 API. Most users should consider using +the main client gem, +[google-cloud-dataflow](https://rubygems.org/gems/google-cloud-dataflow). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-dataflow-v1beta3 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/dataflow.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/dataflow/v1beta3" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new +request = ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new # (request fields as keyword arguments...) +response = client.get_snapshot request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/dataflow) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/dataflow/v1beta3" +require "logger" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-dataflow`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-dataflow-v1beta3`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-dataflow`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-dataflow-v1beta3`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile new file mode 100644 index 000000000000..a659823f1fc9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-dataflow-v1beta3 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["DATAFLOW_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["DATAFLOW_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["DATAFLOW_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or DATAFLOW_TEST_PROJECT=test123 DATAFLOW_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/dataflow/v1beta3/snapshots/credentials" + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["DATAFLOW_PROJECT"] = project + ENV["DATAFLOW_TEST_PROJECT"] = project + ENV["DATAFLOW_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-dataflow-v1beta3 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-dataflow-v1beta3 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-dataflow-v1beta3" + header "google-cloud-dataflow-v1beta3 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-dataflow-v1beta3 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-dataflow-v1beta3 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-dataflow-v1beta3 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-dataflow-v1beta3 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json new file mode 100644 index 000000000000..f1f58ae8185e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json @@ -0,0 +1,153 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.dataflow.v1beta3", + "libraryPackage": "::Google::Cloud::Dataflow::V1beta3", + "services": { + "SnapshotsV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client", + "rpcs": { + "GetSnapshot": { + "methods": [ + "get_snapshot" + ] + }, + "DeleteSnapshot": { + "methods": [ + "delete_snapshot" + ] + }, + "ListSnapshots": { + "methods": [ + "list_snapshots" + ] + } + } + } + } + }, + "JobsV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client", + "rpcs": { + "CreateJob": { + "methods": [ + "create_job" + ] + }, + "GetJob": { + "methods": [ + "get_job" + ] + }, + "UpdateJob": { + "methods": [ + "update_job" + ] + }, + "ListJobs": { + "methods": [ + "list_jobs" + ] + }, + "AggregatedListJobs": { + "methods": [ + "aggregated_list_jobs" + ] + }, + "CheckActiveJobs": { + "methods": [ + "check_active_jobs" + ] + }, + "SnapshotJob": { + "methods": [ + "snapshot_job" + ] + } + } + } + } + }, + "MessagesV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Messages::Client", + "rpcs": { + "ListJobMessages": { + "methods": [ + "list_job_messages" + ] + } + } + } + } + }, + "MetricsV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client", + "rpcs": { + "GetJobMetrics": { + "methods": [ + "get_job_metrics" + ] + }, + "GetJobExecutionDetails": { + "methods": [ + "get_job_execution_details" + ] + }, + "GetStageExecutionDetails": { + "methods": [ + "get_stage_execution_details" + ] + } + } + } + } + }, + "TemplatesService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client", + "rpcs": { + "CreateJobFromTemplate": { + "methods": [ + "create_job_from_template" + ] + }, + "LaunchTemplate": { + "methods": [ + "launch_template" + ] + }, + "GetTemplate": { + "methods": [ + "get_template" + ] + } + } + } + } + }, + "FlexTemplatesService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client", + "rpcs": { + "LaunchFlexTemplate": { + "methods": [ + "launch_flex_template" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec b/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec new file mode 100644 index 000000000000..db5ea1646266 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec @@ -0,0 +1,28 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/dataflow/v1beta3/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-dataflow-v1beta3" + gem.version = Google::Cloud::Dataflow::V1beta3::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details." + gem.summary = "Manages Google Cloud Dataflow projects on Google Cloud Platform." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb new file mode 100644 index 000000000000..aa5266cf801f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/dataflow/v1beta3" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb new file mode 100644 index 000000000000..b7d17030dc2c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataflow/v1beta3/snapshots" +require "google/cloud/dataflow/v1beta3/jobs" +require "google/cloud/dataflow/v1beta3/messages" +require "google/cloud/dataflow/v1beta3/metrics" +require "google/cloud/dataflow/v1beta3/templates_service" +require "google/cloud/dataflow/v1beta3/flex_templates_service" +require "google/cloud/dataflow/v1beta3/version" + +module Google + module Cloud + module Dataflow + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module V1beta3 + end + end + end +end + +helper_path = ::File.join __dir__, "v1beta3", "_helpers.rb" +require "google/cloud/dataflow/v1beta3/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb new file mode 100644 index 000000000000..f8e1d85debf6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" +require "google/cloud/dataflow/v1beta3/flex_templates_service/client" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a service for Flex templates. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/flex_templates_service" + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + module FlexTemplatesService + end + end + end + end +end + +helper_path = ::File.join __dir__, "flex_templates_service", "helpers.rb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb new file mode 100644 index 000000000000..61043b858993 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb @@ -0,0 +1,484 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + ## + # Client for the FlexTemplatesService service. + # + # Provides a service for Flex templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :flex_templates_service_stub + + ## + # Configure the FlexTemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FlexTemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FlexTemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @flex_templates_service_stub.universe_domain + end + + ## + # Create a new FlexTemplatesService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FlexTemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/templates_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @flex_templates_service_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @flex_templates_service_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @flex_templates_service_stub.logger + end + + # Service calls + + ## + # Launch a job with a FlexTemplate. + # + # @overload launch_flex_template(request, options = nil) + # Pass arguments to `launch_flex_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) + # Pass arguments to `launch_flex_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] + # Required. Parameter to launch a job form Flex Template. + # @param location [::String] + # Required. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. E.g., us-central1, us-west1. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new + # + # # Call the launch_flex_template method. + # result = client.launch_flex_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + # p result + # + def launch_flex_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.launch_flex_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.launch_flex_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @flex_templates_service_stub.call_rpc :launch_flex_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the FlexTemplatesService API. + # + # This class represents the configuration for FlexTemplatesService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # launch_flex_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FlexTemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `launch_flex_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_flex_template + + # @private + def initialize parent_rpcs = nil + launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template + @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb new file mode 100644 index 000000000000..a524500610ca --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + # Credentials for the FlexTemplatesService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb new file mode 100644 index 000000000000..3aadfffacf19 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a service for Flex templates. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + module FlexTemplatesService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb new file mode 100644 index 000000000000..6cf8063060b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb @@ -0,0 +1,431 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + module Rest + ## + # REST client for the FlexTemplatesService service. + # + # Provides a service for Flex templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :flex_templates_service_stub + + ## + # Configure the FlexTemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FlexTemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FlexTemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @flex_templates_service_stub.universe_domain + end + + ## + # Create a new FlexTemplatesService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FlexTemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @flex_templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @flex_templates_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @flex_templates_service_stub.logger + end + + # Service calls + + ## + # Launch a job with a FlexTemplate. + # + # @overload launch_flex_template(request, options = nil) + # Pass arguments to `launch_flex_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) + # Pass arguments to `launch_flex_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] + # Required. Parameter to launch a job form Flex Template. + # @param location [::String] + # Required. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. E.g., us-central1, us-west1. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new + # + # # Call the launch_flex_template method. + # result = client.launch_flex_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + # p result + # + def launch_flex_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.launch_flex_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.launch_flex_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @flex_templates_service_stub.launch_flex_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the FlexTemplatesService REST API. + # + # This class represents the configuration for FlexTemplatesService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # launch_flex_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the FlexTemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `launch_flex_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_flex_template + + # @private + def initialize parent_rpcs = nil + launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template + @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb new file mode 100644 index 000000000000..a7f2edb4872a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb @@ -0,0 +1,144 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + module Rest + ## + # REST service stub for the FlexTemplatesService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the launch_flex_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # A result object deserialized from the server's reply + def launch_flex_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_launch_flex_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "launch_flex_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the launch_flex_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_launch_flex_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb new file mode 100644 index 000000000000..c0cacf23c900 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/jobs/credentials" +require "google/cloud/dataflow/v1beta3/jobs/client" +require "google/cloud/dataflow/v1beta3/jobs/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/jobs" + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/jobs/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + module Jobs + end + end + end + end +end + +helper_path = ::File.join __dir__, "jobs", "helpers.rb" +require "google/cloud/dataflow/v1beta3/jobs/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb new file mode 100644 index 000000000000..4cb43685a643 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb @@ -0,0 +1,1170 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/jobs_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + ## + # Client for the Jobs service. + # + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :jobs_stub + + ## + # Configure the Jobs Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Jobs clients + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Jobs Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @jobs_stub.universe_domain + end + + ## + # Create a new Jobs client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Jobs client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/jobs_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @jobs_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::JobsV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @jobs_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @jobs_stub.logger + end + + # Service calls + + ## + # Creates a Dataflow job. + # + # To create a job, we recommend using `projects.locations.jobs.create` with a + # [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.create` is not recommended, as your job will always start + # in `us-central1`. + # + # Do not enter confidential information when you supply string values using + # the API. + # + # @overload create_job(request, options = nil) + # Pass arguments to `create_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) + # Pass arguments to `create_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The job to create. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param replace_job_id [::String] + # Deprecated. This field is now in the Job message. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new + # + # # Call the create_job method. + # result = client.create_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :create_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the state of the specified Cloud Dataflow job. + # + # To get the state of a job, we recommend using `projects.locations.jobs.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.get` is not recommended, as you can only get the state of + # jobs that are running in `us-central1`. + # + # @overload get_job(request, options = nil) + # Pass arguments to `get_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) + # Pass arguments to `get_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new + # + # # Call the get_job method. + # result = client.get_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def get_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :get_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the state of an existing Cloud Dataflow job. + # + # To update the state of an existing job, we recommend using + # `projects.locations.jobs.update` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.update` is not recommended, as you can only update the state + # of jobs that are running in `us-central1`. + # + # @overload update_job(request, options = nil) + # Pass arguments to `update_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) + # Pass arguments to `update_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The updated job. + # Only the job state is updatable; other fields will be ignored. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # The list of fields to update relative to Job. If empty, only + # RequestedJobState will be considered for update. If the FieldMask is not + # empty and RequestedJobState is none/empty, The fields specified in the + # update mask will be the only ones considered for update. If both + # RequestedJobState and update_mask are specified, an error will be returned + # as we cannot update both state and mask. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new + # + # # Call the update_job method. + # result = client.update_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def update_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :update_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project. + # + # To list the jobs of a project in a region, we recommend using + # `projects.locations.jobs.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To + # list the all jobs across all regions, use `projects.jobs.aggregated`. Using + # `projects.jobs.list` is not recommended, because you can only get the list + # of jobs that are running in `us-central1`. + # + # `projects.locations.jobs.list` and `projects.jobs.list` support filtering + # the list of jobs by name. Filtering by name isn't supported by + # `projects.jobs.aggregated`. + # + # @overload list_jobs(request, options = nil) + # Pass arguments to `list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the list_jobs method. + # result = client.list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :list_jobs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @jobs_stub, :list_jobs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project across all regions. + # + # **Note:** This method doesn't support filtering the list of + # jobs by name. + # + # @overload aggregated_list_jobs(request, options = nil) + # Pass arguments to `aggregated_list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the aggregated_list_jobs method. + # result = client.aggregated_list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def aggregated_list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :aggregated_list_jobs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Check for existence of active jobs in the given project across all regions. + # + # @overload check_active_jobs(request, options = nil) + # Pass arguments to `check_active_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload check_active_jobs(project_id: nil) + # Pass arguments to `check_active_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project which owns the jobs. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new + # + # # Call the check_active_jobs method. + # result = client.check_active_jobs request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. + # p result + # + def check_active_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.check_active_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.check_active_jobs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.check_active_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :check_active_jobs, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Snapshot the state of a streaming job. + # + # @overload snapshot_job(request, options = nil) + # Pass arguments to `snapshot_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) + # Pass arguments to `snapshot_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project which owns the job to be snapshotted. + # @param job_id [::String] + # The job to be snapshotted. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # TTL for the snapshot. + # @param location [::String] + # The location that contains this job. + # @param snapshot_sources [::Boolean] + # If true, perform snapshots for sources which support this. + # @param description [::String] + # User specified description of the snapshot. Maybe empty. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new + # + # # Call the snapshot_job method. + # result = client.snapshot_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def snapshot_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.snapshot_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.snapshot_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :snapshot_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Jobs API. + # + # This class represents the configuration for Jobs, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Jobs API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job + ## + # RPC-specific configuration for `get_job` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job + ## + # RPC-specific configuration for `update_job` + # @return [::Gapic::Config::Method] + # + attr_reader :update_job + ## + # RPC-specific configuration for `list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_jobs + ## + # RPC-specific configuration for `aggregated_list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregated_list_jobs + ## + # RPC-specific configuration for `check_active_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :check_active_jobs + ## + # RPC-specific configuration for `snapshot_job` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_job + + # @private + def initialize parent_rpcs = nil + create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job + @create_job = ::Gapic::Config::Method.new create_job_config + get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job + @get_job = ::Gapic::Config::Method.new get_job_config + update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job + @update_job = ::Gapic::Config::Method.new update_job_config + list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs + @list_jobs = ::Gapic::Config::Method.new list_jobs_config + aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs + @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config + check_active_jobs_config = parent_rpcs.check_active_jobs if parent_rpcs.respond_to? :check_active_jobs + @check_active_jobs = ::Gapic::Config::Method.new check_active_jobs_config + snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job + @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb new file mode 100644 index 000000000000..f99e81697289 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + # Credentials for the Jobs API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb new file mode 100644 index 000000000000..b2134dbdc152 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/jobs/credentials" +require "google/cloud/dataflow/v1beta3/jobs/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/jobs/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + module Jobs + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/jobs/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb new file mode 100644 index 000000000000..d38727616da7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb @@ -0,0 +1,977 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/jobs_pb" +require "google/cloud/dataflow/v1beta3/jobs/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + module Rest + ## + # REST client for the Jobs service. + # + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :jobs_stub + + ## + # Configure the Jobs Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Jobs clients + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Jobs Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @jobs_stub.universe_domain + end + + ## + # Create a new Jobs REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Jobs client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @jobs_stub = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @jobs_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @jobs_stub.logger + end + + # Service calls + + ## + # Creates a Dataflow job. + # + # To create a job, we recommend using `projects.locations.jobs.create` with a + # [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.create` is not recommended, as your job will always start + # in `us-central1`. + # + # Do not enter confidential information when you supply string values using + # the API. + # + # @overload create_job(request, options = nil) + # Pass arguments to `create_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) + # Pass arguments to `create_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The job to create. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param replace_job_id [::String] + # Deprecated. This field is now in the Job message. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new + # + # # Call the create_job method. + # result = client.create_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.create_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the state of the specified Cloud Dataflow job. + # + # To get the state of a job, we recommend using `projects.locations.jobs.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.get` is not recommended, as you can only get the state of + # jobs that are running in `us-central1`. + # + # @overload get_job(request, options = nil) + # Pass arguments to `get_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) + # Pass arguments to `get_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new + # + # # Call the get_job method. + # result = client.get_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def get_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.get_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the state of an existing Cloud Dataflow job. + # + # To update the state of an existing job, we recommend using + # `projects.locations.jobs.update` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.update` is not recommended, as you can only update the state + # of jobs that are running in `us-central1`. + # + # @overload update_job(request, options = nil) + # Pass arguments to `update_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) + # Pass arguments to `update_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The updated job. + # Only the job state is updatable; other fields will be ignored. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # The list of fields to update relative to Job. If empty, only + # RequestedJobState will be considered for update. If the FieldMask is not + # empty and RequestedJobState is none/empty, The fields specified in the + # update mask will be the only ones considered for update. If both + # RequestedJobState and update_mask are specified, an error will be returned + # as we cannot update both state and mask. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new + # + # # Call the update_job method. + # result = client.update_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def update_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.update_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project. + # + # To list the jobs of a project in a region, we recommend using + # `projects.locations.jobs.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To + # list the all jobs across all regions, use `projects.jobs.aggregated`. Using + # `projects.jobs.list` is not recommended, because you can only get the list + # of jobs that are running in `us-central1`. + # + # `projects.locations.jobs.list` and `projects.jobs.list` support filtering + # the list of jobs by name. Filtering by name isn't supported by + # `projects.jobs.aggregated`. + # + # @overload list_jobs(request, options = nil) + # Pass arguments to `list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the list_jobs method. + # result = client.list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.list_jobs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :list_jobs, "jobs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project across all regions. + # + # **Note:** This method doesn't support filtering the list of + # jobs by name. + # + # @overload aggregated_list_jobs(request, options = nil) + # Pass arguments to `aggregated_list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the aggregated_list_jobs method. + # result = client.aggregated_list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def aggregated_list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.aggregated_list_jobs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, "jobs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Snapshot the state of a streaming job. + # + # @overload snapshot_job(request, options = nil) + # Pass arguments to `snapshot_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) + # Pass arguments to `snapshot_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project which owns the job to be snapshotted. + # @param job_id [::String] + # The job to be snapshotted. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # TTL for the snapshot. + # @param location [::String] + # The location that contains this job. + # @param snapshot_sources [::Boolean] + # If true, perform snapshots for sources which support this. + # @param description [::String] + # User specified description of the snapshot. Maybe empty. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new + # + # # Call the snapshot_job method. + # result = client.snapshot_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def snapshot_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.snapshot_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.snapshot_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.snapshot_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Jobs REST API. + # + # This class represents the configuration for Jobs REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Jobs API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job + ## + # RPC-specific configuration for `get_job` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job + ## + # RPC-specific configuration for `update_job` + # @return [::Gapic::Config::Method] + # + attr_reader :update_job + ## + # RPC-specific configuration for `list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_jobs + ## + # RPC-specific configuration for `aggregated_list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregated_list_jobs + ## + # RPC-specific configuration for `snapshot_job` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_job + + # @private + def initialize parent_rpcs = nil + create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job + @create_job = ::Gapic::Config::Method.new create_job_config + get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job + @get_job = ::Gapic::Config::Method.new get_job_config + update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job + @update_job = ::Gapic::Config::Method.new update_job_config + list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs + @list_jobs = ::Gapic::Config::Method.new list_jobs_config + aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs + @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config + snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job + @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb new file mode 100644 index 000000000000..1e94a9ea3e84 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb @@ -0,0 +1,499 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/jobs_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + module Rest + ## + # REST service stub for the Jobs service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the create_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def create_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def get_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def update_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # A result object deserialized from the server's reply + def list_jobs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_jobs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the aggregated_list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # A result object deserialized from the server's reply + def aggregated_list_jobs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_jobs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "aggregated_list_jobs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the snapshot_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # A result object deserialized from the server's reply + def snapshot_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_snapshot_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "snapshot_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the create_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/jobs", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :put, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :put, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_jobs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the aggregated_list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_aggregated_list_jobs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs:aggregated", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the snapshot_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_snapshot_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}:snapshot", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb new file mode 100644 index 000000000000..c1d10e975449 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/messages/credentials" +require "google/cloud/dataflow/v1beta3/messages/client" +require "google/cloud/dataflow/v1beta3/messages/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/messages" + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/messages/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + module Messages + end + end + end + end +end + +helper_path = ::File.join __dir__, "messages", "helpers.rb" +require "google/cloud/dataflow/v1beta3/messages/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb new file mode 100644 index 000000000000..a596f0e47f11 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb @@ -0,0 +1,514 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/messages_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + ## + # Client for the Messages service. + # + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :messages_stub + + ## + # Configure the Messages Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Messages clients + # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Messages Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @messages_stub.universe_domain + end + + ## + # Create a new Messages client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Messages client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/messages_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @messages_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::MessagesV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @messages_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @messages_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.messages.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.messages.list` is not recommended, as you can only request + # the status of jobs that are running in `us-central1`. + # + # @overload list_job_messages(request, options = nil) + # Pass arguments to `list_job_messages` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) + # Pass arguments to `list_job_messages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get messages about. + # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Filter to only get messages with importance >= level + # @param page_size [::Integer] + # If specified, determines the maximum number of messages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # If specified, return only messages with timestamps >= start_time. + # The default is the job creation time (i.e. beginning of messages). + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new + # + # # Call the list_job_messages method. + # result = client.list_job_messages request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. + # p item + # end + # + def list_job_messages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_job_messages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_job_messages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @messages_stub.call_rpc :list_job_messages, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @messages_stub, :list_job_messages, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Messages API. + # + # This class represents the configuration for Messages, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_job_messages to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Messages API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_job_messages` + # @return [::Gapic::Config::Method] + # + attr_reader :list_job_messages + + # @private + def initialize parent_rpcs = nil + list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages + @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb new file mode 100644 index 000000000000..5fb0a8534756 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + # Credentials for the Messages API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb new file mode 100644 index 000000000000..fea909c88cf0 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/messages/credentials" +require "google/cloud/dataflow/v1beta3/messages/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/messages/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + module Messages + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/messages/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb new file mode 100644 index 000000000000..b20337aec0f9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb @@ -0,0 +1,458 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/messages_pb" +require "google/cloud/dataflow/v1beta3/messages/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + module Rest + ## + # REST client for the Messages service. + # + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :messages_stub + + ## + # Configure the Messages Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Messages clients + # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Messages Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @messages_stub.universe_domain + end + + ## + # Create a new Messages REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Messages client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @messages_stub = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @messages_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @messages_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.messages.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.messages.list` is not recommended, as you can only request + # the status of jobs that are running in `us-central1`. + # + # @overload list_job_messages(request, options = nil) + # Pass arguments to `list_job_messages` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) + # Pass arguments to `list_job_messages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get messages about. + # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Filter to only get messages with importance >= level + # @param page_size [::Integer] + # If specified, determines the maximum number of messages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # If specified, return only messages with timestamps >= start_time. + # The default is the job creation time (i.e. beginning of messages). + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new + # + # # Call the list_job_messages method. + # result = client.list_job_messages request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. + # p item + # end + # + def list_job_messages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_job_messages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_job_messages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @messages_stub.list_job_messages request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @messages_stub, :list_job_messages, "job_messages", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Messages REST API. + # + # This class represents the configuration for Messages REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_job_messages to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Messages API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_job_messages` + # @return [::Gapic::Config::Method] + # + attr_reader :list_job_messages + + # @private + def initialize parent_rpcs = nil + list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages + @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb new file mode 100644 index 000000000000..9c7b964ec66d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb @@ -0,0 +1,152 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/messages_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + module Rest + ## + # REST service stub for the Messages service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_job_messages REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] + # A result object deserialized from the server's reply + def list_job_messages request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_job_messages_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_job_messages", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_job_messages REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_job_messages_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messages", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/messages", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb new file mode 100644 index 000000000000..8d12328c2c2e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/metrics/credentials" +require "google/cloud/dataflow/v1beta3/metrics/client" +require "google/cloud/dataflow/v1beta3/metrics/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/metrics" + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/metrics/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + module Metrics + end + end + end + end +end + +helper_path = ::File.join __dir__, "metrics", "helpers.rb" +require "google/cloud/dataflow/v1beta3/metrics/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb new file mode 100644 index 000000000000..712da86c1f98 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb @@ -0,0 +1,745 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/metrics_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + ## + # Client for the Metrics service. + # + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :metrics_stub + + ## + # Configure the Metrics Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Metrics clients + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Metrics Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @metrics_stub.universe_domain + end + + ## + # Create a new Metrics client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Metrics client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/metrics_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @metrics_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::MetricsV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @metrics_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @metrics_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.getMetrics` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.getMetrics` is not recommended, as you can only request the + # status of jobs that are running in `us-central1`. + # + # @overload get_job_metrics(request, options = nil) + # Pass arguments to `get_job_metrics` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) + # Pass arguments to `get_job_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get metrics for. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new + # + # # Call the get_job_metrics method. + # result = client.get_job_metrics request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. + # p result + # + def get_job_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_job_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_job_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.call_rpc :get_job_metrics, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of the job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_job_execution_details(request, options = nil) + # Pass arguments to `get_job_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) + # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param page_size [::Integer] + # If specified, determines the maximum number of stages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new + # + # # Call the get_job_execution_details method. + # result = client.get_job_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. + # p item + # end + # + def get_job_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_job_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_job_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.call_rpc :get_job_execution_details, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_job_execution_details, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of a stage of the + # job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_stage_execution_details(request, options = nil) + # Pass arguments to `get_stage_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) + # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param stage_id [::String] + # The stage for which to fetch information. + # @param page_size [::Integer] + # If specified, determines the maximum number of work items to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Lower time bound of work items to include, by start time. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Upper time bound of work items to include, by start time. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new + # + # # Call the get_stage_execution_details method. + # result = client.get_stage_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. + # p item + # end + # + def get_stage_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_stage_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + if request.stage_id + header_params["stage_id"] = request.stage_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_stage_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.call_rpc :get_stage_execution_details, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Metrics API. + # + # This class represents the configuration for Metrics, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_job_metrics to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Metrics API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_job_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_metrics + ## + # RPC-specific configuration for `get_job_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_execution_details + ## + # RPC-specific configuration for `get_stage_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_stage_execution_details + + # @private + def initialize parent_rpcs = nil + get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics + @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config + get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details + @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config + get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details + @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb new file mode 100644 index 000000000000..2bcfd26f1f2a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + # Credentials for the Metrics API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb new file mode 100644 index 000000000000..6e6edc9e99d4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/metrics/credentials" +require "google/cloud/dataflow/v1beta3/metrics/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/metrics/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + module Metrics + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/metrics/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb new file mode 100644 index 000000000000..be5f27b90cb1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb @@ -0,0 +1,660 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/metrics_pb" +require "google/cloud/dataflow/v1beta3/metrics/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + module Rest + ## + # REST client for the Metrics service. + # + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :metrics_stub + + ## + # Configure the Metrics Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Metrics clients + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Metrics Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @metrics_stub.universe_domain + end + + ## + # Create a new Metrics REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Metrics client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @metrics_stub = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @metrics_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @metrics_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.getMetrics` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.getMetrics` is not recommended, as you can only request the + # status of jobs that are running in `us-central1`. + # + # @overload get_job_metrics(request, options = nil) + # Pass arguments to `get_job_metrics` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) + # Pass arguments to `get_job_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get metrics for. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new + # + # # Call the get_job_metrics method. + # result = client.get_job_metrics request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. + # p result + # + def get_job_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_job_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_job_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.get_job_metrics request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of the job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_job_execution_details(request, options = nil) + # Pass arguments to `get_job_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) + # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param page_size [::Integer] + # If specified, determines the maximum number of stages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new + # + # # Call the get_job_execution_details method. + # result = client.get_job_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. + # p item + # end + # + def get_job_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_job_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_job_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.get_job_execution_details request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_job_execution_details, "stages", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of a stage of the + # job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_stage_execution_details(request, options = nil) + # Pass arguments to `get_stage_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) + # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param stage_id [::String] + # The stage for which to fetch information. + # @param page_size [::Integer] + # If specified, determines the maximum number of work items to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Lower time bound of work items to include, by start time. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Upper time bound of work items to include, by start time. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new + # + # # Call the get_stage_execution_details method. + # result = client.get_stage_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. + # p item + # end + # + def get_stage_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_stage_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_stage_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.get_stage_execution_details request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, "workers", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Metrics REST API. + # + # This class represents the configuration for Metrics REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_job_metrics to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Metrics API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_job_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_metrics + ## + # RPC-specific configuration for `get_job_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_execution_details + ## + # RPC-specific configuration for `get_stage_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_stage_execution_details + + # @private + def initialize parent_rpcs = nil + get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics + @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config + get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details + @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config + get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details + @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb new file mode 100644 index 000000000000..b9a5c226a709 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb @@ -0,0 +1,279 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/metrics_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + module Rest + ## + # REST service stub for the Metrics service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_job_metrics REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # A result object deserialized from the server's reply + def get_job_metrics request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_job_metrics_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_job_metrics", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_job_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] + # A result object deserialized from the server's reply + def get_job_execution_details request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_job_execution_details_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_job_execution_details", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_stage_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] + # A result object deserialized from the server's reply + def get_stage_execution_details request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_stage_execution_details_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_stage_execution_details", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_job_metrics REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_job_metrics_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metrics", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/metrics", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_job_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_job_execution_details_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_stage_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_stage_execution_details_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false], + ["stage_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb new file mode 100644 index 000000000000..4878d2288fd4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataflow/v1beta3/snapshots/rest" +require "google/cloud/dataflow/v1beta3/jobs/rest" +require "google/cloud/dataflow/v1beta3/messages/rest" +require "google/cloud/dataflow/v1beta3/metrics/rest" +require "google/cloud/dataflow/v1beta3/templates_service/rest" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" +require "google/cloud/dataflow/v1beta3/version" + +module Google + module Cloud + module Dataflow + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/cloud/dataflow/v1beta3/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module V1beta3 + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb new file mode 100644 index 000000000000..b2632eb9c226 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/snapshots/credentials" +require "google/cloud/dataflow/v1beta3/snapshots/client" +require "google/cloud/dataflow/v1beta3/snapshots/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/snapshots" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/snapshots/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module Snapshots + end + end + end + end +end + +helper_path = ::File.join __dir__, "snapshots", "helpers.rb" +require "google/cloud/dataflow/v1beta3/snapshots/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb new file mode 100644 index 000000000000..a06a5acf5545 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb @@ -0,0 +1,688 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/snapshots_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + ## + # Client for the Snapshots service. + # + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :snapshots_stub + + ## + # Configure the Snapshots Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Snapshots clients + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Snapshots Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @snapshots_stub.universe_domain + end + + ## + # Create a new Snapshots client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Snapshots client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/snapshots_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @snapshots_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::SnapshotsV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @snapshots_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @snapshots_stub.logger + end + + # Service calls + + ## + # Gets information about a snapshot. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.snapshot_id + header_params["snapshot_id"] = request.snapshot_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.call_rpc :get_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a snapshot. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.snapshot_id + header_params["snapshot_id"] = request.snapshot_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists snapshots. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project ID to list snapshots for. + # @param job_id [::String] + # If specified, list snapshots created from this job. + # @param location [::String] + # The location to list snapshots in. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. + # p result + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.call_rpc :list_snapshots, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Snapshots API. + # + # This class represents the configuration for Snapshots, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_snapshot to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Snapshots API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + + # @private + def initialize parent_rpcs = nil + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb new file mode 100644 index 000000000000..d08946d2bd72 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + # Credentials for the Snapshots API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb new file mode 100644 index 000000000000..c188b21f1ceb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/snapshots/credentials" +require "google/cloud/dataflow/v1beta3/snapshots/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/snapshots/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module Snapshots + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/snapshots/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb new file mode 100644 index 000000000000..494c212b5efb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb @@ -0,0 +1,606 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/snapshots_pb" +require "google/cloud/dataflow/v1beta3/snapshots/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + module Rest + ## + # REST client for the Snapshots service. + # + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :snapshots_stub + + ## + # Configure the Snapshots Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Snapshots clients + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Snapshots Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @snapshots_stub.universe_domain + end + + ## + # Create a new Snapshots REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Snapshots client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @snapshots_stub = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @snapshots_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @snapshots_stub.logger + end + + # Service calls + + ## + # Gets information about a snapshot. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.get_snapshot request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a snapshot. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.delete_snapshot request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists snapshots. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project ID to list snapshots for. + # @param job_id [::String] + # If specified, list snapshots created from this job. + # @param location [::String] + # The location to list snapshots in. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. + # p result + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.list_snapshots request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Snapshots REST API. + # + # This class represents the configuration for Snapshots REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_snapshot to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Snapshots API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + + # @private + def initialize parent_rpcs = nil + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb new file mode 100644 index 000000000000..7b9f03ac3dab --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb @@ -0,0 +1,300 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/snapshots_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + module Rest + ## + # REST service stub for the Snapshots service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # A result object deserialized from the server's reply + def get_snapshot request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_snapshot", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # A result object deserialized from the server's reply + def delete_snapshot request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_snapshot", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_snapshots REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # A result object deserialized from the server's reply + def list_snapshots request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_snapshots", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_snapshot_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["snapshot_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/snapshots/{snapshot_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["snapshot_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_snapshot_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["snapshot_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1b3/projects/{project_id}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_snapshots REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_snapshots_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb new file mode 100644 index 000000000000..984f76abec78 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/templates_service/credentials" +require "google/cloud/dataflow/v1beta3/templates_service/client" +require "google/cloud/dataflow/v1beta3/templates_service/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create Cloud Dataflow jobs from templates. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/templates_service" + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + module TemplatesService + end + end + end + end +end + +helper_path = ::File.join __dir__, "templates_service", "helpers.rb" +require "google/cloud/dataflow/v1beta3/templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb new file mode 100644 index 000000000000..8720c371b9f8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb @@ -0,0 +1,730 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + ## + # Client for the TemplatesService service. + # + # Provides a method to create Cloud Dataflow jobs from templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :templates_service_stub + + ## + # Configure the TemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all TemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the TemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @templates_service_stub.universe_domain + end + + ## + # Create a new TemplatesService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the TemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/templates_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @templates_service_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @templates_service_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @templates_service_stub.logger + end + + # Service calls + + ## + # Creates a Cloud Dataflow job from a template. Do not enter confidential + # information when you supply string values using the API. + # + # To create a job, we recommend using `projects.locations.templates.create` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.create` is not recommended, because your job will + # always start in `us-central1`. + # + # @overload create_job_from_template(request, options = nil) + # Pass arguments to `create_job_from_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) + # Pass arguments to `create_job_from_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param job_name [::String] + # Required. The job name to use for the created job. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @param parameters [::Hash{::String => ::String}] + # The runtime parameters to pass to the job. + # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] + # The runtime environment for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new + # + # # Call the create_job_from_template method. + # result = client.create_job_from_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job_from_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_job_from_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_job_from_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.call_rpc :create_job_from_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Launches a template. + # + # To launch a template, we recommend using + # `projects.locations.templates.launch` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.launch` is not recommended, because jobs launched + # from the template will always start in `us-central1`. + # + # @overload launch_template(request, options = nil) + # Pass arguments to `launch_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) + # Pass arguments to `launch_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @param gcs_path [::String] + # A Cloud Storage path to the template to use to create + # the job. + # Must be valid Cloud Storage URL, beginning with `gs://`. + # + # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] + # Parameters for launching a dynamic template. + # + # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] + # The parameters of the template to launch. Part of the + # body of the POST request. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new + # + # # Call the launch_template method. + # result = client.launch_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. + # p result + # + def launch_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.launch_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.launch_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.launch_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.call_rpc :launch_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get the template associated with a template. + # + # To get the template, we recommend using `projects.locations.templates.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.get` is not recommended, because only + # templates that are running in `us-central1` are retrieved. + # + # @overload get_template(request, options = nil) + # Pass arguments to `get_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) + # Pass arguments to `get_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] + # The view to retrieve. Defaults to METADATA_ONLY. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new + # + # # Call the get_template method. + # result = client.get_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. + # p result + # + def get_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.call_rpc :get_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the TemplatesService API. + # + # This class represents the configuration for TemplatesService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job_from_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the TemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job_from_template` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job_from_template + ## + # RPC-specific configuration for `launch_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_template + ## + # RPC-specific configuration for `get_template` + # @return [::Gapic::Config::Method] + # + attr_reader :get_template + + # @private + def initialize parent_rpcs = nil + create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template + @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config + launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template + @launch_template = ::Gapic::Config::Method.new launch_template_config + get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template + @get_template = ::Gapic::Config::Method.new get_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb new file mode 100644 index 000000000000..8b457121f54e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + # Credentials for the TemplatesService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb new file mode 100644 index 000000000000..9ae874ae87bc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/templates_service/credentials" +require "google/cloud/dataflow/v1beta3/templates_service/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create Cloud Dataflow jobs from templates. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + module TemplatesService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb new file mode 100644 index 000000000000..fb47d4349562 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb @@ -0,0 +1,657 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/templates_service/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + module Rest + ## + # REST client for the TemplatesService service. + # + # Provides a method to create Cloud Dataflow jobs from templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :templates_service_stub + + ## + # Configure the TemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all TemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the TemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @templates_service_stub.universe_domain + end + + ## + # Create a new TemplatesService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the TemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @templates_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @templates_service_stub.logger + end + + # Service calls + + ## + # Creates a Cloud Dataflow job from a template. Do not enter confidential + # information when you supply string values using the API. + # + # To create a job, we recommend using `projects.locations.templates.create` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.create` is not recommended, because your job will + # always start in `us-central1`. + # + # @overload create_job_from_template(request, options = nil) + # Pass arguments to `create_job_from_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) + # Pass arguments to `create_job_from_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param job_name [::String] + # Required. The job name to use for the created job. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @param parameters [::Hash{::String => ::String}] + # The runtime parameters to pass to the job. + # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] + # The runtime environment for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new + # + # # Call the create_job_from_template method. + # result = client.create_job_from_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job_from_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_job_from_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_job_from_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.create_job_from_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Launches a template. + # + # To launch a template, we recommend using + # `projects.locations.templates.launch` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.launch` is not recommended, because jobs launched + # from the template will always start in `us-central1`. + # + # @overload launch_template(request, options = nil) + # Pass arguments to `launch_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) + # Pass arguments to `launch_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @param gcs_path [::String] + # A Cloud Storage path to the template to use to create + # the job. + # Must be valid Cloud Storage URL, beginning with `gs://`. + # + # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] + # Parameters for launching a dynamic template. + # + # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] + # The parameters of the template to launch. Part of the + # body of the POST request. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new + # + # # Call the launch_template method. + # result = client.launch_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. + # p result + # + def launch_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.launch_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.launch_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.launch_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.launch_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get the template associated with a template. + # + # To get the template, we recommend using `projects.locations.templates.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.get` is not recommended, because only + # templates that are running in `us-central1` are retrieved. + # + # @overload get_template(request, options = nil) + # Pass arguments to `get_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) + # Pass arguments to `get_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] + # The view to retrieve. Defaults to METADATA_ONLY. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new + # + # # Call the get_template method. + # result = client.get_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. + # p result + # + def get_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.get_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the TemplatesService REST API. + # + # This class represents the configuration for TemplatesService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job_from_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the TemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job_from_template` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job_from_template + ## + # RPC-specific configuration for `launch_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_template + ## + # RPC-specific configuration for `get_template` + # @return [::Gapic::Config::Method] + # + attr_reader :get_template + + # @private + def initialize parent_rpcs = nil + create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template + @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config + launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template + @launch_template = ::Gapic::Config::Method.new launch_template_config + get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template + @get_template = ::Gapic::Config::Method.new get_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb new file mode 100644 index 000000000000..42dde9541e62 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb @@ -0,0 +1,292 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + module Rest + ## + # REST service stub for the TemplatesService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the create_job_from_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def create_job_from_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_job_from_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_job_from_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the launch_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # A result object deserialized from the server's reply + def launch_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_launch_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "launch_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # A result object deserialized from the server's reply + def get_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the create_job_from_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_job_from_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/templates", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the launch_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_launch_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:launch", + body: "launch_parameters", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/templates:launch", + body: "launch_parameters", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:get", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/templates:get", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb new file mode 100644 index 000000000000..b6b5c1af211d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + VERSION = "0.0.1" + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb new file mode 100644 index 000000000000..4f1e56a29738 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/environment.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/protobuf/any_pb' +require 'google/protobuf/struct_pb' + + +descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\")\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Environment").msgclass + Package = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Package").msgclass + Disk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Disk").msgclass + WorkerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerSettings").msgclass + TaskRunnerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TaskRunnerSettings").msgclass + AutoscalingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingSettings").msgclass + SdkHarnessContainerImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkHarnessContainerImage").msgclass + WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerPool").msgclass + DataSamplingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig").msgclass + DataSamplingConfig::DataSamplingBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior").enummodule + DebugOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DebugOptions").msgclass + JobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobType").enummodule + FlexResourceSchedulingGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexResourceSchedulingGoal").enummodule + TeardownPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TeardownPolicy").enummodule + DefaultPackageSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DefaultPackageSet").enummodule + AutoscalingAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingAlgorithm").enummodule + WorkerIPAddressConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerIPAddressConfiguration").enummodule + ShuffleMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ShuffleMode").enummodule + StreamingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingMode").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb new file mode 100644 index 000000000000..16e222ef97e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/jobs.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/dataflow/v1beta3/environment_pb' +require 'google/dataflow/v1beta3/snapshots_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/struct_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n\"google/dataflow/v1beta3/jobs.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\'google/dataflow/v1beta3/snapshots.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x0b\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x04type\x18\x04 \x01(\x0e\x32 .google.dataflow.v1beta3.JobTypeB\x03\xe0\x41\x01\x12>\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32$.google.dataflow.v1beta3.EnvironmentB\x03\xe0\x41\x01\x12,\n\x05steps\x18\x06 \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Step\x12\x16\n\x0esteps_location\x18\x18 \x01(\t\x12\x38\n\rcurrent_state\x18\x07 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0frequested_state\x18\t \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x41\n\x0e\x65xecution_info\x18\n \x01(\x0b\x32).google.dataflow.v1beta3.JobExecutionInfo\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0ereplace_job_id\x18\x0c \x01(\t\x12[\n\x16transform_name_mapping\x18\r \x03(\x0b\x32\x36.google.dataflow.v1beta3.Job.TransformNameMappingEntryB\x03\xe0\x41\x01\x12\x19\n\x11\x63lient_request_id\x18\x0e \x01(\t\x12\x1a\n\x12replaced_by_job_id\x18\x0f \x01(\t\x12\x12\n\ntemp_files\x18\x10 \x03(\t\x12\x38\n\x06labels\x18\x11 \x03(\x0b\x32(.google.dataflow.v1beta3.Job.LabelsEntry\x12\x15\n\x08location\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12J\n\x14pipeline_description\x18\x13 \x01(\x0b\x32,.google.dataflow.v1beta3.PipelineDescription\x12\x42\n\x0cstage_states\x18\x14 \x03(\x0b\x32,.google.dataflow.v1beta3.ExecutionStageState\x12:\n\x0cjob_metadata\x18\x15 \x01(\x0b\x32$.google.dataflow.v1beta3.JobMetadata\x12.\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18\x63reated_from_snapshot_id\x18\x17 \x01(\t\x12\x15\n\rsatisfies_pzs\x18\x19 \x01(\x08\x12V\n\x18runtime_updatable_params\x18\x1a \x01(\x0b\x32/.google.dataflow.v1beta3.RuntimeUpdatableParamsH\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12N\n\x11service_resources\x18\x1c \x01(\x0b\x32).google.dataflow.v1beta3.ServiceResourcesB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x15\n\x08pausable\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_runtime_updatable_paramsB\x10\n\x0e_satisfies_pziB\x14\n\x12_service_resources\"&\n\x10ServiceResources\x12\x12\n\x05zones\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xe3\x02\n\x16RuntimeUpdatableParams\x12\x1c\n\x0fmax_num_workers\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmin_num_workers\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12$\n\x17worker_utilization_hint\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12J\n\x1b\x61\x63\x63\x65ptable_backlog_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x05\x18\x01\xe0\x41\x01H\x03\x88\x01\x01\x12\"\n\x10\x61utoscaling_tier\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x42\x12\n\x10_max_num_workersB\x12\n\x10_min_num_workersB\x1a\n\x18_worker_utilization_hintB\x1e\n\x1c_acceptable_backlog_durationB\x13\n\x11_autoscaling_tier\";\n\x12\x44\x61tastoreIODetails\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\"6\n\x0fPubSubIODetails\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"%\n\rFileIODetails\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x01(\t\"N\n\x11\x42igTableIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"V\n\x11\x42igQueryIODetails\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12\r\n\x05query\x18\x04 \x01(\t\"P\n\x10SpannerIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\"\x9d\x02\n\nSdkVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1c\n\x14version_display_name\x18\x02 \x01(\t\x12P\n\x12sdk_support_status\x18\x03 \x01(\x0e\x32\x34.google.dataflow.v1beta3.SdkVersion.SdkSupportStatus\x12\x32\n\x04\x62ugs\x18\x04 \x03(\x0b\x32\x1f.google.dataflow.v1beta3.SdkBugB\x03\xe0\x41\x03\"Z\n\x10SdkSupportStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tSUPPORTED\x10\x01\x12\t\n\x05STALE\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0f\n\x0bUNSUPPORTED\x10\x04\"\xa9\x02\n\x06SdkBug\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32$.google.dataflow.v1beta3.SdkBug.TypeB\x03\xe0\x41\x03\x12?\n\x08severity\x18\x02 \x01(\x0e\x32(.google.dataflow.v1beta3.SdkBug.SeverityB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"H\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERAL\x10\x01\x12\x0f\n\x0bPERFORMANCE\x10\x02\x12\x0c\n\x08\x44\x41TALOSS\x10\x03\"I\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\n\n\x06NOTICE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\n\n\x06SEVERE\x10\x03\"\x80\x05\n\x0bJobMetadata\x12\x38\n\x0bsdk_version\x18\x01 \x01(\x0b\x32#.google.dataflow.v1beta3.SdkVersion\x12\x42\n\x0fspanner_details\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.SpannerIODetails\x12\x44\n\x10\x62igquery_details\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.BigQueryIODetails\x12\x45\n\x11\x62ig_table_details\x18\x04 \x03(\x0b\x32*.google.dataflow.v1beta3.BigTableIODetails\x12@\n\x0epubsub_details\x18\x05 \x03(\x0b\x32(.google.dataflow.v1beta3.PubSubIODetails\x12<\n\x0c\x66ile_details\x18\x06 \x03(\x0b\x32&.google.dataflow.v1beta3.FileIODetails\x12\x46\n\x11\x64\x61tastore_details\x18\x07 \x03(\x0b\x32+.google.dataflow.v1beta3.DatastoreIODetails\x12`\n\x17user_display_properties\x18\x08 \x03(\x0b\x32?.google.dataflow.v1beta3.JobMetadata.UserDisplayPropertiesEntry\x1a<\n\x1aUserDisplayPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x45xecutionStageState\x12\x1c\n\x14\x65xecution_stage_name\x18\x01 \x01(\t\x12@\n\x15\x65xecution_stage_state\x18\x02 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x13PipelineDescription\x12N\n\x1boriginal_pipeline_transform\x18\x01 \x03(\x0b\x32).google.dataflow.v1beta3.TransformSummary\x12P\n\x18\x65xecution_pipeline_stage\x18\x02 \x03(\x0b\x32..google.dataflow.v1beta3.ExecutionStageSummary\x12:\n\x0c\x64isplay_data\x18\x03 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x17\n\x0fstep_names_hash\x18\x04 \x01(\t\"\xd8\x01\n\x10TransformSummary\x12/\n\x04kind\x18\x01 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x0c\x64isplay_data\x18\x04 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x1e\n\x16output_collection_name\x18\x05 \x03(\t\x12\x1d\n\x15input_collection_name\x18\x06 \x03(\t\"\xfc\x05\n\x15\x45xecutionStageSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12/\n\x04kind\x18\x03 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12P\n\x0cinput_source\x18\x04 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12Q\n\routput_source\x18\x05 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12\x1a\n\x12prerequisite_stage\x18\x08 \x03(\t\x12^\n\x13\x63omponent_transform\x18\x06 \x03(\x0b\x32\x41.google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform\x12X\n\x10\x63omponent_source\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource\x1al\n\x0bStageSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\x12\x12\n\nsize_bytes\x18\x04 \x01(\x03\x1aQ\n\x12\x43omponentTransform\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12original_transform\x18\x03 \x01(\t\x1a\\\n\x0f\x43omponentSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\"\xcc\x02\n\x0b\x44isplayData\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\tstr_value\x18\x04 \x01(\tH\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x1a\n\x10java_class_value\x18\x07 \x01(\tH\x00\x12\x35\n\x0ftimestamp_value\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x33\n\x0e\x64uration_value\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x17\n\x0fshort_str_value\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\x12\r\n\x05label\x18\r \x01(\tB\x07\n\x05Value\"O\n\x04Step\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb8\x01\n\x10JobExecutionInfo\x12\x45\n\x06stages\x18\x01 \x03(\x0b\x32\x35.google.dataflow.v1beta3.JobExecutionInfo.StagesEntry\x1a]\n\x0bStagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.dataflow.v1beta3.JobExecutionStageInfo:\x02\x38\x01\"*\n\x15JobExecutionStageInfo\x12\x11\n\tstep_name\x18\x01 \x03(\t\"\xab\x01\n\x10\x43reateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12)\n\x03job\x18\x02 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x16\n\x0ereplace_job_id\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\"u\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb9\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12)\n\x03job\x18\x03 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskH\x00\x88\x01\x01\x42\x0e\n\x0c_update_mask\"\xb0\x02\n\x0fListJobsRequest\x12?\n\x06\x66ilter\x18\x05 \x01(\x0e\x32/.google.dataflow.v1beta3.ListJobsRequest.Filter\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32 .google.dataflow.v1beta3.JobViewB\x02\x18\x01\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x11 \x01(\t\x12\x16\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\":\n\x06\x46ilter\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x42\x07\n\x05_name\"\x1e\n\x0e\x46\x61iledLocation\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x99\x01\n\x10ListJobsResponse\x12*\n\x04jobs\x18\x01 \x03(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12@\n\x0f\x66\x61iled_location\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.FailedLocation\"\xa1\x01\n\x12SnapshotJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12&\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x18\n\x10snapshot_sources\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\",\n\x16\x43heckActiveJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"4\n\x17\x43heckActiveJobsResponse\x12\x19\n\x11\x61\x63tive_jobs_exist\x18\x01 \x01(\x08*\xae\x01\n\x08KindType\x12\x10\n\x0cUNKNOWN_KIND\x10\x00\x12\x0f\n\x0bPAR_DO_KIND\x10\x01\x12\x15\n\x11GROUP_BY_KEY_KIND\x10\x02\x12\x10\n\x0c\x46LATTEN_KIND\x10\x03\x12\r\n\tREAD_KIND\x10\x04\x12\x0e\n\nWRITE_KIND\x10\x05\x12\x11\n\rCONSTANT_KIND\x10\x06\x12\x12\n\x0eSINGLETON_KIND\x10\x07\x12\x10\n\x0cSHUFFLE_KIND\x10\x08*\xf0\x02\n\x08JobState\x12\x15\n\x11JOB_STATE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_STATE_STOPPED\x10\x01\x12\x15\n\x11JOB_STATE_RUNNING\x10\x02\x12\x12\n\x0eJOB_STATE_DONE\x10\x03\x12\x14\n\x10JOB_STATE_FAILED\x10\x04\x12\x17\n\x13JOB_STATE_CANCELLED\x10\x05\x12\x15\n\x11JOB_STATE_UPDATED\x10\x06\x12\x16\n\x12JOB_STATE_DRAINING\x10\x07\x12\x15\n\x11JOB_STATE_DRAINED\x10\x08\x12\x15\n\x11JOB_STATE_PENDING\x10\t\x12\x18\n\x14JOB_STATE_CANCELLING\x10\n\x12\x14\n\x10JOB_STATE_QUEUED\x10\x0b\x12\"\n\x1eJOB_STATE_RESOURCE_CLEANING_UP\x10\x0c\x12\x15\n\x11JOB_STATE_PAUSING\x10\r\x12\x14\n\x10JOB_STATE_PAUSED\x10\x0e*a\n\x07JobView\x12\x14\n\x10JOB_VIEW_UNKNOWN\x10\x00\x12\x14\n\x10JOB_VIEW_SUMMARY\x10\x01\x12\x10\n\x0cJOB_VIEW_ALL\x10\x02\x12\x18\n\x14JOB_VIEW_DESCRIPTION\x10\x03\x32\xaf\x0b\n\x0bJobsV1Beta3\x12\xc1\x01\n\tCreateJob\x12).google.dataflow.v1beta3.CreateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"k\x82\xd3\xe4\x93\x02\x65\"5/v1b3/projects/{project_id}/locations/{location}/jobs:\x03jobZ\'\" /v1b3/projects/{project_id}/jobs:\x03job\x12\xc3\x01\n\x06GetJob\x12&.google.dataflow.v1beta3.GetJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}Z+\x12)/v1b3/projects/{project_id}/jobs/{job_id}\x12\xd3\x01\n\tUpdateJob\x12).google.dataflow.v1beta3.UpdateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"}\x82\xd3\xe4\x93\x02w\x1a>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:\x03jobZ0\x1a)/v1b3/projects/{project_id}/jobs/{job_id}:\x03job\x12\xc2\x01\n\x08ListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"a\x82\xd3\xe4\x93\x02[\x12\x35/v1b3/projects/{project_id}/locations/{location}/jobsZ\"\x12 /v1b3/projects/{project_id}/jobs\x12\x9e\x01\n\x12\x41ggregatedListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1b3/projects/{project_id}/jobs:aggregated\x12v\n\x0f\x43heckActiveJobs\x12/.google.dataflow.v1beta3.CheckActiveJobsRequest\x1a\x30.google.dataflow.v1beta3.CheckActiveJobsResponse\"\x00\x12\xec\x01\n\x0bSnapshotJob\x12+.google.dataflow.v1beta3.SnapshotJobRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\"G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot:\x01*Z7\"2/v1b3/projects/{project_id}/jobs/{job_id}:snapshot:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcc\x01\n\x1b\x63om.google.dataflow.v1beta3B\tJobsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Job").msgclass + ServiceResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ServiceResources").msgclass + RuntimeUpdatableParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeUpdatableParams").msgclass + DatastoreIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DatastoreIODetails").msgclass + PubSubIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubSubIODetails").msgclass + FileIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FileIODetails").msgclass + BigTableIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigTableIODetails").msgclass + BigQueryIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigQueryIODetails").msgclass + SpannerIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SpannerIODetails").msgclass + SdkVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion").msgclass + SdkVersion::SdkSupportStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion.SdkSupportStatus").enummodule + SdkBug = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug").msgclass + SdkBug::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Type").enummodule + SdkBug::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Severity").enummodule + JobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetadata").msgclass + ExecutionStageState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageState").msgclass + PipelineDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PipelineDescription").msgclass + TransformSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TransformSummary").msgclass + ExecutionStageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary").msgclass + ExecutionStageSummary::StageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.StageSource").msgclass + ExecutionStageSummary::ComponentTransform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform").msgclass + ExecutionStageSummary::ComponentSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource").msgclass + DisplayData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DisplayData").msgclass + Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Step").msgclass + JobExecutionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionInfo").msgclass + JobExecutionStageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionStageInfo").msgclass + CreateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobRequest").msgclass + GetJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobRequest").msgclass + UpdateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.UpdateJobRequest").msgclass + ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest").msgclass + ListJobsRequest::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest.Filter").enummodule + FailedLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FailedLocation").msgclass + ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsResponse").msgclass + SnapshotJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotJobRequest").msgclass + CheckActiveJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsRequest").msgclass + CheckActiveJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsResponse").msgclass + KindType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KindType").enummodule + JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobState").enummodule + JobView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobView").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb new file mode 100644 index 000000000000..1d285f980ae8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb @@ -0,0 +1,93 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/jobs.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/jobs_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module JobsV1Beta3 + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.JobsV1Beta3' + + # Creates a Dataflow job. + # + # To create a job, we recommend using `projects.locations.jobs.create` with a + # [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.create` is not recommended, as your job will always start + # in `us-central1`. + # + # Do not enter confidential information when you supply string values using + # the API. + rpc :CreateJob, ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # Gets the state of the specified Cloud Dataflow job. + # + # To get the state of a job, we recommend using `projects.locations.jobs.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.get` is not recommended, as you can only get the state of + # jobs that are running in `us-central1`. + rpc :GetJob, ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # Updates the state of an existing Cloud Dataflow job. + # + # To update the state of an existing job, we recommend using + # `projects.locations.jobs.update` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.update` is not recommended, as you can only update the state + # of jobs that are running in `us-central1`. + rpc :UpdateJob, ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # List the jobs of a project. + # + # To list the jobs of a project in a region, we recommend using + # `projects.locations.jobs.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To + # list the all jobs across all regions, use `projects.jobs.aggregated`. Using + # `projects.jobs.list` is not recommended, because you can only get the list + # of jobs that are running in `us-central1`. + # + # `projects.locations.jobs.list` and `projects.jobs.list` support filtering + # the list of jobs by name. Filtering by name isn't supported by + # `projects.jobs.aggregated`. + rpc :ListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse + # List the jobs of a project across all regions. + # + # **Note:** This method doesn't support filtering the list of + # jobs by name. + rpc :AggregatedListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse + # Check for existence of active jobs in the given project across all regions. + rpc :CheckActiveJobs, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse + # Snapshot the state of a streaming job. + rpc :SnapshotJob, ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb new file mode 100644 index 000000000000..ff480b37c746 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/messages.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/protobuf/struct_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n&google/dataflow/v1beta3/messages.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x01\n\nJobMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t\x12I\n\x12message_importance\x18\x04 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\"\xc9\x01\n\x11StructuredMessage\x12\x14\n\x0cmessage_text\x18\x01 \x01(\t\x12\x13\n\x0bmessage_key\x18\x02 \x01(\t\x12H\n\nparameters\x18\x03 \x03(\x0b\x32\x34.google.dataflow.v1beta3.StructuredMessage.Parameter\x1a?\n\tParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\xb1\x03\n\x10\x41utoscalingEvent\x12\x1b\n\x13\x63urrent_num_workers\x18\x01 \x01(\x03\x12\x1a\n\x12target_num_workers\x18\x02 \x01(\x03\x12R\n\nevent_type\x18\x03 \x01(\x0e\x32>.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType\x12?\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32*.google.dataflow.v1beta3.StructuredMessage\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_pool\x18\x07 \x01(\t\"\x8f\x01\n\x14\x41utoscalingEventType\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x1e\n\x1aTARGET_NUM_WORKERS_CHANGED\x10\x01\x12\x1f\n\x1b\x43URRENT_NUM_WORKERS_CHANGED\x10\x02\x12\x15\n\x11\x41\x43TUATION_FAILURE\x10\x03\x12\r\n\tNO_CHANGE\x10\x04\"\x9e\x02\n\x16ListJobMessagesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12I\n\x12minimum_importance\x18\x03 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x08 \x01(\t\"\xb4\x01\n\x17ListJobMessagesResponse\x12\x39\n\x0cjob_messages\x18\x01 \x03(\x0b\x32#.google.dataflow.v1beta3.JobMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x45\n\x12\x61utoscaling_events\x18\x03 \x03(\x0b\x32).google.dataflow.v1beta3.AutoscalingEvent*\xb2\x01\n\x14JobMessageImportance\x12\"\n\x1eJOB_MESSAGE_IMPORTANCE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_MESSAGE_DEBUG\x10\x01\x12\x18\n\x14JOB_MESSAGE_DETAILED\x10\x02\x12\x15\n\x11JOB_MESSAGE_BASIC\x10\x05\x12\x17\n\x13JOB_MESSAGE_WARNING\x10\x03\x12\x15\n\x11JOB_MESSAGE_ERROR\x10\x04\x32\x85\x03\n\x0fMessagesV1Beta3\x12\xfc\x01\n\x0fListJobMessages\x12/.google.dataflow.v1beta3.ListJobMessagesRequest\x1a\x30.google.dataflow.v1beta3.ListJobMessagesResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messagesZ4\x12\x32/v1b3/projects/{project_id}/jobs/{job_id}/messages\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd0\x01\n\x1b\x63om.google.dataflow.v1beta3B\rMessagesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + JobMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessage").msgclass + StructuredMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage").msgclass + StructuredMessage::Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage.Parameter").msgclass + AutoscalingEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent").msgclass + AutoscalingEvent::AutoscalingEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType").enummodule + ListJobMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesRequest").msgclass + ListJobMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesResponse").msgclass + JobMessageImportance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessageImportance").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb new file mode 100644 index 000000000000..7e765d1339f9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb @@ -0,0 +1,51 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/messages.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/messages_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module MessagesV1Beta3 + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.MessagesV1Beta3' + + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.messages.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.messages.list` is not recommended, as you can only request + # the status of jobs that are running in `us-central1`. + rpc :ListJobMessages, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb new file mode 100644 index 000000000000..e1bad2b6d432 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/metrics.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/struct_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n%google/dataflow/v1beta3/metrics.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x14MetricStructuredName\x12\x0e\n\x06origin\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12K\n\x07\x63ontext\x18\x03 \x03(\x0b\x32:.google.dataflow.v1beta3.MetricStructuredName.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x04\n\x0cMetricUpdate\x12;\n\x04name\x18\x01 \x01(\x0b\x32-.google.dataflow.v1beta3.MetricStructuredName\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x12\n\ncumulative\x18\x03 \x01(\x08\x12&\n\x06scalar\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08mean_sum\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x12*\n\nmean_count\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12#\n\x03set\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12$\n\x04trie\x18\r \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x62ounded_trie\x18\x0e \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x64istribution\x18\x0b \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05gauge\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08internal\x18\x08 \x01(\x0b\x32\x16.google.protobuf.Value\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"|\n\x14GetJobMetricsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x04 \x01(\t\"u\n\nJobMetrics\x12/\n\x0bmetric_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x07metrics\x18\x02 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\"|\n\x1dGetJobExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\xb8\x01\n\x12ProgressTimeseries\x12\x18\n\x10\x63urrent_progress\x18\x01 \x01(\x01\x12\x46\n\x0b\x64\x61ta_points\x18\x02 \x03(\x0b\x32\x31.google.dataflow.v1beta3.ProgressTimeseries.Point\x1a@\n\x05Point\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xee\x02\n\rStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06\x63\x61uses\x18\x02 \x03(\x0b\x32\x32.google.dataflow.v1beta3.StragglerInfo.CausesEntry\x1a{\n\x16StragglerDebuggingInfo\x12?\n\x07hot_key\x18\x01 \x01(\x0b\x32,.google.dataflow.v1beta3.HotKeyDebuggingInfoH\x00\x42 \n\x1estraggler_debugging_info_value\x1al\n\x0b\x43\x61usesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo:\x02\x38\x01\"\xfb\x01\n\x16StreamingStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_name\x18\x03 \x01(\t\x12\x35\n\x12\x64\x61ta_watermark_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14system_watermark_lag\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb0\x01\n\tStraggler\x12\x41\n\x0f\x62\x61tch_straggler\x18\x01 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfoH\x00\x12N\n\x13streaming_straggler\x18\x02 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStragglerInfoH\x00\x42\x10\n\x0estraggler_info\"\xc6\x02\n\x13HotKeyDebuggingInfo\x12\\\n\x11\x64\x65tected_hot_keys\x18\x01 \x03(\x0b\x32\x41.google.dataflow.v1beta3.HotKeyDebuggingInfo.DetectedHotKeysEntry\x1a`\n\nHotKeyInfo\x12.\n\x0bhot_key_age\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\rkey_truncated\x18\x03 \x01(\x08\x1ao\n\x14\x44\x65tectedHotKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo:\x02\x38\x01\"\x8f\x02\n\x10StragglerSummary\x12\x1d\n\x15total_straggler_count\x18\x01 \x01(\x03\x12\x61\n\x15straggler_cause_count\x18\x02 \x03(\x0b\x32\x42.google.dataflow.v1beta3.StragglerSummary.StragglerCauseCountEntry\x12=\n\x11recent_stragglers\x18\x03 \x03(\x0b\x32\".google.dataflow.v1beta3.Straggler\x1a:\n\x18StragglerCauseCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xf3\x02\n\x0cStageSummary\x12\x10\n\x08stage_id\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x06 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12\x44\n\x11straggler_summary\x18\x07 \x01(\x0b\x32).google.dataflow.v1beta3.StragglerSummary\"e\n\x13JobExecutionDetails\x12\x35\n\x06stages\x18\x01 \x03(\x0b\x32%.google.dataflow.v1beta3.StageSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xee\x01\n\x1fGetStageExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x10\n\x08stage_id\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x03\n\x0fWorkItemDetails\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x05state\x18\x05 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12=\n\x08progress\x18\x06 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x07 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12>\n\x0estraggler_info\x18\x08 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfo\"b\n\rWorkerDetails\x12\x13\n\x0bworker_name\x18\x01 \x01(\t\x12<\n\nwork_items\x18\x02 \x03(\x0b\x32(.google.dataflow.v1beta3.WorkItemDetails\"i\n\x15StageExecutionDetails\x12\x37\n\x07workers\x18\x01 \x03(\x0b\x32&.google.dataflow.v1beta3.WorkerDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*\xc5\x01\n\x0e\x45xecutionState\x12\x1b\n\x17\x45XECUTION_STATE_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTION_STATE_NOT_STARTED\x10\x01\x12\x1b\n\x17\x45XECUTION_STATE_RUNNING\x10\x02\x12\x1d\n\x19\x45XECUTION_STATE_SUCCEEDED\x10\x03\x12\x1a\n\x16\x45XECUTION_STATE_FAILED\x10\x04\x12\x1d\n\x19\x45XECUTION_STATE_CANCELLED\x10\x05\x32\xbd\x06\n\x0eMetricsV1Beta3\x12\xe9\x01\n\rGetJobMetrics\x12-.google.dataflow.v1beta3.GetJobMetricsRequest\x1a#.google.dataflow.v1beta3.JobMetrics\"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x46/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metricsZ3\x12\x31/v1b3/projects/{project_id}/jobs/{job_id}/metrics\x12\xd7\x01\n\x16GetJobExecutionDetails\x12\x36.google.dataflow.v1beta3.GetJobExecutionDetailsRequest\x1a,.google.dataflow.v1beta3.JobExecutionDetails\"W\x82\xd3\xe4\x93\x02Q\x12O/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails\x12\xef\x01\n\x18GetStageExecutionDetails\x12\x38.google.dataflow.v1beta3.GetStageExecutionDetailsRequest\x1a..google.dataflow.v1beta3.StageExecutionDetails\"i\x82\xd3\xe4\x93\x02\x63\x12\x61/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcf\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0cMetricsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + MetricStructuredName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricStructuredName").msgclass + MetricUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricUpdate").msgclass + GetJobMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobMetricsRequest").msgclass + JobMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetrics").msgclass + GetJobExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobExecutionDetailsRequest").msgclass + ProgressTimeseries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries").msgclass + ProgressTimeseries::Point = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries.Point").msgclass + StragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo").msgclass + StragglerInfo::StragglerDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo").msgclass + StreamingStragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStragglerInfo").msgclass + Straggler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Straggler").msgclass + HotKeyDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo").msgclass + HotKeyDebuggingInfo::HotKeyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo").msgclass + StragglerSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerSummary").msgclass + StageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageSummary").msgclass + JobExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionDetails").msgclass + GetStageExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetStageExecutionDetailsRequest").msgclass + WorkItemDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkItemDetails").msgclass + WorkerDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerDetails").msgclass + StageExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageExecutionDetails").msgclass + ExecutionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionState").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb new file mode 100644 index 000000000000..37678edc27d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb @@ -0,0 +1,60 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/metrics.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/metrics_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module MetricsV1Beta3 + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.MetricsV1Beta3' + + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.getMetrics` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.getMetrics` is not recommended, as you can only request the + # status of jobs that are running in `us-central1`. + rpc :GetJobMetrics, ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Google::Cloud::Dataflow::V1beta3::JobMetrics + # Request detailed information about the execution status of the job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + rpc :GetJobExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails + # Request detailed information about the execution status of a stage of the + # job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + rpc :GetStageExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb new file mode 100644 index 000000000000..bba6c31a5430 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/snapshots.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n\'google/dataflow/v1beta3/snapshots.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x16PubsubSnapshotMetadata\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x15\n\rsnapshot_name\x18\x02 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdb\x02\n\x08Snapshot\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x15\n\rsource_job_id\x18\x03 \x01(\t\x12\x31\n\rcreation_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x03ttl\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x05state\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.SnapshotState\x12H\n\x0fpubsub_metadata\x18\x07 \x03(\x0b\x32/.google.dataflow.v1beta3.PubsubSnapshotMetadata\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12\x17\n\x0f\x64isk_size_bytes\x18\t \x01(\x03\x12\x0e\n\x06region\x18\n \x01(\t\"O\n\x12GetSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"R\n\x15\x44\x65leteSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteSnapshotResponse\"L\n\x14ListSnapshotsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"M\n\x15ListSnapshotsResponse\x12\x34\n\tsnapshots\x18\x01 \x03(\x0b\x32!.google.dataflow.v1beta3.Snapshot*i\n\rSnapshotState\x12\x1a\n\x16UNKNOWN_SNAPSHOT_STATE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x32\x8d\x07\n\x10SnapshotsV1Beta3\x12\xe8\x01\n\x0bGetSnapshot\x12+.google.dataflow.v1beta3.GetSnapshotRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01\x12H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z5\x12\x33/v1b3/projects/{project_id}/snapshots/{snapshot_id}\x12\xec\x01\n\x0e\x44\x65leteSnapshot\x12..google.dataflow.v1beta3.DeleteSnapshotRequest\x1a/.google.dataflow.v1beta3.DeleteSnapshotResponse\"y\x82\xd3\xe4\x93\x02s*H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z\'*%/v1b3/projects/{project_id}/snapshots\x12\xa9\x02\n\rListSnapshots\x12-.google.dataflow.v1beta3.ListSnapshotsRequest\x1a..google.dataflow.v1beta3.ListSnapshotsResponse\"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01\x12H/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshotsZ<\x12:/v1b3/projects/{project_id}/locations/{location}/snapshotsZ\'\x12%/v1b3/projects/{project_id}/snapshots\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eSnapshotsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + PubsubSnapshotMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubSnapshotMetadata").msgclass + Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Snapshot").msgclass + GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetSnapshotRequest").msgclass + DeleteSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotRequest").msgclass + DeleteSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotResponse").msgclass + ListSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsRequest").msgclass + ListSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsResponse").msgclass + SnapshotState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotState").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb new file mode 100644 index 000000000000..203fdccc8bc2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb @@ -0,0 +1,49 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/snapshots.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/snapshots_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module SnapshotsV1Beta3 + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.SnapshotsV1Beta3' + + # Gets information about a snapshot. + rpc :GetSnapshot, ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot + # Deletes a snapshot. + rpc :DeleteSnapshot, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse + # Lists snapshots. + rpc :ListSnapshots, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb new file mode 100644 index 000000000000..0b21c1fea7c4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/streaming.proto + +require 'google/protobuf' + + +descriptor_data = "\n\'google/dataflow/v1beta3/streaming.proto\x12\x17google.dataflow.v1beta3\"\x9d\x03\n\x0eTopologyConfig\x12\x42\n\x0c\x63omputations\x18\x01 \x03(\x0b\x32,.google.dataflow.v1beta3.ComputationTopology\x12J\n\x15\x64\x61ta_disk_assignments\x18\x02 \x03(\x0b\x32+.google.dataflow.v1beta3.DataDiskAssignment\x12v\n\"user_stage_to_computation_name_map\x18\x03 \x03(\x0b\x32J.google.dataflow.v1beta3.TopologyConfig.UserStageToComputationNameMapEntry\x12\x1b\n\x13\x66orwarding_key_bits\x18\x04 \x01(\x05\x12 \n\x18persistent_state_version\x18\x05 \x01(\x05\x1a\x44\n\"UserStageToComputationNameMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xce\x01\n\x0ePubsubLocation\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\x12\x17\n\x0ftimestamp_label\x18\x03 \x01(\t\x12\x10\n\x08id_label\x18\x04 \x01(\t\x12\x16\n\x0e\x64rop_late_data\x18\x05 \x01(\x08\x12\x1d\n\x15tracking_subscription\x18\x06 \x01(\t\x12\x17\n\x0fwith_attributes\x18\x07 \x01(\x08\x12\x1c\n\x14\x64ynamic_destinations\x18\x08 \x01(\x08\"+\n\x16StreamingStageLocation\x12\x11\n\tstream_id\x18\x01 \x01(\t\"?\n\x1aStreamingSideInputLocation\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x14\n\x0cstate_family\x18\x02 \x01(\t\"(\n\x14\x43ustomSourceLocation\x12\x10\n\x08stateful\x18\x01 \x01(\x08\"\xda\x02\n\x0eStreamLocation\x12S\n\x18streaming_stage_location\x18\x01 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStageLocationH\x00\x12\x42\n\x0fpubsub_location\x18\x02 \x01(\x0b\x32\'.google.dataflow.v1beta3.PubsubLocationH\x00\x12R\n\x13side_input_location\x18\x03 \x01(\x0b\x32\x33.google.dataflow.v1beta3.StreamingSideInputLocationH\x00\x12O\n\x16\x63ustom_source_location\x18\x04 \x01(\x0b\x32-.google.dataflow.v1beta3.CustomSourceLocationH\x00\x42\n\n\x08location\":\n\x11StateFamilyConfig\x12\x14\n\x0cstate_family\x18\x01 \x01(\t\x12\x0f\n\x07is_read\x18\x02 \x01(\x08\"\xbe\x02\n\x13\x43omputationTopology\x12\x19\n\x11system_stage_name\x18\x01 \x01(\t\x12\x16\n\x0e\x63omputation_id\x18\x05 \x01(\t\x12=\n\nkey_ranges\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.KeyRangeLocation\x12\x37\n\x06inputs\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x38\n\x07outputs\x18\x04 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x42\n\x0estate_families\x18\x07 \x03(\x0b\x32*.google.dataflow.v1beta3.StateFamilyConfig\"\x89\x01\n\x10KeyRangeLocation\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x19\n\x11\x64\x65livery_endpoint\x18\x03 \x01(\t\x12\x11\n\tdata_disk\x18\x05 \x01(\t\x12+\n\x1f\x64\x65precated_persistent_directory\x18\x04 \x01(\tB\x02\x18\x01\"$\n\x0fMountedDataDisk\x12\x11\n\tdata_disk\x18\x01 \x01(\t\"=\n\x12\x44\x61taDiskAssignment\x12\x13\n\x0bvm_instance\x18\x01 \x01(\t\x12\x12\n\ndata_disks\x18\x02 \x03(\t\"K\n\x1aKeyRangeDataDiskAssignment\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x11\n\tdata_disk\x18\x03 \x01(\t\"\x84\x01\n\x1aStreamingComputationRanges\x12\x16\n\x0e\x63omputation_id\x18\x01 \x01(\t\x12N\n\x11range_assignments\x18\x02 \x03(\x0b\x32\x33.google.dataflow.v1beta3.KeyRangeDataDiskAssignment\"V\n StreamingApplianceSnapshotConfig\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x1d\n\x15import_state_endpoint\x18\x02 \x01(\tB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eStreamingProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + TopologyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TopologyConfig").msgclass + PubsubLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubLocation").msgclass + StreamingStageLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStageLocation").msgclass + StreamingSideInputLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingSideInputLocation").msgclass + CustomSourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CustomSourceLocation").msgclass + StreamLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamLocation").msgclass + StateFamilyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StateFamilyConfig").msgclass + ComputationTopology = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ComputationTopology").msgclass + KeyRangeLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeLocation").msgclass + MountedDataDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MountedDataDisk").msgclass + DataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataDiskAssignment").msgclass + KeyRangeDataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeDataDiskAssignment").msgclass + StreamingComputationRanges = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingComputationRanges").msgclass + StreamingApplianceSnapshotConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingApplianceSnapshotConfig").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb new file mode 100644 index 000000000000..ee47d7a44b6f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/templates.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/dataflow/v1beta3/environment_pb' +require 'google/dataflow/v1beta3/jobs_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n\'google/dataflow/v1beta3/templates.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\"google/dataflow/v1beta3/jobs.proto\x1a\x17google/rpc/status.proto\"G\n\x1aLaunchFlexTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xe3\x02\n\rContainerSpec\x12\r\n\x05image\x18\x01 \x01(\t\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12\x32\n\x08sdk_info\x18\x03 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12T\n\x13\x64\x65\x66\x61ult_environment\x18\x04 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12+\n#image_repository_username_secret_id\x18\x05 \x01(\t\x12+\n#image_repository_password_secret_id\x18\x06 \x01(\t\x12\"\n\x1aimage_repository_cert_path\x18\x07 \x01(\t\"\xd2\x05\n\x1bLaunchFlexTemplateParameter\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12@\n\x0e\x63ontainer_spec\x18\x04 \x01(\x0b\x32&.google.dataflow.v1beta3.ContainerSpecH\x00\x12!\n\x17\x63ontainer_spec_gcs_path\x18\x05 \x01(\tH\x00\x12X\n\nparameters\x18\x02 \x03(\x0b\x32\x44.google.dataflow.v1beta3.LaunchFlexTemplateParameter.ParametersEntry\x12_\n\x0elaunch_options\x18\x06 \x03(\x0b\x32G.google.dataflow.v1beta3.LaunchFlexTemplateParameter.LaunchOptionsEntry\x12L\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12\x0e\n\x06update\x18\x08 \x01(\x08\x12p\n\x17transform_name_mappings\x18\t \x03(\x0b\x32O.google.dataflow.v1beta3.LaunchFlexTemplateParameter.TransformNameMappingsEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12LaunchOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTransformNameMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc7\x08\n\x1e\x46lexTemplateRuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_workers\x18\x02 \x01(\x05\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x1d\n\x15service_account_email\x18\x04 \x01(\t\x12\x15\n\rtemp_location\x18\x05 \x01(\t\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12q\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32Q.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0b \x01(\t\x12O\n\x10ip_configuration\x18\x0c \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\r \x01(\t\x12\x13\n\x0bworker_zone\x18\x0e \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x0f \x01(\x08\x12H\n\x0b\x66lexrs_goal\x18\x10 \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoal\x12\x18\n\x10staging_location\x18\x11 \x01(\t\x12\x1b\n\x13sdk_container_image\x18\x12 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x14 \x01(\x05\x12L\n\x15\x61utoscaling_algorithm\x18\x15 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x18\n\x10\x64ump_heap_on_oom\x18\x16 \x01(\x08\x12#\n\x1bsave_heap_dumps_to_gcs_path\x18\x17 \x01(\t\x12\x1d\n\x15launcher_machine_type\x18\x18 \x01(\t\x12.\n&enable_launcher_vm_serial_port_logging\x18\x19 \x01(\x08\x12H\n\x0estreaming_mode\x18\x1a \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x1b \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"\xa8\x01\n\x19LaunchFlexTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12N\n\x10launch_parameter\x18\x02 \x01(\x0b\x32\x34.google.dataflow.v1beta3.LaunchFlexTemplateParameter\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x05\n\x12RuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x0b \x01(\x05\x12\x13\n\x0bmax_workers\x18\x01 \x01(\x05\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x15\n\rtemp_location\x18\x04 \x01(\t\x12\"\n\x1a\x62ypass_temp_dir_validation\x18\x05 \x01(\x08\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12\x65\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32\x45.google.dataflow.v1beta3.RuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0c \x01(\t\x12O\n\x10ip_configuration\x18\x0e \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\x0f \x01(\t\x12\x13\n\x0bworker_zone\x18\x10 \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x11 \x01(\x08\x12\x14\n\x0c\x64isk_size_gb\x18\x12 \x01(\x05\x12H\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x14 \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"_\n\x1bParameterMetadataEnumOption\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf3\x03\n\x11ParameterMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thelp_text\x18\x03 \x01(\t\x12\x13\n\x0bis_optional\x18\x04 \x01(\x08\x12\x0f\n\x07regexes\x18\x05 \x03(\t\x12:\n\nparam_type\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.ParameterType\x12W\n\x0f\x63ustom_metadata\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ParameterMetadata.CustomMetadataEntry\x12\x12\n\ngroup_name\x18\x08 \x01(\t\x12\x13\n\x0bparent_name\x18\t \x01(\t\x12\x1d\n\x15parent_trigger_values\x18\n \x03(\t\x12J\n\x0c\x65num_options\x18\x0b \x03(\x0b\x32\x34.google.dataflow.v1beta3.ParameterMetadataEnumOption\x12\x15\n\rdefault_value\x18\x0c \x01(\t\x12\x11\n\thidden_ui\x18\r \x01(\x08\x1a\x35\n\x13\x43ustomMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x01\n\x10TemplateMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12>\n\nparameters\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\x12\x11\n\tstreaming\x18\x05 \x01(\x08\x12\x1e\n\x16supports_at_least_once\x18\x06 \x01(\x08\x12\x1d\n\x15supports_exactly_once\x18\x07 \x01(\x08\x12\x1e\n\x16\x64\x65\x66\x61ult_streaming_mode\x18\x08 \x01(\t\"\x98\x01\n\x07SDKInfo\x12;\n\x08language\x18\x01 \x01(\x0e\x32).google.dataflow.v1beta3.SDKInfo.Language\x12\x0f\n\x07version\x18\x02 \x01(\t\"?\n\x08Language\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x06\n\x02GO\x10\x03\x12\x08\n\x04YAML\x10\x04\"\x85\x01\n\x0fRuntimeMetadata\x12\x32\n\x08sdk_info\x18\x01 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12>\n\nparameters\x18\x02 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\"\xc6\x02\n\x1c\x43reateJobFromTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x04 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12Y\n\nparameters\x18\x03 \x03(\x0b\x32\x45.google.dataflow.v1beta3.CreateJobFromTemplateRequest.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x10\n\x08location\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc5\x01\n\x12GetTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12\x46\n\x04view\x18\x03 \x01(\x0e\x32\x38.google.dataflow.v1beta3.GetTemplateRequest.TemplateView\x12\x10\n\x08location\x18\x04 \x01(\t\"!\n\x0cTemplateView\x12\x11\n\rMETADATA_ONLY\x10\x00\x42\n\n\x08template\"\xbf\x02\n\x13GetTemplateResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12P\n\rtemplate_type\x18\x03 \x01(\x0e\x32\x39.google.dataflow.v1beta3.GetTemplateResponse.TemplateType\x12\x42\n\x10runtime_metadata\x18\x04 \x01(\x0b\x32(.google.dataflow.v1beta3.RuntimeMetadata\"1\n\x0cTemplateType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\"\xb2\x03\n\x18LaunchTemplateParameters\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12U\n\nparameters\x18\x02 \x03(\x0b\x32\x41.google.dataflow.v1beta3.LaunchTemplateParameters.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x0e\n\x06update\x18\x04 \x01(\x08\x12k\n\x16transform_name_mapping\x18\x05 \x03(\x0b\x32K.google.dataflow.v1beta3.LaunchTemplateParameters.TransformNameMappingEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x02\n\x15LaunchTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x00\x12P\n\x10\x64ynamic_template\x18\x06 \x01(\x0b\x32\x34.google.dataflow.v1beta3.DynamicTemplateLaunchParamsH\x00\x12L\n\x11launch_parameters\x18\x04 \x01(\x0b\x32\x31.google.dataflow.v1beta3.LaunchTemplateParameters\x12\x10\n\x08location\x18\x05 \x01(\tB\n\n\x08template\"C\n\x16LaunchTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xbe\x01\n\x19InvalidTemplateParameters\x12\x63\n\x14parameter_violations\x18\x01 \x03(\x0b\x32\x45.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation\x1a<\n\x12ParameterViolation\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"I\n\x1b\x44ynamicTemplateLaunchParams\x12\x10\n\x08gcs_path\x18\x01 \x01(\t\x12\x18\n\x10staging_location\x18\x02 \x01(\t*\xbd\x03\n\rParameterType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\x13\n\x0fGCS_READ_BUCKET\x10\x02\x12\x14\n\x10GCS_WRITE_BUCKET\x10\x03\x12\x11\n\rGCS_READ_FILE\x10\x04\x12\x12\n\x0eGCS_WRITE_FILE\x10\x05\x12\x13\n\x0fGCS_READ_FOLDER\x10\x06\x12\x14\n\x10GCS_WRITE_FOLDER\x10\x07\x12\x10\n\x0cPUBSUB_TOPIC\x10\x08\x12\x17\n\x13PUBSUB_SUBSCRIPTION\x10\t\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\n\x12\x17\n\x13JAVASCRIPT_UDF_FILE\x10\x0b\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x0c\x12\x10\n\x0cMACHINE_TYPE\x10\r\x12\x10\n\x0cKMS_KEY_NAME\x10\x0e\x12\x11\n\rWORKER_REGION\x10\x0f\x12\x0f\n\x0bWORKER_ZONE\x10\x10\x12\x0b\n\x07\x42OOLEAN\x10\x11\x12\x08\n\x04\x45NUM\x10\x12\x12\n\n\x06NUMBER\x10\x13\x12\x13\n\x0bKAFKA_TOPIC\x10\x14\x1a\x02\x08\x01\x12\x14\n\x10KAFKA_READ_TOPIC\x10\x15\x12\x15\n\x11KAFKA_WRITE_TOPIC\x10\x16\x32\xe0\x06\n\x10TemplatesService\x12\xdf\x01\n\x15\x43reateJobFromTemplate\x12\x35.google.dataflow.v1beta3.CreateJobFromTemplateRequest\x1a\x1c.google.dataflow.v1beta3.Job\"q\x82\xd3\xe4\x93\x02k\":/v1b3/projects/{project_id}/locations/{location}/templates:\x01*Z*\"%/v1b3/projects/{project_id}/templates:\x01*\x12\x94\x02\n\x0eLaunchTemplate\x12..google.dataflow.v1beta3.LaunchTemplateRequest\x1a/.google.dataflow.v1beta3.LaunchTemplateResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01\"A/v1b3/projects/{project_id}/locations/{location}/templates:launch:\x11launch_parametersZA\",/v1b3/projects/{project_id}/templates:launch:\x11launch_parameters\x12\xdd\x01\n\x0bGetTemplate\x12+.google.dataflow.v1beta3.GetTemplateRequest\x1a,.google.dataflow.v1beta3.GetTemplateResponse\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/templates:getZ+\x12)/v1b3/projects/{project_id}/templates:get\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute2\xdd\x02\n\x14\x46lexTemplatesService\x12\xcf\x01\n\x12LaunchFlexTemplate\x12\x32.google.dataflow.v1beta3.LaunchFlexTemplateRequest\x1a\x33.google.dataflow.v1beta3.LaunchFlexTemplateResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eTemplatesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + LaunchFlexTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateResponse").msgclass + ContainerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ContainerSpec").msgclass + LaunchFlexTemplateParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateParameter").msgclass + FlexTemplateRuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment").msgclass + LaunchFlexTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateRequest").msgclass + RuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeEnvironment").msgclass + ParameterMetadataEnumOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadataEnumOption").msgclass + ParameterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadata").msgclass + TemplateMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TemplateMetadata").msgclass + SDKInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo").msgclass + SDKInfo::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo.Language").enummodule + RuntimeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeMetadata").msgclass + CreateJobFromTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobFromTemplateRequest").msgclass + GetTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest").msgclass + GetTemplateRequest::TemplateView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest.TemplateView").enummodule + GetTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse").msgclass + GetTemplateResponse::TemplateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse.TemplateType").enummodule + LaunchTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateParameters").msgclass + LaunchTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateRequest").msgclass + LaunchTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateResponse").msgclass + InvalidTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters").msgclass + InvalidTemplateParameters::ParameterViolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation").msgclass + DynamicTemplateLaunchParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DynamicTemplateLaunchParams").msgclass + ParameterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb new file mode 100644 index 000000000000..64389dcd989d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb @@ -0,0 +1,84 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/templates.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/templates_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + # Provides a method to create Cloud Dataflow jobs from templates. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.TemplatesService' + + # Creates a Cloud Dataflow job from a template. Do not enter confidential + # information when you supply string values using the API. + # + # To create a job, we recommend using `projects.locations.templates.create` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.create` is not recommended, because your job will + # always start in `us-central1`. + rpc :CreateJobFromTemplate, ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # Launches a template. + # + # To launch a template, we recommend using + # `projects.locations.templates.launch` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.launch` is not recommended, because jobs launched + # from the template will always start in `us-central1`. + rpc :LaunchTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse + # Get the template associated with a template. + # + # To get the template, we recommend using `projects.locations.templates.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.get` is not recommended, because only + # templates that are running in `us-central1` are retrieved. + rpc :GetTemplate, ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse + end + + Stub = Service.rpc_stub_class + end + module FlexTemplatesService + # Provides a service for Flex templates. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.FlexTemplatesService' + + # Launch a job with a FlexTemplate. + rpc :LaunchFlexTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md new file mode 100644 index 000000000000..98e2b412b7d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md @@ -0,0 +1,4 @@ +# Dataflow V1beta3 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..5089551e9ea4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb @@ -0,0 +1,589 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb new file mode 100644 index 000000000000..a72e55d5ebec --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb @@ -0,0 +1,676 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Describes the environment in which a Dataflow Job runs. + # @!attribute [rw] temp_storage_prefix + # @return [::String] + # The prefix of the resources the system should use for temporary + # storage. The system will append the suffix "/temp-\\{JOBNAME} to + # this resource prefix, where \\{JOBNAME} is the value of the + # job_name field. The resulting bucket and object prefix is used + # as the prefix of the resources used to store temporary data + # needed during the job execution. NOTE: This will override the + # value in taskrunner_settings. + # The supported resource type is: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] cluster_manager_api_service + # @return [::String] + # The type of cluster manager API to use. If unknown or + # unspecified, the service will attempt to choose a reasonable + # default. This should be in the form of the API service name, + # e.g. "compute.googleapis.com". + # @!attribute [rw] experiments + # @return [::Array<::String>] + # The list of experiments to enable. This field should be used for SDK + # related experiments and not for service related experiments. The proper + # field for service related experiments is service_options. + # @!attribute [rw] service_options + # @return [::Array<::String>] + # Optional. The list of service options to enable. This field should be used + # for service related experiments only. These experiments, when graduating to + # GA, should be replaced by dedicated fields or become default (i.e. always + # on). + # @!attribute [rw] service_kms_key_name + # @return [::String] + # Optional. If set, contains the Cloud KMS key identifier used to encrypt + # data at rest, AKA a Customer Managed Encryption Key (CMEK). + # + # Format: + # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY + # @!attribute [rw] worker_pools + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerPool>] + # The worker pools. At least one "harness" worker pool must be + # specified in order for the job to have workers. + # @!attribute [rw] user_agent + # @return [::Google::Protobuf::Struct] + # Optional. A description of the process that generated the request. + # @!attribute [rw] version + # @return [::Google::Protobuf::Struct] + # A structure describing which components and their versions of the service + # are required in order to run the job. + # @!attribute [rw] dataset + # @return [::String] + # Optional. The dataset for the current project where various workflow + # related tables are stored. + # + # The supported resource type is: + # + # Google BigQuery: + # bigquery.googleapis.com/\\{dataset} + # @!attribute [rw] sdk_pipeline_options + # @return [::Google::Protobuf::Struct] + # The Cloud Dataflow SDK pipeline options specified by the user. These + # options are passed through the service and are used to recreate the + # SDK pipeline options on the worker in a language agnostic and platform + # independent way. + # @!attribute [rw] internal_experiments + # @return [::Google::Protobuf::Any] + # Experimental settings. + # @!attribute [rw] service_account_email + # @return [::String] + # Optional. Identity to run virtual machines as. Defaults to the default + # account. + # @!attribute [rw] flex_resource_scheduling_goal + # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] + # Optional. Which Flexible Resource Scheduling mode to run in. + # @!attribute [rw] worker_region + # @return [::String] + # Optional. The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # @!attribute [rw] worker_zone + # @return [::String] + # Optional. The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # @!attribute [r] shuffle_mode + # @return [::Google::Cloud::Dataflow::V1beta3::ShuffleMode] + # Output only. The shuffle mode used for the job. + # @!attribute [rw] debug_options + # @return [::Google::Cloud::Dataflow::V1beta3::DebugOptions] + # Optional. Any debugging options to be supplied to the job. + # @!attribute [r] use_streaming_engine_resource_based_billing + # @return [::Boolean] + # Output only. Whether the job uses the Streaming Engine resource-based + # billing model. + # @!attribute [rw] streaming_mode + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] + # Optional. Specifies the Streaming Engine message processing guarantees. + # Reduces cost and latency but might result in duplicate messages committed + # to storage. Designed to run simple mapping streaming ETL jobs at the lowest + # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] use_public_ips + # @return [::Boolean] + # Optional. True when any worker pool that uses public IPs is present. + class Environment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The packages that must be installed in order for a worker to run the + # steps of the Cloud Dataflow job that will be assigned to its worker + # pool. + # + # This is the mechanism by which the Cloud Dataflow SDK causes code to + # be loaded onto the workers. For example, the Cloud Dataflow Java SDK + # might use this to install jars containing the user's code and all of the + # various dependencies (libraries, data files, etc.) required in order + # for that code to run. + # @!attribute [rw] name + # @return [::String] + # The name of the package. + # @!attribute [rw] location + # @return [::String] + # The resource to read the package from. The supported resource type is: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket} + # bucket.storage.googleapis.com/ + class Package + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes the data disk used by a workflow job. + # @!attribute [rw] size_gb + # @return [::Integer] + # Size of disk in GB. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] disk_type + # @return [::String] + # Disk storage type, as defined by Google Compute Engine. This + # must be a disk type appropriate to the project and zone in which + # the workers will run. If unknown or unspecified, the service + # will attempt to choose a reasonable default. + # + # For example, the standard persistent disk type is a resource name + # typically ending in "pd-standard". If SSD persistent disks are + # available, the resource name typically ends with "pd-ssd". The + # actual valid values are defined the Google Compute Engine API, + # not by the Cloud Dataflow API; consult the Google Compute Engine + # documentation for more information about determining the set of + # available disk types for a particular project and zone. + # + # Google Compute Engine Disk types are local to a particular + # project in a particular zone, and so the resource name will + # typically look something like this: + # + # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard + # @!attribute [rw] mount_point + # @return [::String] + # Directory in a VM where disk is mounted. + class Disk + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Provides data to pass through to the worker harness. + # @!attribute [rw] base_url + # @return [::String] + # The base URL for accessing Google Cloud APIs. + # + # When workers access Google Cloud APIs, they logically do so via + # relative URLs. If this field is specified, it supplies the base + # URL to use for resolving these relative URLs. The normative + # algorithm used is defined by RFC 1808, "Relative Uniform Resource + # Locators". + # + # If not specified, the default value is "http://www.googleapis.com/" + # @!attribute [rw] reporting_enabled + # @return [::Boolean] + # Whether to send work progress updates to the service. + # @!attribute [rw] service_path + # @return [::String] + # The Cloud Dataflow service path relative to the root URL, for example, + # "dataflow/v1b3/projects". + # @!attribute [rw] shuffle_service_path + # @return [::String] + # The Shuffle service path relative to the root URL, for example, + # "shuffle/v1beta1". + # @!attribute [rw] worker_id + # @return [::String] + # The ID of the worker running this pipeline. + # @!attribute [rw] temp_storage_prefix + # @return [::String] + # The prefix of the resources the system should use for temporary + # storage. + # + # The supported resource type is: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + class WorkerSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Taskrunner configuration settings. + # @!attribute [rw] task_user + # @return [::String] + # The UNIX user ID on the worker VM to use for tasks launched by + # taskrunner; e.g. "root". + # @!attribute [rw] task_group + # @return [::String] + # The UNIX group ID on the worker VM to use for tasks launched by + # taskrunner; e.g. "wheel". + # @!attribute [rw] oauth_scopes + # @return [::Array<::String>] + # The OAuth2 scopes to be requested by the taskrunner in order to + # access the Cloud Dataflow API. + # @!attribute [rw] base_url + # @return [::String] + # The base URL for the taskrunner to use when accessing Google Cloud APIs. + # + # When workers access Google Cloud APIs, they logically do so via + # relative URLs. If this field is specified, it supplies the base + # URL to use for resolving these relative URLs. The normative + # algorithm used is defined by RFC 1808, "Relative Uniform Resource + # Locators". + # + # If not specified, the default value is "http://www.googleapis.com/" + # @!attribute [rw] dataflow_api_version + # @return [::String] + # The API version of endpoint, e.g. "v1b3" + # @!attribute [rw] parallel_worker_settings + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerSettings] + # The settings to pass to the parallel worker harness. + # @!attribute [rw] base_task_dir + # @return [::String] + # The location on the worker for task-specific subdirectories. + # @!attribute [rw] continue_on_exception + # @return [::Boolean] + # Whether to continue taskrunner if an exception is hit. + # @!attribute [rw] log_to_serialconsole + # @return [::Boolean] + # Whether to send taskrunner log info to Google Compute Engine VM serial + # console. + # @!attribute [rw] alsologtostderr + # @return [::Boolean] + # Whether to also send taskrunner log info to stderr. + # @!attribute [rw] log_upload_location + # @return [::String] + # Indicates where to put logs. If this is not specified, the logs + # will not be uploaded. + # + # The supported resource type is: + # + # Google Cloud Storage: + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] log_dir + # @return [::String] + # The directory on the VM to store logs. + # @!attribute [rw] temp_storage_prefix + # @return [::String] + # The prefix of the resources the taskrunner should use for + # temporary storage. + # + # The supported resource type is: + # + # Google Cloud Storage: + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] harness_command + # @return [::String] + # The command to launch the worker harness. + # @!attribute [rw] workflow_file_name + # @return [::String] + # The file to store the workflow in. + # @!attribute [rw] commandlines_file_name + # @return [::String] + # The file to store preprocessing commands in. + # @!attribute [rw] vm_id + # @return [::String] + # The ID string of the VM. + # @!attribute [rw] language_hint + # @return [::String] + # The suggested backend language. + # @!attribute [rw] streaming_worker_main_class + # @return [::String] + # The streaming worker main class name. + class TaskRunnerSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for WorkerPool autoscaling. + # @!attribute [rw] algorithm + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] + # The algorithm to use for autoscaling. + # @!attribute [rw] max_num_workers + # @return [::Integer] + # The maximum number of workers to cap scaling at. + class AutoscalingSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines an SDK harness container for executing Dataflow pipelines. + # @!attribute [rw] container_image + # @return [::String] + # A docker container image that resides in Google Container Registry. + # @!attribute [rw] use_single_core_per_container + # @return [::Boolean] + # If true, recommends the Dataflow service to use only one core per SDK + # container instance with this image. If false (or unset) recommends using + # more than one core per SDK container instance with this image for + # efficiency. Note that Dataflow service may choose to override this property + # if needed. + # @!attribute [rw] environment_id + # @return [::String] + # Environment ID for the Beam runner API proto Environment that corresponds + # to the current SDK Harness. + # @!attribute [rw] capabilities + # @return [::Array<::String>] + # The set of capabilities enumerated in the above Environment proto. See also + # [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto) + class SdkHarnessContainerImage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes one particular pool of Cloud Dataflow workers to be + # instantiated by the Cloud Dataflow service in order to perform the + # computations required by a job. Note that a workflow job may use + # multiple pools, in order to match the various computational + # requirements of the various stages of the job. + # @!attribute [rw] kind + # @return [::String] + # The kind of the worker pool; currently only `harness` and `shuffle` + # are supported. + # @!attribute [rw] num_workers + # @return [::Integer] + # Number of Google Compute Engine workers in this pool needed to + # execute the job. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] packages + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Package>] + # Packages to be installed on workers. + # @!attribute [rw] default_package_set + # @return [::Google::Cloud::Dataflow::V1beta3::DefaultPackageSet] + # The default package set to install. This allows the service to + # select a default set of packages which are useful to worker + # harnesses written in a particular language. + # @!attribute [rw] machine_type + # @return [::String] + # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the + # service will attempt to choose a reasonable default. + # @!attribute [rw] teardown_policy + # @return [::Google::Cloud::Dataflow::V1beta3::TeardownPolicy] + # Sets the policy for determining when to turndown worker pool. + # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and + # `TEARDOWN_NEVER`. + # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether + # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down + # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn + # down. + # + # If the workers are not torn down by the service, they will + # continue to run and use Google Compute Engine VM resources in the + # user's project until they are explicitly terminated by the user. + # Because of this, Google recommends using the `TEARDOWN_ALWAYS` + # policy except for small, manually supervised test jobs. + # + # If unknown or unspecified, the service will attempt to choose a reasonable + # default. + # @!attribute [rw] disk_size_gb + # @return [::Integer] + # Size of root disk for VMs, in GB. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] disk_type + # @return [::String] + # Type of root disk for VMs. If empty or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] disk_provisioned_iops + # @return [::Integer] + # Optional. IOPS provisioned for the root disk for VMs. + # @!attribute [rw] disk_provisioned_throughput_mibps + # @return [::Integer] + # Optional. Throughput provisioned for the root disk for VMs. + # @!attribute [rw] disk_source_image + # @return [::String] + # Fully qualified source image for disks. + # @!attribute [rw] zone + # @return [::String] + # Zone to run the worker pools in. If empty or unspecified, the service + # will attempt to choose a reasonable default. + # @!attribute [rw] taskrunner_settings + # @return [::Google::Cloud::Dataflow::V1beta3::TaskRunnerSettings] + # Settings passed through to Google Compute Engine workers when + # using the standard Dataflow task runner. Users should ignore + # this field. + # @!attribute [rw] on_host_maintenance + # @return [::String] + # The action to take on host maintenance, as defined by the Google + # Compute Engine API. + # @!attribute [rw] data_disks + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Disk>] + # Data disks that are used by a VM in this workflow. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Map{::String => ::String}] + # Metadata to set on the Google Compute Engine VMs. + # @!attribute [rw] autoscaling_settings + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingSettings] + # Settings for autoscaling of this WorkerPool. + # @!attribute [rw] pool_args + # @return [::Google::Protobuf::Any] + # Extra arguments for this worker pool. + # @!attribute [rw] network + # @return [::String] + # Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # @!attribute [rw] subnetwork + # @return [::String] + # Subnetwork to which VMs will be assigned, if desired. Expected to be of + # the form "regions/REGION/subnetworks/SUBNETWORK". + # @!attribute [rw] worker_harness_container_image + # @return [::String] + # Required. Docker container image that executes the Cloud Dataflow worker + # harness, residing in Google Container Registry. + # + # Deprecated for the Fn API path. Use sdk_harness_container_images instead. + # @!attribute [rw] num_threads_per_worker + # @return [::Integer] + # The number of threads per worker harness. If empty or unspecified, the + # service will choose a number of threads (according to the number of cores + # on the selected machine type for batch, or 1 by convention for streaming). + # @!attribute [rw] ip_configuration + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] + # Configuration for VM IPs. + # @!attribute [rw] sdk_harness_container_images + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkHarnessContainerImage>] + # Set of SDK harness containers needed to execute this pipeline. This will + # only be set in the Fn API path. For non-cross-language pipelines this + # should have only one entry. Cross-language pipelines will have two or more + # entries. + class WorkerPool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class MetadataEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configuration options for sampling elements. + # @!attribute [rw] behaviors + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior>] + # List of given sampling behaviors to enable. For example, specifying + # behaviors = [ALWAYS_ON] samples in-flight elements but does not sample + # exceptions. Can be used to specify multiple behaviors like, + # behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and + # exception sampling. + # + # If DISABLED is in the list, then sampling will be disabled and ignore the + # other given behaviors. + # + # Ordering does not matter. + class DataSamplingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The following enum defines what to sample for a running job. + module DataSamplingBehavior + # If given, has no effect on sampling behavior. Used as an unknown or unset + # sentinel value. + DATA_SAMPLING_BEHAVIOR_UNSPECIFIED = 0 + + # When given, disables element sampling. Has same behavior as not setting + # the behavior. + DISABLED = 1 + + # When given, enables sampling in-flight from all PCollections. + ALWAYS_ON = 2 + + # When given, enables sampling input elements when a user-defined DoFn + # causes an exception. + EXCEPTIONS = 3 + end + end + + # Describes any options that have an effect on the debugging of pipelines. + # @!attribute [rw] enable_hot_key_logging + # @return [::Boolean] + # Optional. When true, enables the logging of the literal hot key to the + # user's Cloud Logging. + # @!attribute [rw] data_sampling + # @return [::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig] + # Configuration options for sampling elements from a running pipeline. + class DebugOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Specifies the processing model used by a + # [google.dataflow.v1beta3.Job], which determines the way the Job is + # managed by the Cloud Dataflow service (how workers are scheduled, how + # inputs are sharded, etc). + module JobType + # The type of the job is unspecified, or unknown. + JOB_TYPE_UNKNOWN = 0 + + # A batch job with a well-defined end point: data is read, data is + # processed, data is written, and the job is done. + JOB_TYPE_BATCH = 1 + + # A continuously streaming job with no end: data is read, + # processed, and written continuously. + JOB_TYPE_STREAMING = 2 + end + + # Specifies the resource to optimize for in Flexible Resource Scheduling. + module FlexResourceSchedulingGoal + # Run in the default mode. + FLEXRS_UNSPECIFIED = 0 + + # Optimize for lower execution time. + FLEXRS_SPEED_OPTIMIZED = 1 + + # Optimize for lower cost. + FLEXRS_COST_OPTIMIZED = 2 + end + + # Specifies what happens to a resource when a Cloud Dataflow + # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job} has completed. + module TeardownPolicy + # The teardown policy isn't specified, or is unknown. + TEARDOWN_POLICY_UNKNOWN = 0 + + # Always teardown the resource. + TEARDOWN_ALWAYS = 1 + + # Teardown the resource on success. This is useful for debugging + # failures. + TEARDOWN_ON_SUCCESS = 2 + + # Never teardown the resource. This is useful for debugging and + # development. + TEARDOWN_NEVER = 3 + end + + # The default set of packages to be staged on a pool of workers. + module DefaultPackageSet + # The default set of packages to stage is unknown, or unspecified. + DEFAULT_PACKAGE_SET_UNKNOWN = 0 + + # Indicates that no packages should be staged at the worker unless + # explicitly specified by the job. + DEFAULT_PACKAGE_SET_NONE = 1 + + # Stage packages typically useful to workers written in Java. + DEFAULT_PACKAGE_SET_JAVA = 2 + + # Stage packages typically useful to workers written in Python. + DEFAULT_PACKAGE_SET_PYTHON = 3 + end + + # Specifies the algorithm used to determine the number of worker + # processes to run at any given point in time, based on the amount of + # data left to process, the number of workers, and how quickly + # existing workers are processing data. + module AutoscalingAlgorithm + # The algorithm is unknown, or unspecified. + AUTOSCALING_ALGORITHM_UNKNOWN = 0 + + # Disable autoscaling. + AUTOSCALING_ALGORITHM_NONE = 1 + + # Increase worker count over time to reduce job execution time. + AUTOSCALING_ALGORITHM_BASIC = 2 + end + + # Specifies how to allocate IP addresses to worker machines. You can also use + # [pipeline + # options](https://cloud.google.com/dataflow/docs/reference/pipeline-options#security_and_networking) + # to specify whether Dataflow workers use external IP addresses. + module WorkerIPAddressConfiguration + # The configuration is unknown, or unspecified. + WORKER_IP_UNSPECIFIED = 0 + + # Workers should have public IP addresses. + WORKER_IP_PUBLIC = 1 + + # Workers should have private IP addresses. + WORKER_IP_PRIVATE = 2 + end + + # Specifies the shuffle mode used by a + # [google.dataflow.v1beta3.Job], which determines the approach data is shuffled + # during processing. More details in: + # https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle + module ShuffleMode + # Shuffle mode information is not available. + SHUFFLE_MODE_UNSPECIFIED = 0 + + # Shuffle is done on the worker VMs. + VM_BASED = 1 + + # Shuffle is done on the service side. + SERVICE_BASED = 2 + end + + # Specifies the Streaming Engine message processing guarantees. Reduces cost + # and latency but might result in duplicate messages written to storage. + # Designed to run simple mapping streaming ETL jobs at the lowest cost. + # For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + module StreamingMode + # Run in the default mode. + STREAMING_MODE_UNSPECIFIED = 0 + + # In this mode, message deduplication is performed against persistent state + # to make sure each message is processed and committed to storage exactly + # once. + STREAMING_MODE_EXACTLY_ONCE = 1 + + # Message deduplication is not performed. Messages might be processed + # multiple times, and the results are applied multiple times. + # Note: Setting this value also enables Streaming Engine and + # Streaming Engine resource-based billing. + STREAMING_MODE_AT_LEAST_ONCE = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb new file mode 100644 index 000000000000..e9900a0a2b40 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb @@ -0,0 +1,1100 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Defines a job to be run by the Cloud Dataflow service. Do not enter + # confidential information when you supply string values using the API. + # @!attribute [rw] id + # @return [::String] + # The unique ID of this job. + # + # This field is set by the Dataflow service when the job is + # created, and is immutable for the life of the job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Google Cloud project that the job belongs to. + # @!attribute [rw] name + # @return [::String] + # Optional. The user-specified Dataflow job name. + # + # Only one active job with a given name can exist in a project within one + # region at + # any given time. Jobs in different regions can have the same name. + # If a caller attempts to create a job with the same + # name as an active job that already exists, the attempt returns the + # existing job. + # + # The name must match the regular expression + # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` + # @!attribute [rw] type + # @return [::Google::Cloud::Dataflow::V1beta3::JobType] + # Optional. The type of Dataflow job. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::Environment] + # Optional. The environment for the job. + # @!attribute [rw] steps + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Step>] + # Exactly one of step or steps_location should be specified. + # + # The top-level steps that constitute the entire job. Only retrieved with + # JOB_VIEW_ALL. + # @!attribute [rw] steps_location + # @return [::String] + # The Cloud Storage location where the steps are stored. + # @!attribute [rw] current_state + # @return [::Google::Cloud::Dataflow::V1beta3::JobState] + # The current state of the job. + # + # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise + # specified. + # + # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a + # terminal state. After a job has reached a terminal state, no + # further state updates may be made. + # + # This field might be mutated by the Dataflow service; + # callers cannot mutate it. + # @!attribute [rw] current_state_time + # @return [::Google::Protobuf::Timestamp] + # The timestamp associated with the current state. + # @!attribute [rw] requested_state + # @return [::Google::Cloud::Dataflow::V1beta3::JobState] + # The job's requested state. Applies to `UpdateJob` requests. + # + # Set `requested_state` with `UpdateJob` requests to switch between the + # states `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`. You can also use + # `UpdateJob` requests to change a job's + # state from `JOB_STATE_RUNNING` to `JOB_STATE_CANCELLED`, + # `JOB_STATE_DONE`, or `JOB_STATE_DRAINED`. These states irrevocably + # terminate the job if it hasn't already reached a terminal state. + # + # This field has no effect on `CreateJob` requests. + # @!attribute [rw] execution_info + # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionInfo] + # Deprecated. + # @!attribute [rw] create_time + # @return [::Google::Protobuf::Timestamp] + # The timestamp when the job was initially created. Immutable and set by the + # Cloud Dataflow service. + # @!attribute [rw] replace_job_id + # @return [::String] + # If this job is an update of an existing job, this field is the job ID + # of the job it replaced. + # + # When sending a `CreateJobRequest`, you can update a job by specifying it + # here. The job named here is stopped, and its intermediate state is + # transferred to this job. + # @!attribute [rw] transform_name_mapping + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The map of transform name prefixes of the job to be replaced to + # the corresponding name prefixes of the new job. + # @!attribute [rw] client_request_id + # @return [::String] + # The client's unique identifier of the job, re-used across retried attempts. + # If this field is set, the service will ensure its uniqueness. + # The request to create a job will fail if the service has knowledge of a + # previously submitted job with the same client's ID and job name. + # The caller may use this field to ensure idempotence of job + # creation across retried attempts to create a job. + # By default, the field is empty and, in that case, the service ignores it. + # @!attribute [rw] replaced_by_job_id + # @return [::String] + # If another job is an update of this job (and thus, this job is in + # `JOB_STATE_UPDATED`), this field contains the ID of that job. + # @!attribute [rw] temp_files + # @return [::Array<::String>] + # A set of files the system should be aware of that are used + # for temporary storage. These temporary files will be + # removed on job completion. + # No duplicates are allowed. + # No file patterns are supported. + # + # The supported files are: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # User-defined labels for this job. + # + # The labels map can contain no more than 64 entries. Entries of the labels + # map are UTF8 strings that comply with the following restrictions: + # + # * Keys must conform to regexp: [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62} + # * Values must conform to regexp: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63} + # * Both keys and values are additionally constrained to be <= 128 bytes in + # size. + # @!attribute [rw] location + # @return [::String] + # Optional. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @!attribute [rw] pipeline_description + # @return [::Google::Cloud::Dataflow::V1beta3::PipelineDescription] + # Preliminary field: The format of this data may change at any time. + # A description of the user pipeline and stages through which it is executed. + # Created by Cloud Dataflow service. Only retrieved with + # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. + # @!attribute [rw] stage_states + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageState>] + # This field may be mutated by the Cloud Dataflow service; + # callers cannot mutate it. + # @!attribute [rw] job_metadata + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetadata] + # This field is populated by the Dataflow service to support filtering jobs + # by the metadata values provided here. Populated for ListJobs and all GetJob + # views SUMMARY and higher. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). + # Flexible resource scheduling jobs are started with some delay after job + # creation, so start_time is unset before start and is updated when the + # job is started by the Cloud Dataflow service. For other jobs, start_time + # always equals to create_time and is immutable and set by the Cloud Dataflow + # service. + # @!attribute [rw] created_from_snapshot_id + # @return [::String] + # If this is specified, the job's initial state is populated from the given + # snapshot. + # @!attribute [rw] satisfies_pzs + # @return [::Boolean] + # Reserved for future use. This field is set only in responses from the + # server; it is ignored if it is set in any requests. + # @!attribute [rw] runtime_updatable_params + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeUpdatableParams] + # This field may ONLY be modified at runtime using the projects.jobs.update + # method to adjust job behavior. This field has no effect when specified at + # job creation. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. This field is set only in responses + # from the server; it is ignored if it is set in any requests. + # @!attribute [r] service_resources + # @return [::Google::Cloud::Dataflow::V1beta3::ServiceResources] + # Output only. Resources used by the Dataflow Service to run the job. + # @!attribute [r] pausable + # @return [::Boolean] + # Output only. Indicates whether the job can be paused. + class Job + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TransformNameMappingEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Resources used by the Dataflow Service to run the job. + # @!attribute [r] zones + # @return [::Array<::String>] + # Output only. List of Cloud Zones being used by the Dataflow Service for + # this job. Example: us-central1-c + class ServiceResources + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Additional job parameters that can only be updated during runtime using the + # projects.jobs.update method. These fields have no effect when specified + # during job creation. + # @!attribute [rw] max_num_workers + # @return [::Integer] + # The maximum number of workers to cap autoscaling at. This field is + # currently only supported for Streaming Engine jobs. + # @!attribute [rw] min_num_workers + # @return [::Integer] + # The minimum number of workers to scale down to. This field is currently + # only supported for Streaming Engine jobs. + # @!attribute [rw] worker_utilization_hint + # @return [::Float] + # Target worker utilization, compared against the aggregate utilization of + # the worker pool by autoscaler, to determine upscaling and downscaling when + # absent other constraints such as backlog. + # For more information, see + # [Update an existing + # pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline). + # @!attribute [rw] acceptable_backlog_duration + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Protobuf::Duration] + # Optional. Deprecated: Use `autoscaling_tier` instead. + # The backlog threshold duration in seconds for autoscaling. Value must be + # non-negative. + # @!attribute [rw] autoscaling_tier + # @return [::String] + # Optional. The backlog threshold tier for autoscaling. Value must be one of + # "low-latency", "medium-latency", or "high-latency". + class RuntimeUpdatableParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Datastore connector used by the job. + # @!attribute [rw] namespace + # @return [::String] + # Namespace used in the connection. + # @!attribute [rw] project_id + # @return [::String] + # ProjectId accessed in the connection. + class DatastoreIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Pub/Sub connector used by the job. + # @!attribute [rw] topic + # @return [::String] + # Topic accessed in the connection. + # @!attribute [rw] subscription + # @return [::String] + # Subscription used in the connection. + class PubSubIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a File connector used by the job. + # @!attribute [rw] file_pattern + # @return [::String] + # File Pattern used to access files by the connector. + class FileIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Cloud Bigtable connector used by the job. + # @!attribute [rw] project_id + # @return [::String] + # ProjectId accessed in the connection. + # @!attribute [rw] instance_id + # @return [::String] + # InstanceId accessed in the connection. + # @!attribute [rw] table_id + # @return [::String] + # TableId accessed in the connection. + class BigTableIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a BigQuery connector used by the job. + # @!attribute [rw] table + # @return [::String] + # Table accessed in the connection. + # @!attribute [rw] dataset + # @return [::String] + # Dataset accessed in the connection. + # @!attribute [rw] project_id + # @return [::String] + # Project accessed in the connection. + # @!attribute [rw] query + # @return [::String] + # Query used to access data in the connection. + class BigQueryIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Spanner connector used by the job. + # @!attribute [rw] project_id + # @return [::String] + # ProjectId accessed in the connection. + # @!attribute [rw] instance_id + # @return [::String] + # InstanceId accessed in the connection. + # @!attribute [rw] database_id + # @return [::String] + # DatabaseId accessed in the connection. + class SpannerIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The version of the SDK used to run the job. + # @!attribute [rw] version + # @return [::String] + # The version of the SDK used to run the job. + # @!attribute [rw] version_display_name + # @return [::String] + # A readable string describing the version of the SDK. + # @!attribute [rw] sdk_support_status + # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion::SdkSupportStatus] + # The support status for this SDK version. + # @!attribute [r] bugs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkBug>] + # Output only. Known bugs found in this SDK version. + class SdkVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The support status of the SDK used to run the job. + module SdkSupportStatus + # Cloud Dataflow is unaware of this version. + UNKNOWN = 0 + + # This is a known version of an SDK, and is supported. + SUPPORTED = 1 + + # A newer version of the SDK family exists, and an update is recommended. + STALE = 2 + + # This version of the SDK is deprecated and will eventually be + # unsupported. + DEPRECATED = 3 + + # Support for this SDK version has ended and it should no longer be used. + UNSUPPORTED = 4 + end + end + + # A bug found in the Dataflow SDK. + # @!attribute [r] type + # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Type] + # Output only. Describes the impact of this SDK bug. + # @!attribute [r] severity + # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Severity] + # Output only. How severe the SDK bug is. + # @!attribute [r] uri + # @return [::String] + # Output only. Link to more information on the bug. + class SdkBug + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Nature of the issue, ordered from least severe to most. Other bug types may + # be added to this list in the future. + module Type + # Unknown issue with this SDK. + TYPE_UNSPECIFIED = 0 + + # Catch-all for SDK bugs that don't fit in the below categories. + GENERAL = 1 + + # Using this version of the SDK may result in degraded performance. + PERFORMANCE = 2 + + # Using this version of the SDK may cause data loss. + DATALOSS = 3 + end + + # Indicates the severity of the bug. Other severities may be added to this + # list in the future. + module Severity + # A bug of unknown severity. + SEVERITY_UNSPECIFIED = 0 + + # A minor bug that that may reduce reliability or performance for some + # jobs. Impact will be minimal or non-existent for most jobs. + NOTICE = 1 + + # A bug that has some likelihood of causing performance degradation, data + # loss, or job failures. + WARNING = 2 + + # A bug with extremely significant impact. Jobs may fail erroneously, + # performance may be severely degraded, and data loss may be very likely. + SEVERE = 3 + end + end + + # Metadata available primarily for filtering jobs. Will be included in the + # ListJob response and Job SUMMARY view. + # @!attribute [rw] sdk_version + # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion] + # The SDK version used to run the job. + # @!attribute [rw] spanner_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SpannerIODetails>] + # Identification of a Spanner source used in the Dataflow job. + # @!attribute [rw] bigquery_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigQueryIODetails>] + # Identification of a BigQuery source used in the Dataflow job. + # @!attribute [rw] big_table_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigTableIODetails>] + # Identification of a Cloud Bigtable source used in the Dataflow job. + # @!attribute [rw] pubsub_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubSubIODetails>] + # Identification of a Pub/Sub source used in the Dataflow job. + # @!attribute [rw] file_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FileIODetails>] + # Identification of a File source used in the Dataflow job. + # @!attribute [rw] datastore_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DatastoreIODetails>] + # Identification of a Datastore source used in the Dataflow job. + # @!attribute [rw] user_display_properties + # @return [::Google::Protobuf::Map{::String => ::String}] + # List of display properties to help UI filter jobs. + class JobMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class UserDisplayPropertiesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A message describing the state of a particular execution stage. + # @!attribute [rw] execution_stage_name + # @return [::String] + # The name of the execution stage. + # @!attribute [rw] execution_stage_state + # @return [::Google::Cloud::Dataflow::V1beta3::JobState] + # Executions stage states allow the same set of values as JobState. + # @!attribute [rw] current_state_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the stage transitioned to this state. + class ExecutionStageState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A descriptive representation of submitted pipeline as well as the executed + # form. This data is provided by the Dataflow service for ease of visualizing + # the pipeline and interpreting Dataflow provided metrics. + # @!attribute [rw] original_pipeline_transform + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::TransformSummary>] + # Description of each transform in the pipeline and collections between them. + # @!attribute [rw] execution_pipeline_stage + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary>] + # Description of each stage of execution of the pipeline. + # @!attribute [rw] display_data + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] + # Pipeline level display data. + # @!attribute [rw] step_names_hash + # @return [::String] + # A hash value of the submitted pipeline portable graph step names if exists. + class PipelineDescription + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of the type, names/ids, and input/outputs for a transform. + # @!attribute [rw] kind + # @return [::Google::Cloud::Dataflow::V1beta3::KindType] + # Type of transform. + # @!attribute [rw] id + # @return [::String] + # SDK generated id of this transform instance. + # @!attribute [rw] name + # @return [::String] + # User provided name for this transform instance. + # @!attribute [rw] display_data + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] + # Transform-specific display data. + # @!attribute [rw] output_collection_name + # @return [::Array<::String>] + # User names for all collection outputs to this transform. + # @!attribute [rw] input_collection_name + # @return [::Array<::String>] + # User names for all collection inputs to this transform. + class TransformSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of the composing transforms, names/ids, and input/outputs of a + # stage of execution. Some composing transforms and sources may have been + # generated by the Dataflow service during execution planning. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this stage. + # @!attribute [rw] id + # @return [::String] + # Dataflow service generated id for this stage. + # @!attribute [rw] kind + # @return [::Google::Cloud::Dataflow::V1beta3::KindType] + # Type of transform this stage is executing. + # @!attribute [rw] input_source + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] + # Input sources for this stage. + # @!attribute [rw] output_source + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] + # Output sources for this stage. + # @!attribute [rw] prerequisite_stage + # @return [::Array<::String>] + # Other stages that must complete before this stage can run. + # @!attribute [rw] component_transform + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentTransform>] + # Transforms that comprise this execution stage. + # @!attribute [rw] component_source + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentSource>] + # Collections produced and consumed by component transforms of this stage. + class ExecutionStageSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Description of an input or output of an execution stage. + # @!attribute [rw] user_name + # @return [::String] + # Human-readable name for this source; may be user or system generated. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this source. + # @!attribute [rw] original_transform_or_collection + # @return [::String] + # User name for the original user transform or collection with which this + # source is most closely associated. + # @!attribute [rw] size_bytes + # @return [::Integer] + # Size of the source, if measurable. + class StageSource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of a transform executed as part of an execution stage. + # @!attribute [rw] user_name + # @return [::String] + # Human-readable name for this transform; may be user or system generated. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this source. + # @!attribute [rw] original_transform + # @return [::String] + # User name for the original user transform with which this transform is + # most closely associated. + class ComponentTransform + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of an interstitial value between transforms in an execution + # stage. + # @!attribute [rw] user_name + # @return [::String] + # Human-readable name for this transform; may be user or system generated. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this source. + # @!attribute [rw] original_transform_or_collection + # @return [::String] + # User name for the original user transform or collection with which this + # source is most closely associated. + class ComponentSource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Data provided with a pipeline or transform to provide descriptive info. + # @!attribute [rw] key + # @return [::String] + # The key identifying the display data. + # This is intended to be used as a label for the display data + # when viewed in a dax monitoring system. + # @!attribute [rw] namespace + # @return [::String] + # The namespace for the key. This is usually a class name or programming + # language namespace (i.e. python module) which defines the display data. + # This allows a dax monitoring system to specially handle the data + # and perform custom rendering. + # @!attribute [rw] str_value + # @return [::String] + # Contains value if the data is of string type. + # + # Note: The following fields are mutually exclusive: `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_value + # @return [::Integer] + # Contains value if the data is of int64 type. + # + # Note: The following fields are mutually exclusive: `int64_value`, `str_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float_value + # @return [::Float] + # Contains value if the data is of float type. + # + # Note: The following fields are mutually exclusive: `float_value`, `str_value`, `int64_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] java_class_value + # @return [::String] + # Contains value if the data is of java class type. + # + # Note: The following fields are mutually exclusive: `java_class_value`, `str_value`, `int64_value`, `float_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_value + # @return [::Google::Protobuf::Timestamp] + # Contains value if the data is of timestamp type. + # + # Note: The following fields are mutually exclusive: `timestamp_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] duration_value + # @return [::Google::Protobuf::Duration] + # Contains value if the data is of duration type. + # + # Note: The following fields are mutually exclusive: `duration_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_value + # @return [::Boolean] + # Contains value if the data is of a boolean type. + # + # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] short_str_value + # @return [::String] + # A possible additional shorter value to display. + # For example a java_class_name_value of com.mypackage.MyDoFn + # will be stored with MyDoFn as the short_str_value and + # com.mypackage.MyDoFn as the java_class_name value. + # short_str_value can be displayed and java_class_name_value + # will be displayed as a tooltip. + # @!attribute [rw] url + # @return [::String] + # An optional full URL. + # @!attribute [rw] label + # @return [::String] + # An optional label to display in a dax UI for the element. + class DisplayData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a particular step within a Cloud Dataflow job. + # + # A job consists of multiple steps, each of which performs some + # specific operation as part of the overall job. Data is typically + # passed from one step to another as part of the job. + # + # **Note:** The properties of this object are not stable and might change. + # + # Here's an example of a sequence of steps which together implement a + # Map-Reduce job: + # + # * Read a collection of data from some source, parsing the + # collection's elements. + # + # * Validate the elements. + # + # * Apply a user-defined function to map each element to some value + # and extract an element-specific key value. + # + # * Group elements with the same key into a single element with + # that key, transforming a multiply-keyed collection into a + # uniquely-keyed collection. + # + # * Write the elements out to some data sink. + # + # Note that the Cloud Dataflow service may be used to run many different + # types of jobs, not just Map-Reduce. + # @!attribute [rw] kind + # @return [::String] + # The kind of step in the Cloud Dataflow job. + # @!attribute [rw] name + # @return [::String] + # The name that identifies the step. This must be unique for each + # step with respect to all other steps in the Cloud Dataflow job. + # @!attribute [rw] properties + # @return [::Google::Protobuf::Struct] + # Named properties associated with the step. Each kind of + # predefined step has its own required set of properties. + # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. + class Step + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Additional information about how a Cloud Dataflow job will be executed that + # isn't contained in the submitted job. + # @!attribute [rw] stages + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo}] + # A mapping from each stage to the information about that stage. + class JobExecutionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo] + class StagesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Contains information about how a particular + # {::Google::Cloud::Dataflow::V1beta3::Step google.dataflow.v1beta3.Step} will be + # executed. + # @!attribute [rw] step_name + # @return [::Array<::String>] + # The steps associated with the execution stage. + # Note that stages may have several steps, and that a given step + # might be run by more than one stage. + class JobExecutionStageInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to create a Cloud Dataflow job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The job to create. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @!attribute [rw] replace_job_id + # @return [::String] + # Deprecated. This field is now in the Job message. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + class CreateJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get the state of a Cloud Dataflow job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job_id + # @return [::String] + # The job ID. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + class GetJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to update a Cloud Dataflow job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job_id + # @return [::String] + # The job ID. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The updated job. + # Only the job state is updatable; other fields will be ignored. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # The list of fields to update relative to Job. If empty, only + # RequestedJobState will be considered for update. If the FieldMask is not + # empty and RequestedJobState is none/empty, The fields specified in the + # update mask will be the only ones considered for update. If both + # RequestedJobState and update_mask are specified, an error will be returned + # as we cannot update both state and mask. + class UpdateJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to list Cloud Dataflow jobs. + # @!attribute [rw] filter + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @!attribute [rw] project_id + # @return [::String] + # The project which owns the jobs. + # @!attribute [rw] view + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @!attribute [rw] page_size + # @return [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @!attribute [rw] page_token + # @return [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @!attribute [rw] name + # @return [::String] + # Optional. The job name. + class ListJobsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # This field filters out and returns jobs in the specified job state. The + # order of data returned is determined by the filter used, and is subject to + # change. + module Filter + # The filter isn't specified, or is unknown. This returns all jobs ordered + # on descending `JobUuid`. + UNKNOWN = 0 + + # Returns all running jobs first ordered on creation timestamp, then + # returns all terminated jobs ordered on the termination timestamp. + ALL = 1 + + # Filters the jobs that have a terminated state, ordered on the + # termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, + # `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc. + TERMINATED = 2 + + # Filters the jobs that are running ordered on the creation timestamp. + ACTIVE = 3 + end + end + + # Indicates which [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed + # to respond to a request for data. + # @!attribute [rw] name + # @return [::String] + # The name of the [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # failed to respond. + class FailedLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to a request to list Cloud Dataflow jobs in a project. This might + # be a partial response, depending on the page size in the ListJobsRequest. + # However, if the project does not have any jobs, an instance of + # ListJobsResponse is not returned and the requests's response + # body is empty {}. + # @!attribute [rw] jobs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Job>] + # A subset of the requested job information. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if there may be more results than fit in this response. + # @!attribute [rw] failed_location + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FailedLocation>] + # Zero or more messages describing the [regional endpoints] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # failed to respond. + class ListJobsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to create a snapshot of a job. + # @!attribute [rw] project_id + # @return [::String] + # The project which owns the job to be snapshotted. + # @!attribute [rw] job_id + # @return [::String] + # The job to be snapshotted. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # TTL for the snapshot. + # @!attribute [rw] location + # @return [::String] + # The location that contains this job. + # @!attribute [rw] snapshot_sources + # @return [::Boolean] + # If true, perform snapshots for sources which support this. + # @!attribute [rw] description + # @return [::String] + # User specified description of the snapshot. Maybe empty. + class SnapshotJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to check is active jobs exists for a project + # @!attribute [rw] project_id + # @return [::String] + # The project which owns the jobs. + class CheckActiveJobsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response for CheckActiveJobsRequest. + # @!attribute [rw] active_jobs_exist + # @return [::Boolean] + # If True, active jobs exists for project. False otherwise. + class CheckActiveJobsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Type of transform or stage operation. + module KindType + # Unrecognized transform type. + UNKNOWN_KIND = 0 + + # ParDo transform. + PAR_DO_KIND = 1 + + # Group By Key transform. + GROUP_BY_KEY_KIND = 2 + + # Flatten transform. + FLATTEN_KIND = 3 + + # Read transform. + READ_KIND = 4 + + # Write transform. + WRITE_KIND = 5 + + # Constructs from a constant value, such as with Create.of. + CONSTANT_KIND = 6 + + # Creates a Singleton view of a collection. + SINGLETON_KIND = 7 + + # Opening or closing a shuffle session, often as part of a GroupByKey. + SHUFFLE_KIND = 8 + end + + # Describes the overall state of a + # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job}. + module JobState + # The job's run state isn't specified. + JOB_STATE_UNKNOWN = 0 + + # `JOB_STATE_STOPPED` indicates that the job has not + # yet started to run. + JOB_STATE_STOPPED = 1 + + # `JOB_STATE_RUNNING` indicates that the job is currently running. + JOB_STATE_RUNNING = 2 + + # `JOB_STATE_DONE` indicates that the job has successfully completed. + # This is a terminal job state. This state may be set by the Cloud Dataflow + # service, as a transition from `JOB_STATE_RUNNING`. It may also be set via a + # Cloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal + # state. + JOB_STATE_DONE = 3 + + # `JOB_STATE_FAILED` indicates that the job has failed. This is a + # terminal job state. This state may only be set by the Cloud Dataflow + # service, and only as a transition from `JOB_STATE_RUNNING`. + JOB_STATE_FAILED = 4 + + # `JOB_STATE_CANCELLED` indicates that the job has been explicitly + # cancelled. This is a terminal job state. This state may only be + # set via a Cloud Dataflow `UpdateJob` call, and only if the job has not + # yet reached another terminal state. + JOB_STATE_CANCELLED = 5 + + # `JOB_STATE_UPDATED` indicates that the job was successfully updated, + # meaning that this job was stopped and another job was started, inheriting + # state from this one. This is a terminal job state. This state may only be + # set by the Cloud Dataflow service, and only as a transition from + # `JOB_STATE_RUNNING`. + JOB_STATE_UPDATED = 6 + + # `JOB_STATE_DRAINING` indicates that the job is in the process of draining. + # A draining job has stopped pulling from its input sources and is processing + # any data that remains in-flight. This state may be set via a Cloud Dataflow + # `UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs + # that are draining may only transition to `JOB_STATE_DRAINED`, + # `JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`. + JOB_STATE_DRAINING = 7 + + # `JOB_STATE_DRAINED` indicates that the job has been drained. + # A drained job terminated by stopping pulling from its input sources and + # processing any data that remained in-flight when draining was requested. + # This state is a terminal state, may only be set by the Cloud Dataflow + # service, and only as a transition from `JOB_STATE_DRAINING`. + JOB_STATE_DRAINED = 8 + + # `JOB_STATE_PENDING` indicates that the job has been created but is not yet + # running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, + # or `JOB_STATE_FAILED`. + JOB_STATE_PENDING = 9 + + # `JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled + # and is in the process of stopping. Jobs that are cancelling may only + # transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`. + JOB_STATE_CANCELLING = 10 + + # `JOB_STATE_QUEUED` indicates that the job has been created but is being + # delayed until launch. Jobs that are queued may only transition to + # `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`. + JOB_STATE_QUEUED = 11 + + # `JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated + # resources are currently being cleaned up after a successful run. + # Currently, this is an opt-in feature, please reach out to Cloud support + # team if you are interested. + JOB_STATE_RESOURCE_CLEANING_UP = 12 + + # `JOB_STATE_PAUSING` is not implemented yet. + JOB_STATE_PAUSING = 13 + + # `JOB_STATE_PAUSED` is not implemented yet. + JOB_STATE_PAUSED = 14 + end + + # Selector for how much information is returned in Job responses. + module JobView + # The job view to return isn't specified, or is unknown. + # Responses will contain at least the `JOB_VIEW_SUMMARY` information, + # and may contain additional information. + JOB_VIEW_UNKNOWN = 0 + + # Request summary information only: + # Project ID, Job ID, job name, job type, job status, start/end time, + # and Cloud SDK version details. + JOB_VIEW_SUMMARY = 1 + + # Request all information available for this job. When the job is in + # `JOB_STATE_PENDING`, the job has been created but is not yet running, and + # not all job information is available. For complete + # job information, wait until the job in is `JOB_STATE_RUNNING`. For more + # information, see + # [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate). + JOB_VIEW_ALL = 2 + + # Request summary info and limited job description data for steps, labels and + # environment. + JOB_VIEW_DESCRIPTION = 3 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb new file mode 100644 index 000000000000..726654a43823 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb @@ -0,0 +1,225 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # A particular message pertaining to a Dataflow job. + # @!attribute [rw] id + # @return [::String] + # Deprecated. + # @!attribute [rw] time + # @return [::Google::Protobuf::Timestamp] + # The timestamp of the message. + # @!attribute [rw] message_text + # @return [::String] + # The text of the message. + # @!attribute [rw] message_importance + # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Importance level of the message. + class JobMessage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A rich message format, including a human readable string, a key for + # identifying the message, and structured data associated with the message for + # programmatic consumption. + # @!attribute [rw] message_text + # @return [::String] + # Human-readable version of message. + # @!attribute [rw] message_key + # @return [::String] + # Identifier for this message type. Used by external systems to + # internationalize or personalize message. + # @!attribute [rw] parameters + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter>] + # The structured data associated with this message. + class StructuredMessage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Structured data associated with this message. + # @!attribute [rw] key + # @return [::String] + # Key or name for this parameter. + # @!attribute [rw] value + # @return [::Google::Protobuf::Value] + # Value for this parameter. + class Parameter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A structured message reporting an autoscaling decision made by the Dataflow + # service. + # @!attribute [rw] current_num_workers + # @return [::Integer] + # The current number of workers the job has. + # @!attribute [rw] target_num_workers + # @return [::Integer] + # The target number of workers the worker pool wants to resize to use. + # @!attribute [rw] event_type + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent::AutoscalingEventType] + # The type of autoscaling event to report. + # @!attribute [rw] description + # @return [::Google::Cloud::Dataflow::V1beta3::StructuredMessage] + # A message describing why the system decided to adjust the current + # number of workers, why it failed, or why the system decided to + # not make any changes to the number of workers. + # @!attribute [rw] time + # @return [::Google::Protobuf::Timestamp] + # The time this event was emitted to indicate a new target or current + # num_workers value. + # @!attribute [rw] worker_pool + # @return [::String] + # A short and friendly name for the worker pool this event refers to. + class AutoscalingEvent + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the type of autoscaling event. + module AutoscalingEventType + # Default type for the enum. Value should never be returned. + TYPE_UNKNOWN = 0 + + # The TARGET_NUM_WORKERS_CHANGED type should be used when the target + # worker pool size has changed at the start of an actuation. An event + # should always be specified as TARGET_NUM_WORKERS_CHANGED if it reflects + # a change in the target_num_workers. + TARGET_NUM_WORKERS_CHANGED = 1 + + # The CURRENT_NUM_WORKERS_CHANGED type should be used when actual worker + # pool size has been changed, but the target_num_workers has not changed. + CURRENT_NUM_WORKERS_CHANGED = 2 + + # The ACTUATION_FAILURE type should be used when we want to report + # an error to the user indicating why the current number of workers + # in the pool could not be changed. + # Displayed in the current status and history widgets. + ACTUATION_FAILURE = 3 + + # Used when we want to report to the user a reason why we are + # not currently adjusting the number of workers. + # Should specify both target_num_workers, current_num_workers and a + # decision_message. + NO_CHANGE = 4 + end + end + + # Request to list job messages. + # Up to max_results messages will be returned in the time range specified + # starting with the oldest messages first. If no time range is specified + # the results with start with the oldest message. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get messages about. + # @!attribute [rw] minimum_importance + # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Filter to only get messages with importance >= level + # @!attribute [rw] page_size + # @return [::Integer] + # If specified, determines the maximum number of messages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @!attribute [rw] page_token + # @return [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # If specified, return only messages with timestamps >= start_time. + # The default is the job creation time (i.e. beginning of messages). + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + class ListJobMessagesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to a request to list job messages. + # @!attribute [rw] job_messages + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # Messages in ascending timestamp order. + # @!attribute [rw] next_page_token + # @return [::String] + # The token to obtain the next page of results if there are more. + # @!attribute [rw] autoscaling_events + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent>] + # Autoscaling events in ascending timestamp order. + class ListJobMessagesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the importance of the message. + module JobMessageImportance + # The message importance isn't specified, or is unknown. + JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0 + + # The message is at the 'debug' level: typically only useful for + # software engineers working on the code the job is running. + # Typically, Dataflow pipeline runners do not display log messages + # at this level by default. + JOB_MESSAGE_DEBUG = 1 + + # The message is at the 'detailed' level: somewhat verbose, but + # potentially useful to users. Typically, Dataflow pipeline + # runners do not display log messages at this level by default. + # These messages are displayed by default in the Dataflow + # monitoring UI. + JOB_MESSAGE_DETAILED = 2 + + # The message is at the 'basic' level: useful for keeping + # track of the execution of a Dataflow pipeline. Typically, + # Dataflow pipeline runners display log messages at this level by + # default, and these messages are displayed by default in the + # Dataflow monitoring UI. + JOB_MESSAGE_BASIC = 5 + + # The message is at the 'warning' level: indicating a condition + # pertaining to a job which may require human intervention. + # Typically, Dataflow pipeline runners display log messages at this + # level by default, and these messages are displayed by default in + # the Dataflow monitoring UI. + JOB_MESSAGE_WARNING = 3 + + # The message is at the 'error' level: indicating a condition + # preventing a job from succeeding. Typically, Dataflow pipeline + # runners display log messages at this level by default, and these + # messages are displayed by default in the Dataflow monitoring UI. + JOB_MESSAGE_ERROR = 4 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb new file mode 100644 index 000000000000..48590e3d26f4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb @@ -0,0 +1,517 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Identifies a metric, by describing the source which generated the + # metric. + # @!attribute [rw] origin + # @return [::String] + # Origin (namespace) of metric name. May be blank for user-define metrics; + # will be "dataflow" for metrics defined by the Dataflow service or SDK. + # @!attribute [rw] name + # @return [::String] + # Worker-defined metric name. + # @!attribute [rw] context + # @return [::Google::Protobuf::Map{::String => ::String}] + # Zero or more labeled fields which identify the part of the job this + # metric is associated with, such as the name of a step or collection. + # + # For example, built-in counters associated with steps will have + # context['step'] = . Counters associated with PCollections + # in the SDK will have context['pcollection'] = . + class MetricStructuredName + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ContextEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the state of a metric. + # @!attribute [rw] name + # @return [::Google::Cloud::Dataflow::V1beta3::MetricStructuredName] + # Name of the metric. + # @!attribute [rw] kind + # @return [::String] + # Metric aggregation kind. The possible metric aggregation kinds are + # "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". + # The specified aggregation kind is case-insensitive. + # + # If omitted, this is not an aggregated value but instead + # a single metric sample value. + # @!attribute [rw] cumulative + # @return [::Boolean] + # True if this metric is reported as the total cumulative aggregate + # value accumulated since the worker started working on this WorkItem. + # By default this is false, indicating that this metric is reported + # as a delta that is not associated with any WorkItem. + # @!attribute [rw] scalar + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", + # "And", and "Or". The possible value types are Long, Double, and Boolean. + # @!attribute [rw] mean_sum + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Mean" aggregation kind. + # This holds the sum of the aggregated values and is used in combination + # with mean_count below to obtain the actual mean aggregate value. + # The only possible value types are Long and Double. + # @!attribute [rw] mean_count + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Mean" aggregation kind. + # This holds the count of the aggregated values and is used in combination + # with mean_sum above to obtain the actual mean aggregate value. + # The only possible value type is Long. + # @!attribute [rw] set + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Set" aggregation kind. The only + # possible value type is a list of Values whose type can be Long, Double, + # String, or BoundedTrie according to the metric's type. All Values in the + # list must be of the same type. + # @!attribute [rw] trie + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Trie" aggregation kind. The only + # possible value type is a BoundedTrieNode. + # @!attribute [rw] bounded_trie + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Trie" aggregation kind. The only + # possible value type is a BoundedTrieNode. + # Introduced this field to avoid breaking older SDKs when Dataflow service + # starts to populate the `bounded_trie` field. + # @!attribute [rw] distribution + # @return [::Google::Protobuf::Value] + # A struct value describing properties of a distribution of numeric values. + # @!attribute [rw] gauge + # @return [::Google::Protobuf::Value] + # A struct value describing properties of a Gauge. + # Metrics of gauge type show the value of a metric across time, and is + # aggregated based on the newest value. + # @!attribute [rw] internal + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for internal use by the Dataflow + # service. + # @!attribute [rw] update_time + # @return [::Google::Protobuf::Timestamp] + # Timestamp associated with the metric value. Optional when workers are + # reporting work progress; it will be filled in responses from the + # metrics API. + class MetricUpdate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get job metrics. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get metrics for. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + class GetJobMetricsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # JobMetrics contains a collection of metrics describing the detailed progress + # of a Dataflow job. Metrics correspond to user-defined and system-defined + # metrics in the job. For more information, see [Dataflow job metrics] + # (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf). + # + # This resource captures only the most recent values of each metric; + # time-series data can be queried for them (under the same metric names) + # from Cloud Monitoring. + # @!attribute [rw] metric_time + # @return [::Google::Protobuf::Timestamp] + # Timestamp as of which metric values are current. + # @!attribute [rw] metrics + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] + # All metrics for this job. + class JobMetrics + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get job execution details. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get execution details for. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @!attribute [rw] page_size + # @return [::Integer] + # If specified, determines the maximum number of stages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @!attribute [rw] page_token + # @return [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + class GetJobExecutionDetailsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the progress of some component of job execution. + # @!attribute [rw] current_progress + # @return [::Float] + # The current progress of the component, in the range [0,1]. + # @!attribute [rw] data_points + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries::Point>] + # History of progress for the component. + # + # Points are sorted by time. + class ProgressTimeseries + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A point in the timeseries. + # @!attribute [rw] time + # @return [::Google::Protobuf::Timestamp] + # The timestamp of the point. + # @!attribute [rw] value + # @return [::Float] + # The value of the point. + class Point + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Information useful for straggler identification and debugging. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time when the work item attempt became a straggler. + # @!attribute [rw] causes + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo}] + # The straggler causes, keyed by the string representation of the + # StragglerCause enum and contains specialized debugging information for each + # straggler cause. + class StragglerInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Information useful for debugging a straggler. Each type will provide + # specialized debugging information relevant for a particular cause. + # The StragglerDebuggingInfo will be 1:1 mapping to the StragglerCause enum. + # @!attribute [rw] hot_key + # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo] + # Hot key debugging details. + class StragglerDebuggingInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo] + class CausesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Information useful for streaming straggler identification and debugging. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Start time of this straggler. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # End time of this straggler. + # @!attribute [rw] worker_name + # @return [::String] + # Name of the worker where the straggler was detected. + # @!attribute [rw] data_watermark_lag + # @return [::Google::Protobuf::Duration] + # The event-time watermark lag at the time of the straggler detection. + # @!attribute [rw] system_watermark_lag + # @return [::Google::Protobuf::Duration] + # The system watermark lag at the time of the straggler detection. + class StreamingStragglerInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information for a straggler. + # @!attribute [rw] batch_straggler + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] + # Batch straggler identification and debugging information. + # + # Note: The following fields are mutually exclusive: `batch_straggler`, `streaming_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] streaming_straggler + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStragglerInfo] + # Streaming straggler identification and debugging information. + # + # Note: The following fields are mutually exclusive: `streaming_straggler`, `batch_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Straggler + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information useful for debugging a hot key detection. + # @!attribute [rw] detected_hot_keys + # @return [::Google::Protobuf::Map{::Integer => ::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo}] + # Debugging information for each detected hot key. Keyed by a hash of the + # key. + class HotKeyDebuggingInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Information about a hot key. + # @!attribute [rw] hot_key_age + # @return [::Google::Protobuf::Duration] + # The age of the hot key measured from when it was first detected. + # @!attribute [rw] key + # @return [::String] + # A detected hot key that is causing limited parallelism. This field will + # be populated only if the following flag is set to true: + # "--enable_hot_key_logging". + # @!attribute [rw] key_truncated + # @return [::Boolean] + # If true, then the above key is truncated and cannot be deserialized. This + # occurs if the key above is populated and the key size is >5MB. + class HotKeyInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::Integer] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo] + class DetectedHotKeysEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Summarized straggler identification details. + # @!attribute [rw] total_straggler_count + # @return [::Integer] + # The total count of stragglers. + # @!attribute [rw] straggler_cause_count + # @return [::Google::Protobuf::Map{::String => ::Integer}] + # Aggregated counts of straggler causes, keyed by the string representation + # of the StragglerCause enum. + # @!attribute [rw] recent_stragglers + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Straggler>] + # The most recent stragglers. + class StragglerSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Integer] + class StragglerCauseCountEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Information about a particular execution stage of a job. + # @!attribute [rw] stage_id + # @return [::String] + # ID of this stage + # @!attribute [rw] state + # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] + # State of this stage. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Start time of this stage. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # End time of this stage. + # + # If the work item is completed, this is the actual end time of the stage. + # Otherwise, it is the predicted end time. + # @!attribute [rw] progress + # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] + # Progress for this stage. + # Only applicable to Batch jobs. + # @!attribute [rw] metrics + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] + # Metrics for this stage. + # @!attribute [rw] straggler_summary + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerSummary] + # Straggler summary for this stage. + class StageSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the execution of a job. + # @!attribute [rw] stages + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # The stages of the job execution. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, this response does not contain all requested tasks. To obtain + # the next page of results, repeat the request with page_token set to this + # value. + class JobExecutionDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get information about a particular execution stage of a job. + # Currently only tracked for Batch jobs. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get execution details for. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @!attribute [rw] stage_id + # @return [::String] + # The stage for which to fetch information. + # @!attribute [rw] page_size + # @return [::Integer] + # If specified, determines the maximum number of work items to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @!attribute [rw] page_token + # @return [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Lower time bound of work items to include, by start time. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Upper time bound of work items to include, by start time. + class GetStageExecutionDetailsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about an individual work item execution. + # @!attribute [rw] task_id + # @return [::String] + # Name of this work item. + # @!attribute [rw] attempt_id + # @return [::String] + # Attempt ID of this work item + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Start time of this work item attempt. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # End time of this work item attempt. + # + # If the work item is completed, this is the actual end time of the work + # item. Otherwise, it is the predicted end time. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] + # State of this work item. + # @!attribute [rw] progress + # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] + # Progress of this work item. + # @!attribute [rw] metrics + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] + # Metrics for this work item. + # @!attribute [rw] straggler_info + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] + # Information about straggler detections for this work item. + class WorkItemDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about a worker + # @!attribute [rw] worker_name + # @return [::String] + # Name of this worker + # @!attribute [rw] work_items + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkItemDetails>] + # Work items processed by this worker, sorted by time. + class WorkerDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the workers and work items within a stage. + # @!attribute [rw] workers + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # Workers that have done work on the stage. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, this response does not contain all requested tasks. To obtain + # the next page of results, repeat the request with page_token set to this + # value. + class StageExecutionDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The state of some component of job execution. + module ExecutionState + # The component state is unknown or unspecified. + EXECUTION_STATE_UNKNOWN = 0 + + # The component is not yet running. + EXECUTION_STATE_NOT_STARTED = 1 + + # The component is currently running. + EXECUTION_STATE_RUNNING = 2 + + # The component succeeded. + EXECUTION_STATE_SUCCEEDED = 3 + + # The component failed. + EXECUTION_STATE_FAILED = 4 + + # Execution of the component was cancelled. + EXECUTION_STATE_CANCELLED = 5 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb new file mode 100644 index 000000000000..17febf5681be --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb @@ -0,0 +1,160 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Represents a Pubsub snapshot. + # @!attribute [rw] topic_name + # @return [::String] + # The name of the Pubsub topic. + # @!attribute [rw] snapshot_name + # @return [::String] + # The name of the Pubsub snapshot. + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # The expire time of the Pubsub snapshot. + class PubsubSnapshotMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a snapshot of a job. + # @!attribute [rw] id + # @return [::String] + # The unique ID of this snapshot. + # @!attribute [rw] project_id + # @return [::String] + # The project this snapshot belongs to. + # @!attribute [rw] source_job_id + # @return [::String] + # The job this snapshot was created from. + # @!attribute [rw] creation_time + # @return [::Google::Protobuf::Timestamp] + # The time this snapshot was created. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # The time after which this snapshot will be automatically deleted. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataflow::V1beta3::SnapshotState] + # State of the snapshot. + # @!attribute [rw] pubsub_metadata + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubsubSnapshotMetadata>] + # Pub/Sub snapshot metadata. + # @!attribute [rw] description + # @return [::String] + # User specified description of the snapshot. Maybe empty. + # @!attribute [rw] disk_size_bytes + # @return [::Integer] + # The disk byte size of the snapshot. Only available for snapshots in READY + # state. + # @!attribute [rw] region + # @return [::String] + # Cloud region where this snapshot lives in, e.g., "us-central1". + class Snapshot + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get information about a snapshot + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @!attribute [rw] snapshot_id + # @return [::String] + # The ID of the snapshot. + # @!attribute [rw] location + # @return [::String] + # The location that contains this snapshot. + class GetSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to delete a snapshot. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @!attribute [rw] snapshot_id + # @return [::String] + # The ID of the snapshot. + # @!attribute [rw] location + # @return [::String] + # The location that contains this snapshot. + class DeleteSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response from deleting a snapshot. + class DeleteSnapshotResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to list snapshots. + # @!attribute [rw] project_id + # @return [::String] + # The project ID to list snapshots for. + # @!attribute [rw] job_id + # @return [::String] + # If specified, list snapshots created from this job. + # @!attribute [rw] location + # @return [::String] + # The location to list snapshots in. + class ListSnapshotsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # List of snapshots. + # @!attribute [rw] snapshots + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Snapshot>] + # Returned snapshots. + class ListSnapshotsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Snapshot state. + module SnapshotState + # Unknown state. + UNKNOWN_SNAPSHOT_STATE = 0 + + # Snapshot intent to create has been persisted, snapshotting of state has not + # yet started. + PENDING = 1 + + # Snapshotting is being performed. + RUNNING = 2 + + # Snapshot has been created and is ready to be used. + READY = 3 + + # Snapshot failed to be created. + FAILED = 4 + + # Snapshot has been deleted. + DELETED = 5 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb new file mode 100644 index 000000000000..6e5ebcb32b77 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb @@ -0,0 +1,292 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Global topology of the streaming Dataflow job, including all + # computations and their sharded locations. + # @!attribute [rw] computations + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ComputationTopology>] + # The computations associated with a streaming Dataflow job. + # @!attribute [rw] data_disk_assignments + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataDiskAssignment>] + # The disks assigned to a streaming Dataflow job. + # @!attribute [rw] user_stage_to_computation_name_map + # @return [::Google::Protobuf::Map{::String => ::String}] + # Maps user stage names to stable computation names. + # @!attribute [rw] forwarding_key_bits + # @return [::Integer] + # The size (in bits) of keys that will be assigned to source messages. + # @!attribute [rw] persistent_state_version + # @return [::Integer] + # Version number for persistent state. + class TopologyConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class UserStageToComputationNameMapEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Identifies a pubsub location to use for transferring data into or + # out of a streaming Dataflow job. + # @!attribute [rw] topic + # @return [::String] + # A pubsub topic, in the form of + # "pubsub.googleapis.com/topics//" + # @!attribute [rw] subscription + # @return [::String] + # A pubsub subscription, in the form of + # "pubsub.googleapis.com/subscriptions//" + # @!attribute [rw] timestamp_label + # @return [::String] + # If set, contains a pubsub label from which to extract record timestamps. + # If left empty, record timestamps will be generated upon arrival. + # @!attribute [rw] id_label + # @return [::String] + # If set, contains a pubsub label from which to extract record ids. + # If left empty, record deduplication will be strictly best effort. + # @!attribute [rw] drop_late_data + # @return [::Boolean] + # Indicates whether the pipeline allows late-arriving data. + # @!attribute [rw] tracking_subscription + # @return [::String] + # If set, specifies the pubsub subscription that will be used for tracking + # custom time timestamps for watermark estimation. + # @!attribute [rw] with_attributes + # @return [::Boolean] + # If true, then the client has requested to get pubsub attributes. + # @!attribute [rw] dynamic_destinations + # @return [::Boolean] + # If true, then this location represents dynamic topics. + class PubsubLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Identifies the location of a streaming computation stage, for + # stage-to-stage communication. + # @!attribute [rw] stream_id + # @return [::String] + # Identifies the particular stream within the streaming Dataflow + # job. + class StreamingStageLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Identifies the location of a streaming side input. + # @!attribute [rw] tag + # @return [::String] + # Identifies the particular side input within the streaming Dataflow job. + # @!attribute [rw] state_family + # @return [::String] + # Identifies the state family where this side input is stored. + class StreamingSideInputLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Identifies the location of a custom souce. + # @!attribute [rw] stateful + # @return [::Boolean] + # Whether this source is stateful. + class CustomSourceLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes a stream of data, either as input to be processed or as + # output of a streaming Dataflow job. + # @!attribute [rw] streaming_stage_location + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStageLocation] + # The stream is part of another computation within the current + # streaming Dataflow job. + # + # Note: The following fields are mutually exclusive: `streaming_stage_location`, `pubsub_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] pubsub_location + # @return [::Google::Cloud::Dataflow::V1beta3::PubsubLocation] + # The stream is a pubsub stream. + # + # Note: The following fields are mutually exclusive: `pubsub_location`, `streaming_stage_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] side_input_location + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingSideInputLocation] + # The stream is a streaming side input. + # + # Note: The following fields are mutually exclusive: `side_input_location`, `streaming_stage_location`, `pubsub_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] custom_source_location + # @return [::Google::Cloud::Dataflow::V1beta3::CustomSourceLocation] + # The stream is a custom source. + # + # Note: The following fields are mutually exclusive: `custom_source_location`, `streaming_stage_location`, `pubsub_location`, `side_input_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class StreamLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # State family configuration. + # @!attribute [rw] state_family + # @return [::String] + # The state family value. + # @!attribute [rw] is_read + # @return [::Boolean] + # If true, this family corresponds to a read operation. + class StateFamilyConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # All configuration data for a particular Computation. + # @!attribute [rw] system_stage_name + # @return [::String] + # The system stage name. + # @!attribute [rw] computation_id + # @return [::String] + # The ID of the computation. + # @!attribute [rw] key_ranges + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeLocation>] + # The key ranges processed by the computation. + # @!attribute [rw] inputs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] + # The inputs to the computation. + # @!attribute [rw] outputs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] + # The outputs from the computation. + # @!attribute [rw] state_families + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StateFamilyConfig>] + # The state family values. + class ComputationTopology + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Location information for a specific key-range of a sharded computation. + # Currently we only support UTF-8 character splits to simplify encoding into + # JSON. + # @!attribute [rw] start + # @return [::String] + # The start (inclusive) of the key range. + # @!attribute [rw] end + # @return [::String] + # The end (exclusive) of the key range. + # @!attribute [rw] delivery_endpoint + # @return [::String] + # The physical location of this range assignment to be used for + # streaming computation cross-worker message delivery. + # @!attribute [rw] data_disk + # @return [::String] + # The name of the data disk where data for this range is stored. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + # @!attribute [rw] deprecated_persistent_directory + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # DEPRECATED. The location of the persistent state for this range, as a + # persistent directory in the worker local filesystem. + class KeyRangeLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes mounted data disk. + # @!attribute [rw] data_disk + # @return [::String] + # The name of the data disk. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + class MountedDataDisk + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data disk assignment for a given VM instance. + # @!attribute [rw] vm_instance + # @return [::String] + # VM instance name the data disks mounted to, for example + # "myproject-1014-104817-4c2-harness-0". + # @!attribute [rw] data_disks + # @return [::Array<::String>] + # Mounted data disks. The order is important a data disk's 0-based index in + # this list defines which persistent directory the disk is mounted to, for + # example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, + # { "myproject-1014-104817-4c2-harness-0-disk-1" }. + class DataDiskAssignment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data disk assignment information for a specific key-range of a sharded + # computation. + # Currently we only support UTF-8 character splits to simplify encoding into + # JSON. + # @!attribute [rw] start + # @return [::String] + # The start (inclusive) of the key range. + # @!attribute [rw] end + # @return [::String] + # The end (exclusive) of the key range. + # @!attribute [rw] data_disk + # @return [::String] + # The name of the data disk where data for this range is stored. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + class KeyRangeDataDiskAssignment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes full or partial data disk assignment information of the computation + # ranges. + # @!attribute [rw] computation_id + # @return [::String] + # The ID of the computation. + # @!attribute [rw] range_assignments + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeDataDiskAssignment>] + # Data disk assignments for ranges from this computation. + class StreamingComputationRanges + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Streaming appliance snapshot configuration. + # @!attribute [rw] snapshot_id + # @return [::String] + # If set, indicates the snapshot id for the snapshot being performed. + # @!attribute [rw] import_state_endpoint + # @return [::String] + # Indicates which endpoint is used to import appliance state. + class StreamingApplianceSnapshotConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb new file mode 100644 index 000000000000..0ae854d8c16d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb @@ -0,0 +1,856 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Response to the request to launch a job from Flex Template. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The job that was launched, if the request was not a dry run and + # the job was successfully launched. + class LaunchFlexTemplateResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Container Spec. + # @!attribute [rw] image + # @return [::String] + # Name of the docker container image. E.g., gcr.io/project/some-image + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] + # Metadata describing a template including description and validation rules. + # @!attribute [rw] sdk_info + # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] + # Required. SDK info of the Flex Template. + # @!attribute [rw] default_environment + # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] + # Default runtime environment for the job. + # @!attribute [rw] image_repository_username_secret_id + # @return [::String] + # Secret Manager secret id for username to authenticate to private registry. + # @!attribute [rw] image_repository_password_secret_id + # @return [::String] + # Secret Manager secret id for password to authenticate to private registry. + # @!attribute [rw] image_repository_cert_path + # @return [::String] + # Cloud Storage path to self-signed certificate of private registry. + class ContainerSpec + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Launch FlexTemplate Parameter. + # @!attribute [rw] job_name + # @return [::String] + # Required. The job name to use for the created job. For update job request, + # job name should be same as the existing running job. + # @!attribute [rw] container_spec + # @return [::Google::Cloud::Dataflow::V1beta3::ContainerSpec] + # Spec about the container image to launch. + # + # Note: The following fields are mutually exclusive: `container_spec`, `container_spec_gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] container_spec_gcs_path + # @return [::String] + # Cloud Storage path to a file with json serialized ContainerSpec as + # content. + # + # Note: The following fields are mutually exclusive: `container_spec_gcs_path`, `container_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] parameters + # @return [::Google::Protobuf::Map{::String => ::String}] + # The parameters for FlexTemplate. + # Ex. \\{"num_workers":"5"} + # @!attribute [rw] launch_options + # @return [::Google::Protobuf::Map{::String => ::String}] + # Launch options for this flex template job. This is a common set of options + # across languages and templates. This should not be used to pass job + # parameters. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] + # The runtime environment for the FlexTemplate job + # @!attribute [rw] update + # @return [::Boolean] + # Set this to true if you are sending a request to update a running + # streaming job. When set, the job name should be the same as the + # running job. + # @!attribute [rw] transform_name_mappings + # @return [::Google::Protobuf::Map{::String => ::String}] + # Use this to pass transform_name_mappings for streaming update jobs. + # Ex:\\{"oldTransformName":"newTransformName",...}' + class LaunchFlexTemplateParameter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ParametersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LaunchOptionsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TransformNameMappingsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The environment values to be set at runtime for flex template. + # @!attribute [rw] num_workers + # @return [::Integer] + # The initial number of Google Compute Engine instances for the job. + # @!attribute [rw] max_workers + # @return [::Integer] + # The maximum number of Google Compute Engine instances to be made + # available to your pipeline during execution, from 1 to 1000. + # @!attribute [rw] zone + # @return [::String] + # The Compute Engine [availability + # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) + # for launching worker instances to run your pipeline. + # In the future, worker_zone will take precedence. + # @!attribute [rw] service_account_email + # @return [::String] + # The email address of the service account to run the job as. + # @!attribute [rw] temp_location + # @return [::String] + # The Cloud Storage path to use for temporary files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] machine_type + # @return [::String] + # The machine type to use for the job. Defaults to the value from the + # template if not specified. + # @!attribute [rw] additional_experiments + # @return [::Array<::String>] + # Additional experiment flags for the job. + # @!attribute [rw] network + # @return [::String] + # Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # @!attribute [rw] subnetwork + # @return [::String] + # Subnetwork to which VMs will be assigned, if desired. You can specify a + # subnetwork using either a complete URL or an abbreviated path. Expected to + # be of the form + # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" + # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in + # a Shared VPC network, you must use the complete URL. + # @!attribute [rw] additional_user_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Additional user labels to be specified for the job. + # Keys and values must follow the restrictions specified in the [labeling + # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) + # page. + # An object containing a list of "key": value pairs. + # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. + # @!attribute [rw] kms_key_name + # @return [::String] + # Name for the Cloud KMS key for the job. + # Key format is: + # projects//locations//keyRings//cryptoKeys/ + # @!attribute [rw] ip_configuration + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] + # Configuration for VM IPs. + # @!attribute [rw] worker_region + # @return [::String] + # The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # @!attribute [rw] worker_zone + # @return [::String] + # The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. + # @!attribute [rw] enable_streaming_engine + # @return [::Boolean] + # Whether to enable Streaming Engine for the job. + # @!attribute [rw] flexrs_goal + # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] + # Set FlexRS goal for the job. + # https://cloud.google.com/dataflow/docs/guides/flexrs + # @!attribute [rw] staging_location + # @return [::String] + # The Cloud Storage path for staging local files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] sdk_container_image + # @return [::String] + # Docker registry location of container image to use for the 'worker harness. + # Default is the container for the version of the SDK. Note this field is + # only valid for portable pipelines. + # @!attribute [rw] disk_size_gb + # @return [::Integer] + # Worker disk size, in gigabytes. + # @!attribute [rw] autoscaling_algorithm + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] + # The algorithm to use for autoscaling + # @!attribute [rw] dump_heap_on_oom + # @return [::Boolean] + # If true, when processing time is spent almost entirely + # on garbage collection (GC), saves a heap dump before ending the thread + # or process. If false, ends the thread or process without saving a heap + # dump. Does not save a heap dump when the Java Virtual Machine (JVM) has an + # out of memory error during processing. The location of the heap file is + # either echoed back to the user, or the user is given the opportunity to + # download the heap file. + # @!attribute [rw] save_heap_dumps_to_gcs_path + # @return [::String] + # Cloud Storage bucket (directory) to upload heap dumps to. + # Enabling this field implies that `dump_heap_on_oom` is set to true. + # @!attribute [rw] launcher_machine_type + # @return [::String] + # The machine type to use for launching the job. The default is + # n1-standard-1. + # @!attribute [rw] enable_launcher_vm_serial_port_logging + # @return [::Boolean] + # If true serial port logging will be enabled for the launcher VM. + # @!attribute [rw] streaming_mode + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] + # Optional. Specifies the Streaming Engine message processing guarantees. + # Reduces cost and latency but might result in duplicate messages committed + # to storage. Designed to run simple mapping streaming ETL jobs at the lowest + # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] additional_pipeline_options + # @return [::Array<::String>] + # Optional. Additional pipeline option flags for the job. + class FlexTemplateRuntimeEnvironment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalUserLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A request to launch a Cloud Dataflow job from a FlexTemplate. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] launch_parameter + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter] + # Required. Parameter to launch a job form Flex Template. + # @!attribute [rw] location + # @return [::String] + # Required. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. E.g., us-central1, us-west1. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + class LaunchFlexTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The environment values to set at runtime. + # @!attribute [rw] num_workers + # @return [::Integer] + # Optional. The initial number of Google Compute Engine instances for the + # job. The default value is 11. + # @!attribute [rw] max_workers + # @return [::Integer] + # Optional. The maximum number of Google Compute Engine instances to be made + # available to your pipeline during execution, from 1 to 1000. The default + # value is 1. + # @!attribute [rw] zone + # @return [::String] + # Optional. The Compute Engine [availability + # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) + # for launching worker instances to run your pipeline. + # In the future, worker_zone will take precedence. + # @!attribute [rw] service_account_email + # @return [::String] + # Optional. The email address of the service account to run the job as. + # @!attribute [rw] temp_location + # @return [::String] + # Required. The Cloud Storage path to use for temporary files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] bypass_temp_dir_validation + # @return [::Boolean] + # Optional. Whether to bypass the safety checks for the job's temporary + # directory. Use with caution. + # @!attribute [rw] machine_type + # @return [::String] + # Optional. The machine type to use for the job. Defaults to the value from + # the template if not specified. + # @!attribute [rw] additional_experiments + # @return [::Array<::String>] + # Optional. Additional experiment flags for the job, specified with the + # `--experiments` option. + # @!attribute [rw] network + # @return [::String] + # Optional. Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # @!attribute [rw] subnetwork + # @return [::String] + # Optional. Subnetwork to which VMs will be assigned, if desired. You can + # specify a subnetwork using either a complete URL or an abbreviated path. + # Expected to be of the form + # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" + # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in + # a Shared VPC network, you must use the complete URL. + # @!attribute [rw] additional_user_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Additional user labels to be specified for the job. + # Keys and values should follow the restrictions specified in the [labeling + # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) + # page. + # An object containing a list of "key": value pairs. + # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. + # @!attribute [rw] kms_key_name + # @return [::String] + # Optional. Name for the Cloud KMS key for the job. + # Key format is: + # projects//locations//keyRings//cryptoKeys/ + # @!attribute [rw] ip_configuration + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] + # Optional. Configuration for VM IPs. + # @!attribute [rw] worker_region + # @return [::String] + # Required. The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # @!attribute [rw] worker_zone + # @return [::String] + # Optional. The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. + # @!attribute [rw] enable_streaming_engine + # @return [::Boolean] + # Optional. Whether to enable Streaming Engine for the job. + # @!attribute [rw] disk_size_gb + # @return [::Integer] + # Optional. The disk size, in gigabytes, to use on each remote Compute Engine + # worker instance. + # @!attribute [rw] streaming_mode + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] + # Optional. Specifies the Streaming Engine message processing guarantees. + # Reduces cost and latency but might result in duplicate messages committed + # to storage. Designed to run simple mapping streaming ETL jobs at the lowest + # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] additional_pipeline_options + # @return [::Array<::String>] + # Optional. Additional pipeline option flags for the job. + class RuntimeEnvironment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalUserLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # ParameterMetadataEnumOption specifies the option shown in the enum form. + # @!attribute [rw] value + # @return [::String] + # Required. The value of the enum option. + # @!attribute [rw] label + # @return [::String] + # Optional. The label to display for the enum option. + # @!attribute [rw] description + # @return [::String] + # Optional. The description to display for the enum option. + class ParameterMetadataEnumOption + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a specific parameter. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the parameter. + # @!attribute [rw] label + # @return [::String] + # Required. The label to display for the parameter. + # @!attribute [rw] help_text + # @return [::String] + # Required. The help text to display for the parameter. + # @!attribute [rw] is_optional + # @return [::Boolean] + # Optional. Whether the parameter is optional. Defaults to false. + # @!attribute [rw] regexes + # @return [::Array<::String>] + # Optional. Regexes that the parameter must match. + # @!attribute [rw] param_type + # @return [::Google::Cloud::Dataflow::V1beta3::ParameterType] + # Optional. The type of the parameter. + # Used for selecting input picker. + # @!attribute [rw] custom_metadata + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Additional metadata for describing this parameter. + # @!attribute [rw] group_name + # @return [::String] + # Optional. Specifies a group name for this parameter to be rendered under. + # Group header text will be rendered exactly as specified in this field. Only + # considered when parent_name is NOT provided. + # @!attribute [rw] parent_name + # @return [::String] + # Optional. Specifies the name of the parent parameter. Used in conjunction + # with 'parent_trigger_values' to make this parameter conditional (will only + # be rendered conditionally). Should be mappable to a ParameterMetadata.name + # field. + # @!attribute [rw] parent_trigger_values + # @return [::Array<::String>] + # Optional. The value(s) of the 'parent_name' parameter which will trigger + # this parameter to be shown. If left empty, ANY non-empty value in + # parent_name will trigger this parameter to be shown. Only considered when + # this parameter is conditional (when 'parent_name' has been provided). + # @!attribute [rw] enum_options + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadataEnumOption>] + # Optional. The options shown when ENUM ParameterType is specified. + # @!attribute [rw] default_value + # @return [::String] + # Optional. The default values will pre-populate the parameter with the + # given value from the proto. If default_value is left empty, the parameter + # will be populated with a default of the relevant type, e.g. false for a + # boolean. + # @!attribute [rw] hidden_ui + # @return [::Boolean] + # Optional. Whether the parameter should be hidden in the UI. + class ParameterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class CustomMetadataEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Metadata describing a template. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the template. + # @!attribute [rw] description + # @return [::String] + # Optional. A description of the template. + # @!attribute [rw] parameters + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] + # The parameters for the template. + # @!attribute [rw] streaming + # @return [::Boolean] + # Optional. Indicates if the template is streaming or not. + # @!attribute [rw] supports_at_least_once + # @return [::Boolean] + # Optional. Indicates if the streaming template supports at least once mode. + # @!attribute [rw] supports_exactly_once + # @return [::Boolean] + # Optional. Indicates if the streaming template supports exactly once mode. + # @!attribute [rw] default_streaming_mode + # @return [::String] + # Optional. Indicates the default streaming mode for a streaming template. + # Only valid if both supports_at_least_once and supports_exactly_once are + # true. Possible values: UNSPECIFIED, EXACTLY_ONCE and AT_LEAST_ONCE + class TemplateMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # SDK Information. + # @!attribute [rw] language + # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo::Language] + # Required. The SDK Language. + # @!attribute [rw] version + # @return [::String] + # Optional. The SDK version. + class SDKInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # SDK Language. + module Language + # UNKNOWN Language. + UNKNOWN = 0 + + # Java. + JAVA = 1 + + # Python. + PYTHON = 2 + + # Go. + GO = 3 + + # YAML. + YAML = 4 + end + end + + # RuntimeMetadata describing a runtime environment. + # @!attribute [rw] sdk_info + # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] + # SDK Info for the template. + # @!attribute [rw] parameters + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] + # The parameters for the template. + class RuntimeMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A request to create a Cloud Dataflow job from a template. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job_name + # @return [::String] + # Required. The job name to use for the created job. + # @!attribute [rw] gcs_path + # @return [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] parameters + # @return [::Google::Protobuf::Map{::String => ::String}] + # The runtime parameters to pass to the job. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] + # The runtime environment for the job. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + class CreateJobFromTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ParametersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A request to retrieve a Cloud Dataflow job template. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] gcs_path + # @return [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] + # The view to retrieve. Defaults to METADATA_ONLY. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + class GetTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various views of a template that may be retrieved. + module TemplateView + # Template view that retrieves only the metadata associated with the + # template. + METADATA_ONLY = 0 + end + end + + # The response to a GetTemplate request. + # @!attribute [rw] status + # @return [::Google::Rpc::Status] + # The status of the get template request. Any problems with the + # request will be indicated in the error_details. + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] + # The template metadata describing the template name, available + # parameters, etc. + # @!attribute [rw] template_type + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse::TemplateType] + # Template Type. + # @!attribute [rw] runtime_metadata + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeMetadata] + # Describes the runtime metadata with SDKInfo and available parameters. + class GetTemplateResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Template Type. + module TemplateType + # Unknown Template Type. + UNKNOWN = 0 + + # Legacy Template. + LEGACY = 1 + + # Flex Template. + FLEX = 2 + end + end + + # Parameters to provide to the template being launched. Note that the + # [metadata in the pipeline code] + # (https://cloud.google.com/dataflow/docs/guides/templates/creating-templates#metadata) + # determines which runtime parameters are valid. + # @!attribute [rw] job_name + # @return [::String] + # Required. The job name to use for the created job. + # + # The name must match the regular expression + # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` + # @!attribute [rw] parameters + # @return [::Google::Protobuf::Map{::String => ::String}] + # The runtime parameters to pass to the job. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] + # The runtime environment for the job. + # @!attribute [rw] update + # @return [::Boolean] + # If set, replace the existing pipeline with the name specified by jobName + # with this pipeline, preserving state. + # @!attribute [rw] transform_name_mapping + # @return [::Google::Protobuf::Map{::String => ::String}] + # Only applicable when updating a pipeline. Map of transform name prefixes of + # the job to be replaced to the corresponding name prefixes of the new job. + class LaunchTemplateParameters + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ParametersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TransformNameMappingEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A request to launch a template. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @!attribute [rw] gcs_path + # @return [::String] + # A Cloud Storage path to the template to use to create + # the job. + # Must be valid Cloud Storage URL, beginning with `gs://`. + # + # Note: The following fields are mutually exclusive: `gcs_path`, `dynamic_template`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dynamic_template + # @return [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams] + # Parameters for launching a dynamic template. + # + # Note: The following fields are mutually exclusive: `dynamic_template`, `gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] launch_parameters + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters] + # The parameters of the template to launch. Part of the + # body of the POST request. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + class LaunchTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to the request to launch a template. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The job that was launched, if the request was not a dry run and + # the job was successfully launched. + class LaunchTemplateResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Used in the error_details field of a google.rpc.Status message, this + # indicates problems with the template parameter. + # @!attribute [rw] parameter_violations + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::InvalidTemplateParameters::ParameterViolation>] + # Describes all parameter violations in a template request. + class InvalidTemplateParameters + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A specific template-parameter violation. + # @!attribute [rw] parameter + # @return [::String] + # The parameter that failed to validate. + # @!attribute [rw] description + # @return [::String] + # A description of why the parameter failed to validate. + class ParameterViolation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Parameters to pass when launching a dynamic template. + # @!attribute [rw] gcs_path + # @return [::String] + # Path to the dynamic template specification file on Cloud Storage. + # The file must be a JSON serialized `DynamicTemplateFileSpec` object. + # @!attribute [rw] staging_location + # @return [::String] + # Cloud Storage path for staging dependencies. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + class DynamicTemplateLaunchParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # ParameterType specifies what kind of input we need for this parameter. + module ParameterType + # Default input type. + DEFAULT = 0 + + # The parameter specifies generic text input. + TEXT = 1 + + # The parameter specifies a Cloud Storage Bucket to read from. + GCS_READ_BUCKET = 2 + + # The parameter specifies a Cloud Storage Bucket to write to. + GCS_WRITE_BUCKET = 3 + + # The parameter specifies a Cloud Storage file path to read from. + GCS_READ_FILE = 4 + + # The parameter specifies a Cloud Storage file path to write to. + GCS_WRITE_FILE = 5 + + # The parameter specifies a Cloud Storage folder path to read from. + GCS_READ_FOLDER = 6 + + # The parameter specifies a Cloud Storage folder to write to. + GCS_WRITE_FOLDER = 7 + + # The parameter specifies a Pub/Sub Topic. + PUBSUB_TOPIC = 8 + + # The parameter specifies a Pub/Sub Subscription. + PUBSUB_SUBSCRIPTION = 9 + + # The parameter specifies a BigQuery table. + BIGQUERY_TABLE = 10 + + # The parameter specifies a JavaScript UDF in Cloud Storage. + JAVASCRIPT_UDF_FILE = 11 + + # The parameter specifies a Service Account email. + SERVICE_ACCOUNT = 12 + + # The parameter specifies a Machine Type. + MACHINE_TYPE = 13 + + # The parameter specifies a KMS Key name. + KMS_KEY_NAME = 14 + + # The parameter specifies a Worker Region. + WORKER_REGION = 15 + + # The parameter specifies a Worker Zone. + WORKER_ZONE = 16 + + # The parameter specifies a boolean input. + BOOLEAN = 17 + + # The parameter specifies an enum input. + ENUM = 18 + + # The parameter specifies a number input. + NUMBER = 19 + + # Deprecated. Please use KAFKA_READ_TOPIC instead. + KAFKA_TOPIC = 20 + + # The parameter specifies the fully-qualified name of an Apache Kafka topic. + # This can be either a Google Managed Kafka topic or a non-managed Kafka + # topic. + KAFKA_READ_TOPIC = 21 + + # The parameter specifies the fully-qualified name of an Apache Kafka topic. + # This can be an existing Google Managed Kafka topic, the name for a new + # Google Managed Kafka topic, or an existing non-managed Kafka topic. + KAFKA_WRITE_TOPIC = 22 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb new file mode 100644 index 000000000000..39e1aca868d2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb @@ -0,0 +1,108 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Struct` represents a structured data value, consisting of fields + # which map to dynamically typed values. In some languages, `Struct` + # might be supported by a native representation. For example, in + # scripting languages like JS a struct is represented as an + # object. The details of that representation are described together + # with the proto support for the language. + # + # The JSON representation for `Struct` is JSON object. + # @!attribute [rw] fields + # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] + # Unordered map of dynamically typed values. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Protobuf::Value] + class FieldsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `Value` represents a dynamically typed value which can be either + # null, a number, a string, a boolean, a recursive struct value, or a + # list of values. A producer of value is expected to set one of these + # variants. Absence of any variant indicates an error. + # + # The JSON representation for `Value` is JSON value. + # @!attribute [rw] null_value + # @return [::Google::Protobuf::NullValue] + # Represents a null value. + # + # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] number_value + # @return [::Float] + # Represents a double value. + # + # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_value + # @return [::String] + # Represents a string value. + # + # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_value + # @return [::Boolean] + # Represents a boolean value. + # + # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_value + # @return [::Google::Protobuf::Struct] + # Represents a structured value. + # + # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] list_value + # @return [::Google::Protobuf::ListValue] + # Represents a repeated `Value`. + # + # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListValue` is a wrapper around a repeated field of values. + # + # The JSON representation for `ListValue` is JSON array. + # @!attribute [rw] values + # @return [::Array<::Google::Protobuf::Value>] + # Repeated field of dynamically typed values. + class ListValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `NullValue` is a singleton enumeration to represent the null value for the + # `Value` type union. + # + # The JSON representation for `NullValue` is JSON `null`. + module NullValue + # Null value. + NULL_VALUE = 0 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile new file mode 100644 index 000000000000..01167825a42e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-dataflow-v1beta3", path: "../" +else + gem "google-cloud-dataflow-v1beta3" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb new file mode 100644 index 000000000000..c35bc1a9c0d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the launch_flex_template call in the FlexTemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template. +# +def launch_flex_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new + + # Call the launch_flex_template method. + result = client.launch_flex_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + p result +end +# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb new file mode 100644 index 000000000000..350fd7267981 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the aggregated_list_jobs call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs. +# +def aggregated_list_jobs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + + # Call the aggregated_list_jobs method. + result = client.aggregated_list_jobs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + p item + end +end +# [END dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb new file mode 100644 index 000000000000..63db36fb5f30 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the check_active_jobs call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs. +# +def check_active_jobs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new + + # Call the check_active_jobs method. + result = client.check_active_jobs request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. + p result +end +# [END dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb new file mode 100644 index 000000000000..0146cf807873 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_CreateJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the create_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job. +# +def create_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new + + # Call the create_job method. + result = client.create_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_Jobs_CreateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb new file mode 100644 index 000000000000..3ef8f929a9a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_GetJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job. +# +def get_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new + + # Call the get_job method. + result = client.get_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_Jobs_GetJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb new file mode 100644 index 000000000000..f162cd9f38bb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_ListJobs_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the list_jobs call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs. +# +def list_jobs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + + # Call the list_jobs method. + result = client.list_jobs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + p item + end +end +# [END dataflow_v1beta3_generated_Jobs_ListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb new file mode 100644 index 000000000000..3977d863c903 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the snapshot_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job. +# +def snapshot_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new + + # Call the snapshot_job method. + result = client.snapshot_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + p result +end +# [END dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb new file mode 100644 index 000000000000..48a87bd69ab6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_UpdateJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the update_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job. +# +def update_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new + + # Call the update_job method. + result = client.update_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_Jobs_UpdateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb new file mode 100644 index 000000000000..08252fdfefb9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Messages_ListJobMessages_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the list_job_messages call in the Messages service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages. +# +def list_job_messages + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new + + # Call the list_job_messages method. + result = client.list_job_messages request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. + p item + end +end +# [END dataflow_v1beta3_generated_Messages_ListJobMessages_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb new file mode 100644 index 000000000000..3a9fe8c49ae6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_job_execution_details call in the Metrics service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details. +# +def get_job_execution_details + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new + + # Call the get_job_execution_details method. + result = client.get_job_execution_details request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. + p item + end +end +# [END dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb new file mode 100644 index 000000000000..f1e36d3c56cf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_job_metrics call in the Metrics service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics. +# +def get_job_metrics + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new + + # Call the get_job_metrics method. + result = client.get_job_metrics request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. + p result +end +# [END dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb new file mode 100644 index 000000000000..f2e1803d1483 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_stage_execution_details call in the Metrics service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details. +# +def get_stage_execution_details + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new + + # Call the get_stage_execution_details method. + result = client.get_stage_execution_details request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. + p item + end +end +# [END dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb new file mode 100644 index 000000000000..a16cafd731d2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the delete_snapshot call in the Snapshots service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot. +# +def delete_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new + + # Call the delete_snapshot method. + result = client.delete_snapshot request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. + p result +end +# [END dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb new file mode 100644 index 000000000000..e6f4de5a2ddb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_snapshot call in the Snapshots service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot. +# +def get_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new + + # Call the get_snapshot method. + result = client.get_snapshot request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + p result +end +# [END dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb new file mode 100644 index 000000000000..a724bf4f121b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the list_snapshots call in the Snapshots service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots. +# +def list_snapshots + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new + + # Call the list_snapshots method. + result = client.list_snapshots request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. + p result +end +# [END dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json new file mode 100644 index 000000000000..9760df90c641 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json @@ -0,0 +1,735 @@ +{ + "client_library": { + "name": "google-cloud-dataflow-v1beta3", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.dataflow.v1beta3", + "version": "v1beta3" + } + ] + }, + "snippets": [ + { + "region_tag": "dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync", + "title": "Snippet for the get_snapshot call in the Snapshots service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot.", + "file": "snapshots/get_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_snapshot", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", + "client": { + "short_name": "Snapshots::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" + }, + "method": { + "short_name": "GetSnapshot", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", + "service": { + "short_name": "Snapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync", + "title": "Snippet for the delete_snapshot call in the Snapshots service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot.", + "file": "snapshots/delete_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_snapshot", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse", + "client": { + "short_name": "Snapshots::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" + }, + "method": { + "short_name": "DeleteSnapshot", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", + "service": { + "short_name": "Snapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync", + "title": "Snippet for the list_snapshots call in the Snapshots service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots.", + "file": "snapshots/list_snapshots.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_snapshots", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse", + "client": { + "short_name": "Snapshots::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" + }, + "method": { + "short_name": "ListSnapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", + "service": { + "short_name": "Snapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_CreateJob_sync", + "title": "Snippet for the create_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job.", + "file": "jobs/create_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "CreateJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_GetJob_sync", + "title": "Snippet for the get_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job.", + "file": "jobs/get_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "GetJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_UpdateJob_sync", + "title": "Snippet for the update_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job.", + "file": "jobs/update_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "UpdateJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_ListJobs_sync", + "title": "Snippet for the list_jobs call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs.", + "file": "jobs/list_jobs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_jobs", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "ListJobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync", + "title": "Snippet for the aggregated_list_jobs call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs.", + "file": "jobs/aggregated_list_jobs.rb", + "language": "RUBY", + "client_method": { + "short_name": "aggregated_list_jobs", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "AggregatedListJobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync", + "title": "Snippet for the check_active_jobs call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs.", + "file": "jobs/check_active_jobs.rb", + "language": "RUBY", + "client_method": { + "short_name": "check_active_jobs", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "CheckActiveJobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_SnapshotJob_sync", + "title": "Snippet for the snapshot_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job.", + "file": "jobs/snapshot_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "snapshot_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "SnapshotJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Messages_ListJobMessages_sync", + "title": "Snippet for the list_job_messages call in the Messages service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages.", + "file": "messages/list_job_messages.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_job_messages", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse", + "client": { + "short_name": "Messages::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client" + }, + "method": { + "short_name": "ListJobMessages", + "full_name": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", + "service": { + "short_name": "Messages", + "full_name": "google.dataflow.v1beta3.MessagesV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync", + "title": "Snippet for the get_job_metrics call in the Metrics service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics.", + "file": "metrics/get_job_metrics.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_job_metrics", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::JobMetrics", + "client": { + "short_name": "Metrics::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" + }, + "method": { + "short_name": "GetJobMetrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", + "service": { + "short_name": "Metrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync", + "title": "Snippet for the get_job_execution_details call in the Metrics service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details.", + "file": "metrics/get_job_execution_details.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_job_execution_details", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails", + "client": { + "short_name": "Metrics::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" + }, + "method": { + "short_name": "GetJobExecutionDetails", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", + "service": { + "short_name": "Metrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync", + "title": "Snippet for the get_stage_execution_details call in the Metrics service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details.", + "file": "metrics/get_stage_execution_details.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_stage_execution_details", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails", + "client": { + "short_name": "Metrics::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" + }, + "method": { + "short_name": "GetStageExecutionDetails", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", + "service": { + "short_name": "Metrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", + "title": "Snippet for the create_job_from_template call in the TemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template.", + "file": "templates_service/create_job_from_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_job_from_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "TemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" + }, + "method": { + "short_name": "CreateJobFromTemplate", + "full_name": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", + "service": { + "short_name": "TemplatesService", + "full_name": "google.dataflow.v1beta3.TemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync", + "title": "Snippet for the launch_template call in the TemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template.", + "file": "templates_service/launch_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "launch_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse", + "client": { + "short_name": "TemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" + }, + "method": { + "short_name": "LaunchTemplate", + "full_name": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", + "service": { + "short_name": "TemplatesService", + "full_name": "google.dataflow.v1beta3.TemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", + "title": "Snippet for the get_template call in the TemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template.", + "file": "templates_service/get_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse", + "client": { + "short_name": "TemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" + }, + "method": { + "short_name": "GetTemplate", + "full_name": "google.dataflow.v1beta3.TemplatesService.GetTemplate", + "service": { + "short_name": "TemplatesService", + "full_name": "google.dataflow.v1beta3.TemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync", + "title": "Snippet for the launch_flex_template call in the FlexTemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template.", + "file": "flex_templates_service/launch_flex_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "launch_flex_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse", + "client": { + "short_name": "FlexTemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client" + }, + "method": { + "short_name": "LaunchFlexTemplate", + "full_name": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", + "service": { + "short_name": "FlexTemplatesService", + "full_name": "google.dataflow.v1beta3.FlexTemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb new file mode 100644 index 000000000000..26f922f93b7a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the create_job_from_template call in the TemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template. +# +def create_job_from_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new + + # Call the create_job_from_template method. + result = client.create_job_from_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb new file mode 100644 index 000000000000..c7b6af16bd9f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_template call in the TemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template. +# +def get_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new + + # Call the get_template method. + result = client.get_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. + p result +end +# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb new file mode 100644 index 000000000000..4ae948746683 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the launch_template call in the TemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template. +# +def launch_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new + + # Call the launch_template method. + result = client.launch_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. + p result +end +# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb new file mode 100644 index 000000000000..600598d57b37 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb @@ -0,0 +1,156 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_launch_flex_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + launch_parameter = {} + location = "hello world" + validate_only = true + + launch_flex_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.stub :transcode_launch_flex_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, launch_flex_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, launch_flex_template_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb new file mode 100644 index 000000000000..eea77dd3921e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb @@ -0,0 +1,168 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/flex_templates_service" + +class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_launch_flex_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + launch_parameter = {} + location = "hello world" + validate_only = true + + launch_flex_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :launch_flex_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter), request["launch_parameter"] + assert_equal "hello world", request["location"] + assert_equal true, request["validate_only"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, launch_flex_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, launch_flex_template_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb new file mode 100644 index 000000000000..f3581d57744c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/jobs_pb" +require "google/cloud/dataflow/v1beta3/jobs/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job = {} + view = :JOB_VIEW_UNKNOWN + replace_job_id = "hello world" + location = "hello world" + + create_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_create_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_job_client_stub.call_count + end + end + end + + def test_get_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + view = :JOB_VIEW_UNKNOWN + location = "hello world" + + get_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_get_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_job_client_stub.call_count + end + end + end + + def test_update_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + job = {} + location = "hello world" + update_mask = {} + + update_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_update_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_job_client_stub.call_count + end + end + end + + def test_list_jobs + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_list_jobs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_jobs_client_stub.call_count + end + end + end + + def test_aggregated_list_jobs + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + aggregated_list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_aggregated_list_jobs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, aggregated_list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, aggregated_list_jobs_client_stub.call_count + end + end + end + + def test_snapshot_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + ttl = {} + location = "hello world" + snapshot_sources = true + description = "hello world" + + snapshot_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_snapshot_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, snapshot_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, snapshot_job_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb new file mode 100644 index 000000000000..e34decfc428d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb @@ -0,0 +1,579 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/jobs_pb" +require "google/cloud/dataflow/v1beta3/jobs" + +class ::Google::Cloud::Dataflow::V1beta3::Jobs::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job = {} + view = :JOB_VIEW_UNKNOWN + replace_job_id = "hello world" + location = "hello world" + + create_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal "hello world", request["replace_job_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_job_client_stub.call_rpc_count + end + end + + def test_get_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + view = :JOB_VIEW_UNKNOWN + location = "hello world" + + get_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_job_client_stub.call_rpc_count + end + end + + def test_update_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + job = {} + location = "hello world" + update_mask = {} + + update_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] + assert_equal "hello world", request["location"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert request.has_update_mask? + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_job_client_stub.call_rpc_count + end + end + + def test_list_jobs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_jobs, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request + assert_equal :UNKNOWN, request["filter"] + assert_equal "hello world", request["project_id"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["location"] + assert_equal "hello world", request["name"] + assert request.has_name? + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_jobs_client_stub.call_rpc_count + end + end + + def test_aggregated_list_jobs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + aggregated_list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :aggregated_list_jobs, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request + assert_equal :UNKNOWN, request["filter"] + assert_equal "hello world", request["project_id"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["location"] + assert_equal "hello world", request["name"] + assert request.has_name? + refute_nil options + end + + Gapic::ServiceStub.stub :new, aggregated_list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, aggregated_list_jobs_client_stub.call_rpc_count + end + end + + def test_check_active_jobs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + + check_active_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :check_active_jobs, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, request + assert_equal "hello world", request["project_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, check_active_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.check_active_jobs({ project_id: project_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.check_active_jobs project_id: project_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.check_active_jobs ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.check_active_jobs({ project_id: project_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.check_active_jobs(::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, check_active_jobs_client_stub.call_rpc_count + end + end + + def test_snapshot_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + ttl = {} + location = "hello world" + snapshot_sources = true + description = "hello world" + + snapshot_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :snapshot_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] + assert_equal "hello world", request["location"] + assert_equal true, request["snapshot_sources"] + assert_equal "hello world", request["description"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, snapshot_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, snapshot_job_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb new file mode 100644 index 000000000000..9d98fbddafb4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb @@ -0,0 +1,160 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/messages_pb" +require "google/cloud/dataflow/v1beta3/messages/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_job_messages + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + location = "hello world" + + list_job_messages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.stub :transcode_list_job_messages_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_job_messages_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_job_messages_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb new file mode 100644 index 000000000000..fc61069e09ce --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb @@ -0,0 +1,181 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/messages_pb" +require "google/cloud/dataflow/v1beta3/messages" + +class ::Google::Cloud::Dataflow::V1beta3::Messages::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_job_messages + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + location = "hello world" + + list_job_messages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_job_messages, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal :JOB_MESSAGE_IMPORTANCE_UNKNOWN, request["minimum_importance"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_job_messages_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_job_messages_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb new file mode 100644 index 000000000000..16beba2b9d68 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb @@ -0,0 +1,275 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/metrics_pb" +require "google/cloud/dataflow/v1beta3/metrics/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_job_metrics + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + start_time = {} + location = "hello world" + + get_job_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_metrics_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_job_metrics_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_job_metrics_client_stub.call_count + end + end + end + + def test_get_job_execution_details + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + page_size = 42 + page_token = "hello world" + + get_job_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_execution_details_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_job_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_job_execution_details_client_stub.call_count + end + end + end + + def test_get_stage_execution_details + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + stage_id = "hello world" + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + + get_stage_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_stage_execution_details_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_stage_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_stage_execution_details_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb new file mode 100644 index 000000000000..f50377f49643 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb @@ -0,0 +1,316 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/metrics_pb" +require "google/cloud/dataflow/v1beta3/metrics" + +class ::Google::Cloud::Dataflow::V1beta3::Metrics::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_job_metrics + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + start_time = {} + location = "hello world" + + get_job_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_job_metrics, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_job_metrics_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_job_metrics_client_stub.call_rpc_count + end + end + + def test_get_job_execution_details + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + page_size = 42 + page_token = "hello world" + + get_job_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_job_execution_details, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_job_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_job_execution_details_client_stub.call_rpc_count + end + end + + def test_get_stage_execution_details + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + stage_id = "hello world" + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + + get_stage_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_stage_execution_details, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal "hello world", request["location"] + assert_equal "hello world", request["stage_id"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_stage_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_stage_execution_details_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb new file mode 100644 index 000000000000..2cb7d22a9fc3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb @@ -0,0 +1,267 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/snapshots_pb" +require "google/cloud/dataflow/v1beta3/snapshots/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_snapshot + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + get_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_get_snapshot_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_count + end + end + end + + def test_delete_snapshot + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + delete_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_delete_snapshot_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_count + end + end + end + + def test_list_snapshots + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + + list_snapshots_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_list_snapshots_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_snapshots project_id: project_id, job_id: job_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb new file mode 100644 index 000000000000..e7cd1d6620f5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb @@ -0,0 +1,290 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/snapshots_pb" +require "google/cloud/dataflow/v1beta3/snapshots" + +class ::Google::Cloud::Dataflow::V1beta3::Snapshots::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_snapshot, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["snapshot_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_rpc_count + end + end + + def test_delete_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_snapshot, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["snapshot_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_rpc_count + end + end + + def test_list_snapshots + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + + list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_snapshots, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_snapshots project_id: project_id, job_id: job_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb new file mode 100644 index 000000000000..5cada9799f44 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb @@ -0,0 +1,273 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/templates_service/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job_from_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_name = "hello world" + gcs_path = "hello world" + parameters = {} + environment = {} + location = "hello world" + + create_job_from_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_create_job_from_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_job_from_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_job_from_template_client_stub.call_count + end + end + end + + def test_launch_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + validate_only = true + gcs_path = "hello world" + launch_parameters = {} + location = "hello world" + + launch_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_launch_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, launch_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, launch_template_client_stub.call_count + end + end + end + + def test_get_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + gcs_path = "hello world" + view = :METADATA_ONLY + location = "hello world" + + get_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_get_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_template_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb new file mode 100644 index 000000000000..84507da8e8ce --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb @@ -0,0 +1,305 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/templates_service" + +class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job_from_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_name = "hello world" + gcs_path = "hello world" + parameters = {} + environment = {} + location = "hello world" + + create_job_from_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_job_from_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_name"] + assert_equal "hello world", request["gcs_path"] + assert_equal :gcs_path, request.template + assert_equal({}, request["parameters"].to_h) + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment), request["environment"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_job_from_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_job_from_template_client_stub.call_rpc_count + end + end + + def test_launch_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + validate_only = true + gcs_path = "hello world" + launch_parameters = {} + location = "hello world" + + launch_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :launch_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["gcs_path"] + assert_equal :gcs_path, request.template + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters), request["launch_parameters"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, launch_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, launch_template_client_stub.call_rpc_count + end + end + + def test_get_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + gcs_path = "hello world" + view = :METADATA_ONLY + location = "hello world" + + get_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["gcs_path"] + assert_equal :gcs_path, request.template + assert_equal :METADATA_ONLY, request["view"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_template_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From a5507988535f7a1dfcfbb9cbf7b5899aeb63d19e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 30 Mar 2026 19:06:16 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../lib/google/cloud/dataflow/v1beta3/jobs.rb | 4 +- .../cloud/dataflow/v1beta3/jobs/client.rb | 6 +- .../cloud/dataflow/v1beta3/jobs/rest.rb | 4 +- .../dataflow/v1beta3/jobs/rest/client.rb | 6 +- .../google/cloud/dataflow/v1beta3/messages.rb | 3 +- .../cloud/dataflow/v1beta3/messages/client.rb | 3 +- .../cloud/dataflow/v1beta3/messages/rest.rb | 3 +- .../dataflow/v1beta3/messages/rest/client.rb | 3 +- .../google/cloud/dataflow/v1beta3/metrics.rb | 3 +- .../cloud/dataflow/v1beta3/metrics/client.rb | 3 +- .../cloud/dataflow/v1beta3/metrics/rest.rb | 3 +- .../dataflow/v1beta3/metrics/rest/client.rb | 3 +- .../google/dataflow/v1beta3/environment_pb.rb | 2 +- .../lib/google/dataflow/v1beta3/jobs_pb.rb | 2 +- .../dataflow/v1beta3/jobs_services_pb.rb | 6 +- .../dataflow/v1beta3/messages_services_pb.rb | 3 +- .../lib/google/dataflow/v1beta3/metrics_pb.rb | 2 +- .../dataflow/v1beta3/metrics_services_pb.rb | 3 +- .../google/dataflow/v1beta3/templates_pb.rb | 2 +- .../proto_docs/google/api/client.rb | 174 ++- .../google/dataflow/v1beta3/environment.rb | 11 +- .../google/dataflow/v1beta3/jobs.rb | 19 + .../google/dataflow/v1beta3/metrics.rb | 7 +- .../google/dataflow/v1beta3/templates.rb | 9 + .../google-cloud-dataflow-v1beta3/.gitignore | 22 - .../.repo-metadata.json | 19 - .../.rubocop.yml | 33 - .../google-cloud-dataflow-v1beta3/.toys.rb | 28 - .../google-cloud-dataflow-v1beta3/.yardopts | 12 - .../AUTHENTICATION.md | 122 -- .../CHANGELOG.md | 2 - .../google-cloud-dataflow-v1beta3/Gemfile | 14 - .../google-cloud-dataflow-v1beta3/LICENSE.md | 201 --- .../google-cloud-dataflow-v1beta3/README.md | 154 --- .../google-cloud-dataflow-v1beta3/Rakefile | 169 --- .../gapic_metadata.json | 153 --- .../google-cloud-dataflow-v1beta3.gemspec | 28 - .../lib/google-cloud-dataflow-v1beta3.rb | 21 - .../lib/google/cloud/dataflow/v1beta3.rb | 50 - .../v1beta3/flex_templates_service.rb | 54 - .../v1beta3/flex_templates_service/client.rb | 484 ------- .../flex_templates_service/credentials.rb | 52 - .../v1beta3/flex_templates_service/rest.rb | 51 - .../flex_templates_service/rest/client.rb | 431 ------ .../rest/service_stub.rb | 144 -- .../lib/google/cloud/dataflow/v1beta3/jobs.rb | 55 - .../cloud/dataflow/v1beta3/jobs/client.rb | 1170 ----------------- .../dataflow/v1beta3/jobs/credentials.rb | 52 - .../cloud/dataflow/v1beta3/jobs/rest.rb | 52 - .../dataflow/v1beta3/jobs/rest/client.rb | 977 -------------- .../v1beta3/jobs/rest/service_stub.rb | 499 ------- .../google/cloud/dataflow/v1beta3/messages.rb | 54 - .../cloud/dataflow/v1beta3/messages/client.rb | 514 -------- .../dataflow/v1beta3/messages/credentials.rb | 52 - .../cloud/dataflow/v1beta3/messages/rest.rb | 51 - .../dataflow/v1beta3/messages/rest/client.rb | 458 ------- .../v1beta3/messages/rest/service_stub.rb | 152 --- .../google/cloud/dataflow/v1beta3/metrics.rb | 54 - .../cloud/dataflow/v1beta3/metrics/client.rb | 745 ----------- .../dataflow/v1beta3/metrics/credentials.rb | 52 - .../cloud/dataflow/v1beta3/metrics/rest.rb | 51 - .../dataflow/v1beta3/metrics/rest/client.rb | 660 ---------- .../v1beta3/metrics/rest/service_stub.rb | 279 ---- .../lib/google/cloud/dataflow/v1beta3/rest.rb | 42 - .../cloud/dataflow/v1beta3/snapshots.rb | 54 - .../dataflow/v1beta3/snapshots/client.rb | 688 ---------- .../dataflow/v1beta3/snapshots/credentials.rb | 52 - .../cloud/dataflow/v1beta3/snapshots/rest.rb | 51 - .../dataflow/v1beta3/snapshots/rest/client.rb | 606 --------- .../v1beta3/snapshots/rest/service_stub.rb | 300 ----- .../dataflow/v1beta3/templates_service.rb | 54 - .../v1beta3/templates_service/client.rb | 730 ---------- .../v1beta3/templates_service/credentials.rb | 52 - .../v1beta3/templates_service/rest.rb | 51 - .../v1beta3/templates_service/rest/client.rb | 657 --------- .../templates_service/rest/service_stub.rb | 292 ---- .../google/cloud/dataflow/v1beta3/version.rb | 28 - .../google/dataflow/v1beta3/environment_pb.rb | 43 - .../lib/google/dataflow/v1beta3/jobs_pb.rb | 69 - .../dataflow/v1beta3/jobs_services_pb.rb | 93 -- .../google/dataflow/v1beta3/messages_pb.rb | 33 - .../dataflow/v1beta3/messages_services_pb.rb | 51 - .../lib/google/dataflow/v1beta3/metrics_pb.rb | 47 - .../dataflow/v1beta3/metrics_services_pb.rb | 60 - .../google/dataflow/v1beta3/snapshots_pb.rb | 33 - .../dataflow/v1beta3/snapshots_services_pb.rb | 49 - .../google/dataflow/v1beta3/streaming_pb.rb | 34 - .../google/dataflow/v1beta3/templates_pb.rb | 51 - .../dataflow/v1beta3/templates_services_pb.rb | 84 -- .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 589 --------- .../proto_docs/google/api/field_behavior.rb | 85 -- .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 ---- .../google/dataflow/v1beta3/environment.rb | 676 ---------- .../google/dataflow/v1beta3/jobs.rb | 1100 ---------------- .../google/dataflow/v1beta3/messages.rb | 225 ---- .../google/dataflow/v1beta3/metrics.rb | 517 -------- .../google/dataflow/v1beta3/snapshots.rb | 160 --- .../google/dataflow/v1beta3/streaming.rb | 292 ---- .../google/dataflow/v1beta3/templates.rb | 856 ------------ .../proto_docs/google/protobuf/any.rb | 145 -- .../proto_docs/google/protobuf/duration.rb | 98 -- .../proto_docs/google/protobuf/field_mask.rb | 229 ---- .../proto_docs/google/protobuf/struct.rb | 108 -- .../proto_docs/google/protobuf/timestamp.rb | 127 -- .../proto_docs/google/rpc/status.rb | 48 - .../snippets/Gemfile | 32 - .../launch_flex_template.rb | 47 - .../snippets/jobs/aggregated_list_jobs.rb | 51 - .../snippets/jobs/check_active_jobs.rb | 47 - .../snippets/jobs/create_job.rb | 47 - .../snippets/jobs/get_job.rb | 47 - .../snippets/jobs/list_jobs.rb | 51 - .../snippets/jobs/snapshot_job.rb | 47 - .../snippets/jobs/update_job.rb | 47 - .../snippets/messages/list_job_messages.rb | 51 - .../metrics/get_job_execution_details.rb | 51 - .../snippets/metrics/get_job_metrics.rb | 47 - .../metrics/get_stage_execution_details.rb | 51 - .../snippets/snapshots/delete_snapshot.rb | 47 - .../snippets/snapshots/get_snapshot.rb | 47 - .../snippets/snapshots/list_snapshots.rb | 47 - ...ppet_metadata_google.dataflow.v1beta3.json | 735 ----------- .../create_job_from_template.rb | 47 - .../templates_service/get_template.rb | 47 - .../templates_service/launch_template.rb | 47 - .../flex_templates_service_rest_test.rb | 156 --- .../v1beta3/flex_templates_service_test.rb | 168 --- .../cloud/dataflow/v1beta3/jobs_rest_test.rb | 451 ------- .../cloud/dataflow/v1beta3/jobs_test.rb | 579 -------- .../dataflow/v1beta3/messages_rest_test.rb | 160 --- .../cloud/dataflow/v1beta3/messages_test.rb | 181 --- .../dataflow/v1beta3/metrics_rest_test.rb | 275 ---- .../cloud/dataflow/v1beta3/metrics_test.rb | 316 ----- .../dataflow/v1beta3/snapshots_rest_test.rb | 267 ---- .../cloud/dataflow/v1beta3/snapshots_test.rb | 290 ---- .../v1beta3/templates_service_rest_test.rb | 273 ---- .../v1beta3/templates_service_test.rb | 305 ----- .../test/helper.rb | 26 - 140 files changed, 216 insertions(+), 23180 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/README.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb index 44fe5daf5727..8e63cafa95a9 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb @@ -31,8 +31,8 @@ module Cloud module Dataflow module V1beta3 ## - # Provides a method to create and modify Google Cloud Dataflow jobs. - # A Job is a multi-stage computation graph run by the Cloud Dataflow service. + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. # # @example Load this service and instantiate a gRPC client # diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb index 465b87ec4181..281a0624065c 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb @@ -27,8 +27,8 @@ module Jobs ## # Client for the Jobs service. # - # Provides a method to create and modify Google Cloud Dataflow jobs. - # A Job is a multi-stage computation graph run by the Cloud Dataflow service. + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. # class Client # @private @@ -185,7 +185,7 @@ def logger # Service calls ## - # Creates a Cloud Dataflow job. + # Creates a Dataflow job. # # To create a job, we recommend using `projects.locations.jobs.create` with a # [regional endpoint] diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb index 401c37871aff..b12eece0741c 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb @@ -30,8 +30,8 @@ module Cloud module Dataflow module V1beta3 ## - # Provides a method to create and modify Google Cloud Dataflow jobs. - # A Job is a multi-stage computation graph run by the Cloud Dataflow service. + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. # # To load this service and instantiate a REST client: # diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb index 5b188b404976..0581cbcb27fe 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb @@ -29,8 +29,8 @@ module Rest ## # REST client for the Jobs service. # - # Provides a method to create and modify Google Cloud Dataflow jobs. - # A Job is a multi-stage computation graph run by the Cloud Dataflow service. + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. # class Client # @private @@ -178,7 +178,7 @@ def logger # Service calls ## - # Creates a Cloud Dataflow job. + # Creates a Dataflow job. # # To create a job, we recommend using `projects.locations.jobs.create` with a # [regional endpoint] diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb index 8f1533989b5c..ef10a09db5a9 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb @@ -31,8 +31,7 @@ module Cloud module Dataflow module V1beta3 ## - # The Dataflow Messages API is used for monitoring the progress of - # Dataflow jobs. + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. # # @example Load this service and instantiate a gRPC client # diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb index e4dbccde53e4..e4c3ad1a4524 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb @@ -27,8 +27,7 @@ module Messages ## # Client for the Messages service. # - # The Dataflow Messages API is used for monitoring the progress of - # Dataflow jobs. + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. # class Client # @private diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb index 8aa095e46285..8fb2320285b6 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb @@ -30,8 +30,7 @@ module Cloud module Dataflow module V1beta3 ## - # The Dataflow Messages API is used for monitoring the progress of - # Dataflow jobs. + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. # # To load this service and instantiate a REST client: # diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb index 159d7c872749..9d6b77316c4a 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb @@ -29,8 +29,7 @@ module Rest ## # REST client for the Messages service. # - # The Dataflow Messages API is used for monitoring the progress of - # Dataflow jobs. + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. # class Client # @private diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb index 03ccfeda1b38..7c5d8a2e20ec 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb @@ -31,8 +31,7 @@ module Cloud module Dataflow module V1beta3 ## - # The Dataflow Metrics API lets you monitor the progress of Dataflow - # jobs. + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. # # @example Load this service and instantiate a gRPC client # diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb index 1e56069d1918..8b969e2858f0 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb @@ -27,8 +27,7 @@ module Metrics ## # Client for the Metrics service. # - # The Dataflow Metrics API lets you monitor the progress of Dataflow - # jobs. + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. # class Client # @private diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb index 2b6a5e4a712a..f6e076417c3e 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb @@ -30,8 +30,7 @@ module Cloud module Dataflow module V1beta3 ## - # The Dataflow Metrics API lets you monitor the progress of Dataflow - # jobs. + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. # # To load this service and instantiate a REST client: # diff --git a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb index 8189feb8f633..c4d5fcf9a446 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb @@ -29,8 +29,7 @@ module Rest ## # REST client for the Metrics service. # - # The Dataflow Metrics API lets you monitor the progress of Dataflow - # jobs. + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. # class Client # @private diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb index 64eac1c133e6..4f1e56a29738 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb @@ -9,7 +9,7 @@ require 'google/protobuf/struct_pb' -descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf6\x06\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12+\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\")\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xf2\x07\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" +descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\")\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb index 93d918e27cf4..16e222ef97e6 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb @@ -15,7 +15,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n\"google/dataflow/v1beta3/jobs.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\'google/dataflow/v1beta3/snapshots.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x0b\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x04type\x18\x04 \x01(\x0e\x32 .google.dataflow.v1beta3.JobTypeB\x03\xe0\x41\x01\x12>\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32$.google.dataflow.v1beta3.EnvironmentB\x03\xe0\x41\x01\x12,\n\x05steps\x18\x06 \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Step\x12\x16\n\x0esteps_location\x18\x18 \x01(\t\x12\x38\n\rcurrent_state\x18\x07 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0frequested_state\x18\t \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x41\n\x0e\x65xecution_info\x18\n \x01(\x0b\x32).google.dataflow.v1beta3.JobExecutionInfo\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0ereplace_job_id\x18\x0c \x01(\t\x12[\n\x16transform_name_mapping\x18\r \x03(\x0b\x32\x36.google.dataflow.v1beta3.Job.TransformNameMappingEntryB\x03\xe0\x41\x01\x12\x19\n\x11\x63lient_request_id\x18\x0e \x01(\t\x12\x1a\n\x12replaced_by_job_id\x18\x0f \x01(\t\x12\x12\n\ntemp_files\x18\x10 \x03(\t\x12\x38\n\x06labels\x18\x11 \x03(\x0b\x32(.google.dataflow.v1beta3.Job.LabelsEntry\x12\x15\n\x08location\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12J\n\x14pipeline_description\x18\x13 \x01(\x0b\x32,.google.dataflow.v1beta3.PipelineDescription\x12\x42\n\x0cstage_states\x18\x14 \x03(\x0b\x32,.google.dataflow.v1beta3.ExecutionStageState\x12:\n\x0cjob_metadata\x18\x15 \x01(\x0b\x32$.google.dataflow.v1beta3.JobMetadata\x12.\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18\x63reated_from_snapshot_id\x18\x17 \x01(\t\x12\x15\n\rsatisfies_pzs\x18\x19 \x01(\x08\x12V\n\x18runtime_updatable_params\x18\x1a \x01(\x0b\x32/.google.dataflow.v1beta3.RuntimeUpdatableParamsH\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12N\n\x11service_resources\x18\x1c \x01(\x0b\x32).google.dataflow.v1beta3.ServiceResourcesB\x03\xe0\x41\x03H\x02\x88\x01\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_runtime_updatable_paramsB\x10\n\x0e_satisfies_pziB\x14\n\x12_service_resources\"&\n\x10ServiceResources\x12\x12\n\x05zones\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xbe\x01\n\x16RuntimeUpdatableParams\x12\x1c\n\x0fmax_num_workers\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmin_num_workers\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12$\n\x17worker_utilization_hint\x18\x03 \x01(\x01H\x02\x88\x01\x01\x42\x12\n\x10_max_num_workersB\x12\n\x10_min_num_workersB\x1a\n\x18_worker_utilization_hint\";\n\x12\x44\x61tastoreIODetails\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\"6\n\x0fPubSubIODetails\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"%\n\rFileIODetails\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x01(\t\"N\n\x11\x42igTableIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"V\n\x11\x42igQueryIODetails\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12\r\n\x05query\x18\x04 \x01(\t\"P\n\x10SpannerIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\"\x9d\x02\n\nSdkVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1c\n\x14version_display_name\x18\x02 \x01(\t\x12P\n\x12sdk_support_status\x18\x03 \x01(\x0e\x32\x34.google.dataflow.v1beta3.SdkVersion.SdkSupportStatus\x12\x32\n\x04\x62ugs\x18\x04 \x03(\x0b\x32\x1f.google.dataflow.v1beta3.SdkBugB\x03\xe0\x41\x03\"Z\n\x10SdkSupportStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tSUPPORTED\x10\x01\x12\t\n\x05STALE\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0f\n\x0bUNSUPPORTED\x10\x04\"\xa9\x02\n\x06SdkBug\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32$.google.dataflow.v1beta3.SdkBug.TypeB\x03\xe0\x41\x03\x12?\n\x08severity\x18\x02 \x01(\x0e\x32(.google.dataflow.v1beta3.SdkBug.SeverityB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"H\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERAL\x10\x01\x12\x0f\n\x0bPERFORMANCE\x10\x02\x12\x0c\n\x08\x44\x41TALOSS\x10\x03\"I\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\n\n\x06NOTICE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\n\n\x06SEVERE\x10\x03\"\x80\x05\n\x0bJobMetadata\x12\x38\n\x0bsdk_version\x18\x01 \x01(\x0b\x32#.google.dataflow.v1beta3.SdkVersion\x12\x42\n\x0fspanner_details\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.SpannerIODetails\x12\x44\n\x10\x62igquery_details\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.BigQueryIODetails\x12\x45\n\x11\x62ig_table_details\x18\x04 \x03(\x0b\x32*.google.dataflow.v1beta3.BigTableIODetails\x12@\n\x0epubsub_details\x18\x05 \x03(\x0b\x32(.google.dataflow.v1beta3.PubSubIODetails\x12<\n\x0c\x66ile_details\x18\x06 \x03(\x0b\x32&.google.dataflow.v1beta3.FileIODetails\x12\x46\n\x11\x64\x61tastore_details\x18\x07 \x03(\x0b\x32+.google.dataflow.v1beta3.DatastoreIODetails\x12`\n\x17user_display_properties\x18\x08 \x03(\x0b\x32?.google.dataflow.v1beta3.JobMetadata.UserDisplayPropertiesEntry\x1a<\n\x1aUserDisplayPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x45xecutionStageState\x12\x1c\n\x14\x65xecution_stage_name\x18\x01 \x01(\t\x12@\n\x15\x65xecution_stage_state\x18\x02 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x13PipelineDescription\x12N\n\x1boriginal_pipeline_transform\x18\x01 \x03(\x0b\x32).google.dataflow.v1beta3.TransformSummary\x12P\n\x18\x65xecution_pipeline_stage\x18\x02 \x03(\x0b\x32..google.dataflow.v1beta3.ExecutionStageSummary\x12:\n\x0c\x64isplay_data\x18\x03 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x17\n\x0fstep_names_hash\x18\x04 \x01(\t\"\xd8\x01\n\x10TransformSummary\x12/\n\x04kind\x18\x01 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x0c\x64isplay_data\x18\x04 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x1e\n\x16output_collection_name\x18\x05 \x03(\t\x12\x1d\n\x15input_collection_name\x18\x06 \x03(\t\"\xfc\x05\n\x15\x45xecutionStageSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12/\n\x04kind\x18\x03 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12P\n\x0cinput_source\x18\x04 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12Q\n\routput_source\x18\x05 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12\x1a\n\x12prerequisite_stage\x18\x08 \x03(\t\x12^\n\x13\x63omponent_transform\x18\x06 \x03(\x0b\x32\x41.google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform\x12X\n\x10\x63omponent_source\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource\x1al\n\x0bStageSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\x12\x12\n\nsize_bytes\x18\x04 \x01(\x03\x1aQ\n\x12\x43omponentTransform\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12original_transform\x18\x03 \x01(\t\x1a\\\n\x0f\x43omponentSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\"\xcc\x02\n\x0b\x44isplayData\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\tstr_value\x18\x04 \x01(\tH\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x1a\n\x10java_class_value\x18\x07 \x01(\tH\x00\x12\x35\n\x0ftimestamp_value\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x33\n\x0e\x64uration_value\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x17\n\x0fshort_str_value\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\x12\r\n\x05label\x18\r \x01(\tB\x07\n\x05Value\"O\n\x04Step\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb8\x01\n\x10JobExecutionInfo\x12\x45\n\x06stages\x18\x01 \x03(\x0b\x32\x35.google.dataflow.v1beta3.JobExecutionInfo.StagesEntry\x1a]\n\x0bStagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.dataflow.v1beta3.JobExecutionStageInfo:\x02\x38\x01\"*\n\x15JobExecutionStageInfo\x12\x11\n\tstep_name\x18\x01 \x03(\t\"\xab\x01\n\x10\x43reateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12)\n\x03job\x18\x02 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x16\n\x0ereplace_job_id\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\"u\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb9\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12)\n\x03job\x18\x03 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskH\x00\x88\x01\x01\x42\x0e\n\x0c_update_mask\"\xb0\x02\n\x0fListJobsRequest\x12?\n\x06\x66ilter\x18\x05 \x01(\x0e\x32/.google.dataflow.v1beta3.ListJobsRequest.Filter\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32 .google.dataflow.v1beta3.JobViewB\x02\x18\x01\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x11 \x01(\t\x12\x16\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\":\n\x06\x46ilter\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x42\x07\n\x05_name\"\x1e\n\x0e\x46\x61iledLocation\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x99\x01\n\x10ListJobsResponse\x12*\n\x04jobs\x18\x01 \x03(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12@\n\x0f\x66\x61iled_location\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.FailedLocation\"\xa1\x01\n\x12SnapshotJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12&\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x18\n\x10snapshot_sources\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\",\n\x16\x43heckActiveJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"4\n\x17\x43heckActiveJobsResponse\x12\x19\n\x11\x61\x63tive_jobs_exist\x18\x01 \x01(\x08*\xae\x01\n\x08KindType\x12\x10\n\x0cUNKNOWN_KIND\x10\x00\x12\x0f\n\x0bPAR_DO_KIND\x10\x01\x12\x15\n\x11GROUP_BY_KEY_KIND\x10\x02\x12\x10\n\x0c\x46LATTEN_KIND\x10\x03\x12\r\n\tREAD_KIND\x10\x04\x12\x0e\n\nWRITE_KIND\x10\x05\x12\x11\n\rCONSTANT_KIND\x10\x06\x12\x12\n\x0eSINGLETON_KIND\x10\x07\x12\x10\n\x0cSHUFFLE_KIND\x10\x08*\xc3\x02\n\x08JobState\x12\x15\n\x11JOB_STATE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_STATE_STOPPED\x10\x01\x12\x15\n\x11JOB_STATE_RUNNING\x10\x02\x12\x12\n\x0eJOB_STATE_DONE\x10\x03\x12\x14\n\x10JOB_STATE_FAILED\x10\x04\x12\x17\n\x13JOB_STATE_CANCELLED\x10\x05\x12\x15\n\x11JOB_STATE_UPDATED\x10\x06\x12\x16\n\x12JOB_STATE_DRAINING\x10\x07\x12\x15\n\x11JOB_STATE_DRAINED\x10\x08\x12\x15\n\x11JOB_STATE_PENDING\x10\t\x12\x18\n\x14JOB_STATE_CANCELLING\x10\n\x12\x14\n\x10JOB_STATE_QUEUED\x10\x0b\x12\"\n\x1eJOB_STATE_RESOURCE_CLEANING_UP\x10\x0c*a\n\x07JobView\x12\x14\n\x10JOB_VIEW_UNKNOWN\x10\x00\x12\x14\n\x10JOB_VIEW_SUMMARY\x10\x01\x12\x10\n\x0cJOB_VIEW_ALL\x10\x02\x12\x18\n\x14JOB_VIEW_DESCRIPTION\x10\x03\x32\xaf\x0b\n\x0bJobsV1Beta3\x12\xc1\x01\n\tCreateJob\x12).google.dataflow.v1beta3.CreateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"k\x82\xd3\xe4\x93\x02\x65\"5/v1b3/projects/{project_id}/locations/{location}/jobs:\x03jobZ\'\" /v1b3/projects/{project_id}/jobs:\x03job\x12\xc3\x01\n\x06GetJob\x12&.google.dataflow.v1beta3.GetJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}Z+\x12)/v1b3/projects/{project_id}/jobs/{job_id}\x12\xd3\x01\n\tUpdateJob\x12).google.dataflow.v1beta3.UpdateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"}\x82\xd3\xe4\x93\x02w\x1a>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:\x03jobZ0\x1a)/v1b3/projects/{project_id}/jobs/{job_id}:\x03job\x12\xc2\x01\n\x08ListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"a\x82\xd3\xe4\x93\x02[\x12\x35/v1b3/projects/{project_id}/locations/{location}/jobsZ\"\x12 /v1b3/projects/{project_id}/jobs\x12\x9e\x01\n\x12\x41ggregatedListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1b3/projects/{project_id}/jobs:aggregated\x12v\n\x0f\x43heckActiveJobs\x12/.google.dataflow.v1beta3.CheckActiveJobsRequest\x1a\x30.google.dataflow.v1beta3.CheckActiveJobsResponse\"\x00\x12\xec\x01\n\x0bSnapshotJob\x12+.google.dataflow.v1beta3.SnapshotJobRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\"G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot:\x01*Z7\"2/v1b3/projects/{project_id}/jobs/{job_id}:snapshot:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcc\x01\n\x1b\x63om.google.dataflow.v1beta3B\tJobsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" +descriptor_data = "\n\"google/dataflow/v1beta3/jobs.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\'google/dataflow/v1beta3/snapshots.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x0b\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x04type\x18\x04 \x01(\x0e\x32 .google.dataflow.v1beta3.JobTypeB\x03\xe0\x41\x01\x12>\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32$.google.dataflow.v1beta3.EnvironmentB\x03\xe0\x41\x01\x12,\n\x05steps\x18\x06 \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Step\x12\x16\n\x0esteps_location\x18\x18 \x01(\t\x12\x38\n\rcurrent_state\x18\x07 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0frequested_state\x18\t \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x41\n\x0e\x65xecution_info\x18\n \x01(\x0b\x32).google.dataflow.v1beta3.JobExecutionInfo\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0ereplace_job_id\x18\x0c \x01(\t\x12[\n\x16transform_name_mapping\x18\r \x03(\x0b\x32\x36.google.dataflow.v1beta3.Job.TransformNameMappingEntryB\x03\xe0\x41\x01\x12\x19\n\x11\x63lient_request_id\x18\x0e \x01(\t\x12\x1a\n\x12replaced_by_job_id\x18\x0f \x01(\t\x12\x12\n\ntemp_files\x18\x10 \x03(\t\x12\x38\n\x06labels\x18\x11 \x03(\x0b\x32(.google.dataflow.v1beta3.Job.LabelsEntry\x12\x15\n\x08location\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12J\n\x14pipeline_description\x18\x13 \x01(\x0b\x32,.google.dataflow.v1beta3.PipelineDescription\x12\x42\n\x0cstage_states\x18\x14 \x03(\x0b\x32,.google.dataflow.v1beta3.ExecutionStageState\x12:\n\x0cjob_metadata\x18\x15 \x01(\x0b\x32$.google.dataflow.v1beta3.JobMetadata\x12.\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18\x63reated_from_snapshot_id\x18\x17 \x01(\t\x12\x15\n\rsatisfies_pzs\x18\x19 \x01(\x08\x12V\n\x18runtime_updatable_params\x18\x1a \x01(\x0b\x32/.google.dataflow.v1beta3.RuntimeUpdatableParamsH\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12N\n\x11service_resources\x18\x1c \x01(\x0b\x32).google.dataflow.v1beta3.ServiceResourcesB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x15\n\x08pausable\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_runtime_updatable_paramsB\x10\n\x0e_satisfies_pziB\x14\n\x12_service_resources\"&\n\x10ServiceResources\x12\x12\n\x05zones\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xe3\x02\n\x16RuntimeUpdatableParams\x12\x1c\n\x0fmax_num_workers\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmin_num_workers\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12$\n\x17worker_utilization_hint\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12J\n\x1b\x61\x63\x63\x65ptable_backlog_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x05\x18\x01\xe0\x41\x01H\x03\x88\x01\x01\x12\"\n\x10\x61utoscaling_tier\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x42\x12\n\x10_max_num_workersB\x12\n\x10_min_num_workersB\x1a\n\x18_worker_utilization_hintB\x1e\n\x1c_acceptable_backlog_durationB\x13\n\x11_autoscaling_tier\";\n\x12\x44\x61tastoreIODetails\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\"6\n\x0fPubSubIODetails\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"%\n\rFileIODetails\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x01(\t\"N\n\x11\x42igTableIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"V\n\x11\x42igQueryIODetails\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12\r\n\x05query\x18\x04 \x01(\t\"P\n\x10SpannerIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\"\x9d\x02\n\nSdkVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1c\n\x14version_display_name\x18\x02 \x01(\t\x12P\n\x12sdk_support_status\x18\x03 \x01(\x0e\x32\x34.google.dataflow.v1beta3.SdkVersion.SdkSupportStatus\x12\x32\n\x04\x62ugs\x18\x04 \x03(\x0b\x32\x1f.google.dataflow.v1beta3.SdkBugB\x03\xe0\x41\x03\"Z\n\x10SdkSupportStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tSUPPORTED\x10\x01\x12\t\n\x05STALE\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0f\n\x0bUNSUPPORTED\x10\x04\"\xa9\x02\n\x06SdkBug\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32$.google.dataflow.v1beta3.SdkBug.TypeB\x03\xe0\x41\x03\x12?\n\x08severity\x18\x02 \x01(\x0e\x32(.google.dataflow.v1beta3.SdkBug.SeverityB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"H\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERAL\x10\x01\x12\x0f\n\x0bPERFORMANCE\x10\x02\x12\x0c\n\x08\x44\x41TALOSS\x10\x03\"I\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\n\n\x06NOTICE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\n\n\x06SEVERE\x10\x03\"\x80\x05\n\x0bJobMetadata\x12\x38\n\x0bsdk_version\x18\x01 \x01(\x0b\x32#.google.dataflow.v1beta3.SdkVersion\x12\x42\n\x0fspanner_details\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.SpannerIODetails\x12\x44\n\x10\x62igquery_details\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.BigQueryIODetails\x12\x45\n\x11\x62ig_table_details\x18\x04 \x03(\x0b\x32*.google.dataflow.v1beta3.BigTableIODetails\x12@\n\x0epubsub_details\x18\x05 \x03(\x0b\x32(.google.dataflow.v1beta3.PubSubIODetails\x12<\n\x0c\x66ile_details\x18\x06 \x03(\x0b\x32&.google.dataflow.v1beta3.FileIODetails\x12\x46\n\x11\x64\x61tastore_details\x18\x07 \x03(\x0b\x32+.google.dataflow.v1beta3.DatastoreIODetails\x12`\n\x17user_display_properties\x18\x08 \x03(\x0b\x32?.google.dataflow.v1beta3.JobMetadata.UserDisplayPropertiesEntry\x1a<\n\x1aUserDisplayPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x45xecutionStageState\x12\x1c\n\x14\x65xecution_stage_name\x18\x01 \x01(\t\x12@\n\x15\x65xecution_stage_state\x18\x02 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x13PipelineDescription\x12N\n\x1boriginal_pipeline_transform\x18\x01 \x03(\x0b\x32).google.dataflow.v1beta3.TransformSummary\x12P\n\x18\x65xecution_pipeline_stage\x18\x02 \x03(\x0b\x32..google.dataflow.v1beta3.ExecutionStageSummary\x12:\n\x0c\x64isplay_data\x18\x03 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x17\n\x0fstep_names_hash\x18\x04 \x01(\t\"\xd8\x01\n\x10TransformSummary\x12/\n\x04kind\x18\x01 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x0c\x64isplay_data\x18\x04 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x1e\n\x16output_collection_name\x18\x05 \x03(\t\x12\x1d\n\x15input_collection_name\x18\x06 \x03(\t\"\xfc\x05\n\x15\x45xecutionStageSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12/\n\x04kind\x18\x03 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12P\n\x0cinput_source\x18\x04 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12Q\n\routput_source\x18\x05 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12\x1a\n\x12prerequisite_stage\x18\x08 \x03(\t\x12^\n\x13\x63omponent_transform\x18\x06 \x03(\x0b\x32\x41.google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform\x12X\n\x10\x63omponent_source\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource\x1al\n\x0bStageSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\x12\x12\n\nsize_bytes\x18\x04 \x01(\x03\x1aQ\n\x12\x43omponentTransform\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12original_transform\x18\x03 \x01(\t\x1a\\\n\x0f\x43omponentSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\"\xcc\x02\n\x0b\x44isplayData\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\tstr_value\x18\x04 \x01(\tH\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x1a\n\x10java_class_value\x18\x07 \x01(\tH\x00\x12\x35\n\x0ftimestamp_value\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x33\n\x0e\x64uration_value\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x17\n\x0fshort_str_value\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\x12\r\n\x05label\x18\r \x01(\tB\x07\n\x05Value\"O\n\x04Step\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb8\x01\n\x10JobExecutionInfo\x12\x45\n\x06stages\x18\x01 \x03(\x0b\x32\x35.google.dataflow.v1beta3.JobExecutionInfo.StagesEntry\x1a]\n\x0bStagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.dataflow.v1beta3.JobExecutionStageInfo:\x02\x38\x01\"*\n\x15JobExecutionStageInfo\x12\x11\n\tstep_name\x18\x01 \x03(\t\"\xab\x01\n\x10\x43reateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12)\n\x03job\x18\x02 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x16\n\x0ereplace_job_id\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\"u\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb9\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12)\n\x03job\x18\x03 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskH\x00\x88\x01\x01\x42\x0e\n\x0c_update_mask\"\xb0\x02\n\x0fListJobsRequest\x12?\n\x06\x66ilter\x18\x05 \x01(\x0e\x32/.google.dataflow.v1beta3.ListJobsRequest.Filter\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32 .google.dataflow.v1beta3.JobViewB\x02\x18\x01\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x11 \x01(\t\x12\x16\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\":\n\x06\x46ilter\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x42\x07\n\x05_name\"\x1e\n\x0e\x46\x61iledLocation\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x99\x01\n\x10ListJobsResponse\x12*\n\x04jobs\x18\x01 \x03(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12@\n\x0f\x66\x61iled_location\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.FailedLocation\"\xa1\x01\n\x12SnapshotJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12&\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x18\n\x10snapshot_sources\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\",\n\x16\x43heckActiveJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"4\n\x17\x43heckActiveJobsResponse\x12\x19\n\x11\x61\x63tive_jobs_exist\x18\x01 \x01(\x08*\xae\x01\n\x08KindType\x12\x10\n\x0cUNKNOWN_KIND\x10\x00\x12\x0f\n\x0bPAR_DO_KIND\x10\x01\x12\x15\n\x11GROUP_BY_KEY_KIND\x10\x02\x12\x10\n\x0c\x46LATTEN_KIND\x10\x03\x12\r\n\tREAD_KIND\x10\x04\x12\x0e\n\nWRITE_KIND\x10\x05\x12\x11\n\rCONSTANT_KIND\x10\x06\x12\x12\n\x0eSINGLETON_KIND\x10\x07\x12\x10\n\x0cSHUFFLE_KIND\x10\x08*\xf0\x02\n\x08JobState\x12\x15\n\x11JOB_STATE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_STATE_STOPPED\x10\x01\x12\x15\n\x11JOB_STATE_RUNNING\x10\x02\x12\x12\n\x0eJOB_STATE_DONE\x10\x03\x12\x14\n\x10JOB_STATE_FAILED\x10\x04\x12\x17\n\x13JOB_STATE_CANCELLED\x10\x05\x12\x15\n\x11JOB_STATE_UPDATED\x10\x06\x12\x16\n\x12JOB_STATE_DRAINING\x10\x07\x12\x15\n\x11JOB_STATE_DRAINED\x10\x08\x12\x15\n\x11JOB_STATE_PENDING\x10\t\x12\x18\n\x14JOB_STATE_CANCELLING\x10\n\x12\x14\n\x10JOB_STATE_QUEUED\x10\x0b\x12\"\n\x1eJOB_STATE_RESOURCE_CLEANING_UP\x10\x0c\x12\x15\n\x11JOB_STATE_PAUSING\x10\r\x12\x14\n\x10JOB_STATE_PAUSED\x10\x0e*a\n\x07JobView\x12\x14\n\x10JOB_VIEW_UNKNOWN\x10\x00\x12\x14\n\x10JOB_VIEW_SUMMARY\x10\x01\x12\x10\n\x0cJOB_VIEW_ALL\x10\x02\x12\x18\n\x14JOB_VIEW_DESCRIPTION\x10\x03\x32\xaf\x0b\n\x0bJobsV1Beta3\x12\xc1\x01\n\tCreateJob\x12).google.dataflow.v1beta3.CreateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"k\x82\xd3\xe4\x93\x02\x65\"5/v1b3/projects/{project_id}/locations/{location}/jobs:\x03jobZ\'\" /v1b3/projects/{project_id}/jobs:\x03job\x12\xc3\x01\n\x06GetJob\x12&.google.dataflow.v1beta3.GetJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}Z+\x12)/v1b3/projects/{project_id}/jobs/{job_id}\x12\xd3\x01\n\tUpdateJob\x12).google.dataflow.v1beta3.UpdateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"}\x82\xd3\xe4\x93\x02w\x1a>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:\x03jobZ0\x1a)/v1b3/projects/{project_id}/jobs/{job_id}:\x03job\x12\xc2\x01\n\x08ListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"a\x82\xd3\xe4\x93\x02[\x12\x35/v1b3/projects/{project_id}/locations/{location}/jobsZ\"\x12 /v1b3/projects/{project_id}/jobs\x12\x9e\x01\n\x12\x41ggregatedListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1b3/projects/{project_id}/jobs:aggregated\x12v\n\x0f\x43heckActiveJobs\x12/.google.dataflow.v1beta3.CheckActiveJobsRequest\x1a\x30.google.dataflow.v1beta3.CheckActiveJobsResponse\"\x00\x12\xec\x01\n\x0bSnapshotJob\x12+.google.dataflow.v1beta3.SnapshotJobRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\"G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot:\x01*Z7\"2/v1b3/projects/{project_id}/jobs/{job_id}:snapshot:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcc\x01\n\x1b\x63om.google.dataflow.v1beta3B\tJobsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb index 6abb62f5b857..e0c16871b0e7 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb @@ -24,8 +24,8 @@ module Cloud module Dataflow module V1beta3 module JobsV1Beta3 - # Provides a method to create and modify Google Cloud Dataflow jobs. - # A Job is a multi-stage computation graph run by the Cloud Dataflow service. + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. class Service include ::GRPC::GenericService @@ -34,7 +34,7 @@ class Service self.unmarshal_class_method = :decode self.service_name = 'google.dataflow.v1beta3.JobsV1Beta3' - # Creates a Cloud Dataflow job. + # Creates a Dataflow job. # # To create a job, we recommend using `projects.locations.jobs.create` with a # [regional endpoint] diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb index b088622f056b..cf0409870126 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb @@ -24,8 +24,7 @@ module Cloud module Dataflow module V1beta3 module MessagesV1Beta3 - # The Dataflow Messages API is used for monitoring the progress of - # Dataflow jobs. + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. class Service include ::GRPC::GenericService diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb index 2caadaf72757..e1bad2b6d432 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n%google/dataflow/v1beta3/metrics.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x14MetricStructuredName\x12\x0e\n\x06origin\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12K\n\x07\x63ontext\x18\x03 \x03(\x0b\x32:.google.dataflow.v1beta3.MetricStructuredName.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe6\x03\n\x0cMetricUpdate\x12;\n\x04name\x18\x01 \x01(\x0b\x32-.google.dataflow.v1beta3.MetricStructuredName\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x12\n\ncumulative\x18\x03 \x01(\x08\x12&\n\x06scalar\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08mean_sum\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x12*\n\nmean_count\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12#\n\x03set\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12$\n\x04trie\x18\r \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x64istribution\x18\x0b \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05gauge\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08internal\x18\x08 \x01(\x0b\x32\x16.google.protobuf.Value\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"|\n\x14GetJobMetricsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x04 \x01(\t\"u\n\nJobMetrics\x12/\n\x0bmetric_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x07metrics\x18\x02 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\"|\n\x1dGetJobExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\xb8\x01\n\x12ProgressTimeseries\x12\x18\n\x10\x63urrent_progress\x18\x01 \x01(\x01\x12\x46\n\x0b\x64\x61ta_points\x18\x02 \x03(\x0b\x32\x31.google.dataflow.v1beta3.ProgressTimeseries.Point\x1a@\n\x05Point\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xee\x02\n\rStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06\x63\x61uses\x18\x02 \x03(\x0b\x32\x32.google.dataflow.v1beta3.StragglerInfo.CausesEntry\x1a{\n\x16StragglerDebuggingInfo\x12?\n\x07hot_key\x18\x01 \x01(\x0b\x32,.google.dataflow.v1beta3.HotKeyDebuggingInfoH\x00\x42 \n\x1estraggler_debugging_info_value\x1al\n\x0b\x43\x61usesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo:\x02\x38\x01\"\xfb\x01\n\x16StreamingStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_name\x18\x03 \x01(\t\x12\x35\n\x12\x64\x61ta_watermark_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14system_watermark_lag\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb0\x01\n\tStraggler\x12\x41\n\x0f\x62\x61tch_straggler\x18\x01 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfoH\x00\x12N\n\x13streaming_straggler\x18\x02 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStragglerInfoH\x00\x42\x10\n\x0estraggler_info\"\xc6\x02\n\x13HotKeyDebuggingInfo\x12\\\n\x11\x64\x65tected_hot_keys\x18\x01 \x03(\x0b\x32\x41.google.dataflow.v1beta3.HotKeyDebuggingInfo.DetectedHotKeysEntry\x1a`\n\nHotKeyInfo\x12.\n\x0bhot_key_age\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\rkey_truncated\x18\x03 \x01(\x08\x1ao\n\x14\x44\x65tectedHotKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo:\x02\x38\x01\"\x8f\x02\n\x10StragglerSummary\x12\x1d\n\x15total_straggler_count\x18\x01 \x01(\x03\x12\x61\n\x15straggler_cause_count\x18\x02 \x03(\x0b\x32\x42.google.dataflow.v1beta3.StragglerSummary.StragglerCauseCountEntry\x12=\n\x11recent_stragglers\x18\x03 \x03(\x0b\x32\".google.dataflow.v1beta3.Straggler\x1a:\n\x18StragglerCauseCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xf3\x02\n\x0cStageSummary\x12\x10\n\x08stage_id\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x06 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12\x44\n\x11straggler_summary\x18\x07 \x01(\x0b\x32).google.dataflow.v1beta3.StragglerSummary\"e\n\x13JobExecutionDetails\x12\x35\n\x06stages\x18\x01 \x03(\x0b\x32%.google.dataflow.v1beta3.StageSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xee\x01\n\x1fGetStageExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x10\n\x08stage_id\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x03\n\x0fWorkItemDetails\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x05state\x18\x05 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12=\n\x08progress\x18\x06 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x07 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12>\n\x0estraggler_info\x18\x08 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfo\"b\n\rWorkerDetails\x12\x13\n\x0bworker_name\x18\x01 \x01(\t\x12<\n\nwork_items\x18\x02 \x03(\x0b\x32(.google.dataflow.v1beta3.WorkItemDetails\"i\n\x15StageExecutionDetails\x12\x37\n\x07workers\x18\x01 \x03(\x0b\x32&.google.dataflow.v1beta3.WorkerDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*\xc5\x01\n\x0e\x45xecutionState\x12\x1b\n\x17\x45XECUTION_STATE_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTION_STATE_NOT_STARTED\x10\x01\x12\x1b\n\x17\x45XECUTION_STATE_RUNNING\x10\x02\x12\x1d\n\x19\x45XECUTION_STATE_SUCCEEDED\x10\x03\x12\x1a\n\x16\x45XECUTION_STATE_FAILED\x10\x04\x12\x1d\n\x19\x45XECUTION_STATE_CANCELLED\x10\x05\x32\xbd\x06\n\x0eMetricsV1Beta3\x12\xe9\x01\n\rGetJobMetrics\x12-.google.dataflow.v1beta3.GetJobMetricsRequest\x1a#.google.dataflow.v1beta3.JobMetrics\"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x46/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metricsZ3\x12\x31/v1b3/projects/{project_id}/jobs/{job_id}/metrics\x12\xd7\x01\n\x16GetJobExecutionDetails\x12\x36.google.dataflow.v1beta3.GetJobExecutionDetailsRequest\x1a,.google.dataflow.v1beta3.JobExecutionDetails\"W\x82\xd3\xe4\x93\x02Q\x12O/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails\x12\xef\x01\n\x18GetStageExecutionDetails\x12\x38.google.dataflow.v1beta3.GetStageExecutionDetailsRequest\x1a..google.dataflow.v1beta3.StageExecutionDetails\"i\x82\xd3\xe4\x93\x02\x63\x12\x61/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcf\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0cMetricsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" +descriptor_data = "\n%google/dataflow/v1beta3/metrics.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x14MetricStructuredName\x12\x0e\n\x06origin\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12K\n\x07\x63ontext\x18\x03 \x03(\x0b\x32:.google.dataflow.v1beta3.MetricStructuredName.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x04\n\x0cMetricUpdate\x12;\n\x04name\x18\x01 \x01(\x0b\x32-.google.dataflow.v1beta3.MetricStructuredName\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x12\n\ncumulative\x18\x03 \x01(\x08\x12&\n\x06scalar\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08mean_sum\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x12*\n\nmean_count\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12#\n\x03set\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12$\n\x04trie\x18\r \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x62ounded_trie\x18\x0e \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x64istribution\x18\x0b \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05gauge\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08internal\x18\x08 \x01(\x0b\x32\x16.google.protobuf.Value\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"|\n\x14GetJobMetricsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x04 \x01(\t\"u\n\nJobMetrics\x12/\n\x0bmetric_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x07metrics\x18\x02 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\"|\n\x1dGetJobExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\xb8\x01\n\x12ProgressTimeseries\x12\x18\n\x10\x63urrent_progress\x18\x01 \x01(\x01\x12\x46\n\x0b\x64\x61ta_points\x18\x02 \x03(\x0b\x32\x31.google.dataflow.v1beta3.ProgressTimeseries.Point\x1a@\n\x05Point\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xee\x02\n\rStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06\x63\x61uses\x18\x02 \x03(\x0b\x32\x32.google.dataflow.v1beta3.StragglerInfo.CausesEntry\x1a{\n\x16StragglerDebuggingInfo\x12?\n\x07hot_key\x18\x01 \x01(\x0b\x32,.google.dataflow.v1beta3.HotKeyDebuggingInfoH\x00\x42 \n\x1estraggler_debugging_info_value\x1al\n\x0b\x43\x61usesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo:\x02\x38\x01\"\xfb\x01\n\x16StreamingStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_name\x18\x03 \x01(\t\x12\x35\n\x12\x64\x61ta_watermark_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14system_watermark_lag\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb0\x01\n\tStraggler\x12\x41\n\x0f\x62\x61tch_straggler\x18\x01 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfoH\x00\x12N\n\x13streaming_straggler\x18\x02 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStragglerInfoH\x00\x42\x10\n\x0estraggler_info\"\xc6\x02\n\x13HotKeyDebuggingInfo\x12\\\n\x11\x64\x65tected_hot_keys\x18\x01 \x03(\x0b\x32\x41.google.dataflow.v1beta3.HotKeyDebuggingInfo.DetectedHotKeysEntry\x1a`\n\nHotKeyInfo\x12.\n\x0bhot_key_age\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\rkey_truncated\x18\x03 \x01(\x08\x1ao\n\x14\x44\x65tectedHotKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo:\x02\x38\x01\"\x8f\x02\n\x10StragglerSummary\x12\x1d\n\x15total_straggler_count\x18\x01 \x01(\x03\x12\x61\n\x15straggler_cause_count\x18\x02 \x03(\x0b\x32\x42.google.dataflow.v1beta3.StragglerSummary.StragglerCauseCountEntry\x12=\n\x11recent_stragglers\x18\x03 \x03(\x0b\x32\".google.dataflow.v1beta3.Straggler\x1a:\n\x18StragglerCauseCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xf3\x02\n\x0cStageSummary\x12\x10\n\x08stage_id\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x06 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12\x44\n\x11straggler_summary\x18\x07 \x01(\x0b\x32).google.dataflow.v1beta3.StragglerSummary\"e\n\x13JobExecutionDetails\x12\x35\n\x06stages\x18\x01 \x03(\x0b\x32%.google.dataflow.v1beta3.StageSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xee\x01\n\x1fGetStageExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x10\n\x08stage_id\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x03\n\x0fWorkItemDetails\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x05state\x18\x05 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12=\n\x08progress\x18\x06 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x07 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12>\n\x0estraggler_info\x18\x08 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfo\"b\n\rWorkerDetails\x12\x13\n\x0bworker_name\x18\x01 \x01(\t\x12<\n\nwork_items\x18\x02 \x03(\x0b\x32(.google.dataflow.v1beta3.WorkItemDetails\"i\n\x15StageExecutionDetails\x12\x37\n\x07workers\x18\x01 \x03(\x0b\x32&.google.dataflow.v1beta3.WorkerDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*\xc5\x01\n\x0e\x45xecutionState\x12\x1b\n\x17\x45XECUTION_STATE_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTION_STATE_NOT_STARTED\x10\x01\x12\x1b\n\x17\x45XECUTION_STATE_RUNNING\x10\x02\x12\x1d\n\x19\x45XECUTION_STATE_SUCCEEDED\x10\x03\x12\x1a\n\x16\x45XECUTION_STATE_FAILED\x10\x04\x12\x1d\n\x19\x45XECUTION_STATE_CANCELLED\x10\x05\x32\xbd\x06\n\x0eMetricsV1Beta3\x12\xe9\x01\n\rGetJobMetrics\x12-.google.dataflow.v1beta3.GetJobMetricsRequest\x1a#.google.dataflow.v1beta3.JobMetrics\"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x46/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metricsZ3\x12\x31/v1b3/projects/{project_id}/jobs/{job_id}/metrics\x12\xd7\x01\n\x16GetJobExecutionDetails\x12\x36.google.dataflow.v1beta3.GetJobExecutionDetailsRequest\x1a,.google.dataflow.v1beta3.JobExecutionDetails\"W\x82\xd3\xe4\x93\x02Q\x12O/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails\x12\xef\x01\n\x18GetStageExecutionDetails\x12\x38.google.dataflow.v1beta3.GetStageExecutionDetailsRequest\x1a..google.dataflow.v1beta3.StageExecutionDetails\"i\x82\xd3\xe4\x93\x02\x63\x12\x61/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcf\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0cMetricsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb index 78295f0665d6..8ead4022ec6f 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb @@ -24,8 +24,7 @@ module Cloud module Dataflow module V1beta3 module MetricsV1Beta3 - # The Dataflow Metrics API lets you monitor the progress of Dataflow - # jobs. + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. class Service include ::GRPC::GenericService diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb index 3e01fd365f45..ee47d7a44b6f 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb @@ -12,7 +12,7 @@ require 'google/rpc/status_pb' -descriptor_data = "\n\'google/dataflow/v1beta3/templates.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\"google/dataflow/v1beta3/jobs.proto\x1a\x17google/rpc/status.proto\"G\n\x1aLaunchFlexTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xe3\x02\n\rContainerSpec\x12\r\n\x05image\x18\x01 \x01(\t\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12\x32\n\x08sdk_info\x18\x03 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12T\n\x13\x64\x65\x66\x61ult_environment\x18\x04 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12+\n#image_repository_username_secret_id\x18\x05 \x01(\t\x12+\n#image_repository_password_secret_id\x18\x06 \x01(\t\x12\"\n\x1aimage_repository_cert_path\x18\x07 \x01(\t\"\xd2\x05\n\x1bLaunchFlexTemplateParameter\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12@\n\x0e\x63ontainer_spec\x18\x04 \x01(\x0b\x32&.google.dataflow.v1beta3.ContainerSpecH\x00\x12!\n\x17\x63ontainer_spec_gcs_path\x18\x05 \x01(\tH\x00\x12X\n\nparameters\x18\x02 \x03(\x0b\x32\x44.google.dataflow.v1beta3.LaunchFlexTemplateParameter.ParametersEntry\x12_\n\x0elaunch_options\x18\x06 \x03(\x0b\x32G.google.dataflow.v1beta3.LaunchFlexTemplateParameter.LaunchOptionsEntry\x12L\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12\x0e\n\x06update\x18\x08 \x01(\x08\x12p\n\x17transform_name_mappings\x18\t \x03(\x0b\x32O.google.dataflow.v1beta3.LaunchFlexTemplateParameter.TransformNameMappingsEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12LaunchOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTransformNameMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\x9d\x08\n\x1e\x46lexTemplateRuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_workers\x18\x02 \x01(\x05\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x1d\n\x15service_account_email\x18\x04 \x01(\t\x12\x15\n\rtemp_location\x18\x05 \x01(\t\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12q\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32Q.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0b \x01(\t\x12O\n\x10ip_configuration\x18\x0c \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\r \x01(\t\x12\x13\n\x0bworker_zone\x18\x0e \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x0f \x01(\x08\x12H\n\x0b\x66lexrs_goal\x18\x10 \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoal\x12\x18\n\x10staging_location\x18\x11 \x01(\t\x12\x1b\n\x13sdk_container_image\x18\x12 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x14 \x01(\x05\x12L\n\x15\x61utoscaling_algorithm\x18\x15 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x18\n\x10\x64ump_heap_on_oom\x18\x16 \x01(\x08\x12#\n\x1bsave_heap_dumps_to_gcs_path\x18\x17 \x01(\t\x12\x1d\n\x15launcher_machine_type\x18\x18 \x01(\t\x12.\n&enable_launcher_vm_serial_port_logging\x18\x19 \x01(\x08\x12H\n\x0estreaming_mode\x18\x1a \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"\xa8\x01\n\x19LaunchFlexTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12N\n\x10launch_parameter\x18\x02 \x01(\x0b\x32\x34.google.dataflow.v1beta3.LaunchFlexTemplateParameter\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xcc\x05\n\x12RuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x0b \x01(\x05\x12\x13\n\x0bmax_workers\x18\x01 \x01(\x05\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x15\n\rtemp_location\x18\x04 \x01(\t\x12\"\n\x1a\x62ypass_temp_dir_validation\x18\x05 \x01(\x08\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12\x65\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32\x45.google.dataflow.v1beta3.RuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0c \x01(\t\x12O\n\x10ip_configuration\x18\x0e \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\x0f \x01(\t\x12\x13\n\x0bworker_zone\x18\x10 \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x11 \x01(\x08\x12\x14\n\x0c\x64isk_size_gb\x18\x12 \x01(\x05\x12H\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"_\n\x1bParameterMetadataEnumOption\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf3\x03\n\x11ParameterMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thelp_text\x18\x03 \x01(\t\x12\x13\n\x0bis_optional\x18\x04 \x01(\x08\x12\x0f\n\x07regexes\x18\x05 \x03(\t\x12:\n\nparam_type\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.ParameterType\x12W\n\x0f\x63ustom_metadata\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ParameterMetadata.CustomMetadataEntry\x12\x12\n\ngroup_name\x18\x08 \x01(\t\x12\x13\n\x0bparent_name\x18\t \x01(\t\x12\x1d\n\x15parent_trigger_values\x18\n \x03(\t\x12J\n\x0c\x65num_options\x18\x0b \x03(\x0b\x32\x34.google.dataflow.v1beta3.ParameterMetadataEnumOption\x12\x15\n\rdefault_value\x18\x0c \x01(\t\x12\x11\n\thidden_ui\x18\r \x01(\x08\x1a\x35\n\x13\x43ustomMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x01\n\x10TemplateMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12>\n\nparameters\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\x12\x11\n\tstreaming\x18\x05 \x01(\x08\x12\x1e\n\x16supports_at_least_once\x18\x06 \x01(\x08\x12\x1d\n\x15supports_exactly_once\x18\x07 \x01(\x08\x12\x1e\n\x16\x64\x65\x66\x61ult_streaming_mode\x18\x08 \x01(\t\"\x8e\x01\n\x07SDKInfo\x12;\n\x08language\x18\x01 \x01(\x0e\x32).google.dataflow.v1beta3.SDKInfo.Language\x12\x0f\n\x07version\x18\x02 \x01(\t\"5\n\x08Language\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x06\n\x02GO\x10\x03\"\x85\x01\n\x0fRuntimeMetadata\x12\x32\n\x08sdk_info\x18\x01 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12>\n\nparameters\x18\x02 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\"\xc6\x02\n\x1c\x43reateJobFromTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x04 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12Y\n\nparameters\x18\x03 \x03(\x0b\x32\x45.google.dataflow.v1beta3.CreateJobFromTemplateRequest.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x10\n\x08location\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc5\x01\n\x12GetTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12\x46\n\x04view\x18\x03 \x01(\x0e\x32\x38.google.dataflow.v1beta3.GetTemplateRequest.TemplateView\x12\x10\n\x08location\x18\x04 \x01(\t\"!\n\x0cTemplateView\x12\x11\n\rMETADATA_ONLY\x10\x00\x42\n\n\x08template\"\xbf\x02\n\x13GetTemplateResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12P\n\rtemplate_type\x18\x03 \x01(\x0e\x32\x39.google.dataflow.v1beta3.GetTemplateResponse.TemplateType\x12\x42\n\x10runtime_metadata\x18\x04 \x01(\x0b\x32(.google.dataflow.v1beta3.RuntimeMetadata\"1\n\x0cTemplateType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\"\xb2\x03\n\x18LaunchTemplateParameters\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12U\n\nparameters\x18\x02 \x03(\x0b\x32\x41.google.dataflow.v1beta3.LaunchTemplateParameters.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x0e\n\x06update\x18\x04 \x01(\x08\x12k\n\x16transform_name_mapping\x18\x05 \x03(\x0b\x32K.google.dataflow.v1beta3.LaunchTemplateParameters.TransformNameMappingEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x02\n\x15LaunchTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x00\x12P\n\x10\x64ynamic_template\x18\x06 \x01(\x0b\x32\x34.google.dataflow.v1beta3.DynamicTemplateLaunchParamsH\x00\x12L\n\x11launch_parameters\x18\x04 \x01(\x0b\x32\x31.google.dataflow.v1beta3.LaunchTemplateParameters\x12\x10\n\x08location\x18\x05 \x01(\tB\n\n\x08template\"C\n\x16LaunchTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xbe\x01\n\x19InvalidTemplateParameters\x12\x63\n\x14parameter_violations\x18\x01 \x03(\x0b\x32\x45.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation\x1a<\n\x12ParameterViolation\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"I\n\x1b\x44ynamicTemplateLaunchParams\x12\x10\n\x08gcs_path\x18\x01 \x01(\t\x12\x18\n\x10staging_location\x18\x02 \x01(\t*\xbd\x03\n\rParameterType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\x13\n\x0fGCS_READ_BUCKET\x10\x02\x12\x14\n\x10GCS_WRITE_BUCKET\x10\x03\x12\x11\n\rGCS_READ_FILE\x10\x04\x12\x12\n\x0eGCS_WRITE_FILE\x10\x05\x12\x13\n\x0fGCS_READ_FOLDER\x10\x06\x12\x14\n\x10GCS_WRITE_FOLDER\x10\x07\x12\x10\n\x0cPUBSUB_TOPIC\x10\x08\x12\x17\n\x13PUBSUB_SUBSCRIPTION\x10\t\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\n\x12\x17\n\x13JAVASCRIPT_UDF_FILE\x10\x0b\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x0c\x12\x10\n\x0cMACHINE_TYPE\x10\r\x12\x10\n\x0cKMS_KEY_NAME\x10\x0e\x12\x11\n\rWORKER_REGION\x10\x0f\x12\x0f\n\x0bWORKER_ZONE\x10\x10\x12\x0b\n\x07\x42OOLEAN\x10\x11\x12\x08\n\x04\x45NUM\x10\x12\x12\n\n\x06NUMBER\x10\x13\x12\x13\n\x0bKAFKA_TOPIC\x10\x14\x1a\x02\x08\x01\x12\x14\n\x10KAFKA_READ_TOPIC\x10\x15\x12\x15\n\x11KAFKA_WRITE_TOPIC\x10\x16\x32\xe0\x06\n\x10TemplatesService\x12\xdf\x01\n\x15\x43reateJobFromTemplate\x12\x35.google.dataflow.v1beta3.CreateJobFromTemplateRequest\x1a\x1c.google.dataflow.v1beta3.Job\"q\x82\xd3\xe4\x93\x02k\":/v1b3/projects/{project_id}/locations/{location}/templates:\x01*Z*\"%/v1b3/projects/{project_id}/templates:\x01*\x12\x94\x02\n\x0eLaunchTemplate\x12..google.dataflow.v1beta3.LaunchTemplateRequest\x1a/.google.dataflow.v1beta3.LaunchTemplateResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01\"A/v1b3/projects/{project_id}/locations/{location}/templates:launch:\x11launch_parametersZA\",/v1b3/projects/{project_id}/templates:launch:\x11launch_parameters\x12\xdd\x01\n\x0bGetTemplate\x12+.google.dataflow.v1beta3.GetTemplateRequest\x1a,.google.dataflow.v1beta3.GetTemplateResponse\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/templates:getZ+\x12)/v1b3/projects/{project_id}/templates:get\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute2\xdd\x02\n\x14\x46lexTemplatesService\x12\xcf\x01\n\x12LaunchFlexTemplate\x12\x32.google.dataflow.v1beta3.LaunchFlexTemplateRequest\x1a\x33.google.dataflow.v1beta3.LaunchFlexTemplateResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eTemplatesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" +descriptor_data = "\n\'google/dataflow/v1beta3/templates.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\"google/dataflow/v1beta3/jobs.proto\x1a\x17google/rpc/status.proto\"G\n\x1aLaunchFlexTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xe3\x02\n\rContainerSpec\x12\r\n\x05image\x18\x01 \x01(\t\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12\x32\n\x08sdk_info\x18\x03 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12T\n\x13\x64\x65\x66\x61ult_environment\x18\x04 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12+\n#image_repository_username_secret_id\x18\x05 \x01(\t\x12+\n#image_repository_password_secret_id\x18\x06 \x01(\t\x12\"\n\x1aimage_repository_cert_path\x18\x07 \x01(\t\"\xd2\x05\n\x1bLaunchFlexTemplateParameter\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12@\n\x0e\x63ontainer_spec\x18\x04 \x01(\x0b\x32&.google.dataflow.v1beta3.ContainerSpecH\x00\x12!\n\x17\x63ontainer_spec_gcs_path\x18\x05 \x01(\tH\x00\x12X\n\nparameters\x18\x02 \x03(\x0b\x32\x44.google.dataflow.v1beta3.LaunchFlexTemplateParameter.ParametersEntry\x12_\n\x0elaunch_options\x18\x06 \x03(\x0b\x32G.google.dataflow.v1beta3.LaunchFlexTemplateParameter.LaunchOptionsEntry\x12L\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12\x0e\n\x06update\x18\x08 \x01(\x08\x12p\n\x17transform_name_mappings\x18\t \x03(\x0b\x32O.google.dataflow.v1beta3.LaunchFlexTemplateParameter.TransformNameMappingsEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12LaunchOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTransformNameMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc7\x08\n\x1e\x46lexTemplateRuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_workers\x18\x02 \x01(\x05\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x1d\n\x15service_account_email\x18\x04 \x01(\t\x12\x15\n\rtemp_location\x18\x05 \x01(\t\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12q\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32Q.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0b \x01(\t\x12O\n\x10ip_configuration\x18\x0c \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\r \x01(\t\x12\x13\n\x0bworker_zone\x18\x0e \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x0f \x01(\x08\x12H\n\x0b\x66lexrs_goal\x18\x10 \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoal\x12\x18\n\x10staging_location\x18\x11 \x01(\t\x12\x1b\n\x13sdk_container_image\x18\x12 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x14 \x01(\x05\x12L\n\x15\x61utoscaling_algorithm\x18\x15 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x18\n\x10\x64ump_heap_on_oom\x18\x16 \x01(\x08\x12#\n\x1bsave_heap_dumps_to_gcs_path\x18\x17 \x01(\t\x12\x1d\n\x15launcher_machine_type\x18\x18 \x01(\t\x12.\n&enable_launcher_vm_serial_port_logging\x18\x19 \x01(\x08\x12H\n\x0estreaming_mode\x18\x1a \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x1b \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"\xa8\x01\n\x19LaunchFlexTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12N\n\x10launch_parameter\x18\x02 \x01(\x0b\x32\x34.google.dataflow.v1beta3.LaunchFlexTemplateParameter\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x05\n\x12RuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x0b \x01(\x05\x12\x13\n\x0bmax_workers\x18\x01 \x01(\x05\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x15\n\rtemp_location\x18\x04 \x01(\t\x12\"\n\x1a\x62ypass_temp_dir_validation\x18\x05 \x01(\x08\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12\x65\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32\x45.google.dataflow.v1beta3.RuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0c \x01(\t\x12O\n\x10ip_configuration\x18\x0e \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\x0f \x01(\t\x12\x13\n\x0bworker_zone\x18\x10 \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x11 \x01(\x08\x12\x14\n\x0c\x64isk_size_gb\x18\x12 \x01(\x05\x12H\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x14 \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"_\n\x1bParameterMetadataEnumOption\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf3\x03\n\x11ParameterMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thelp_text\x18\x03 \x01(\t\x12\x13\n\x0bis_optional\x18\x04 \x01(\x08\x12\x0f\n\x07regexes\x18\x05 \x03(\t\x12:\n\nparam_type\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.ParameterType\x12W\n\x0f\x63ustom_metadata\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ParameterMetadata.CustomMetadataEntry\x12\x12\n\ngroup_name\x18\x08 \x01(\t\x12\x13\n\x0bparent_name\x18\t \x01(\t\x12\x1d\n\x15parent_trigger_values\x18\n \x03(\t\x12J\n\x0c\x65num_options\x18\x0b \x03(\x0b\x32\x34.google.dataflow.v1beta3.ParameterMetadataEnumOption\x12\x15\n\rdefault_value\x18\x0c \x01(\t\x12\x11\n\thidden_ui\x18\r \x01(\x08\x1a\x35\n\x13\x43ustomMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x01\n\x10TemplateMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12>\n\nparameters\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\x12\x11\n\tstreaming\x18\x05 \x01(\x08\x12\x1e\n\x16supports_at_least_once\x18\x06 \x01(\x08\x12\x1d\n\x15supports_exactly_once\x18\x07 \x01(\x08\x12\x1e\n\x16\x64\x65\x66\x61ult_streaming_mode\x18\x08 \x01(\t\"\x98\x01\n\x07SDKInfo\x12;\n\x08language\x18\x01 \x01(\x0e\x32).google.dataflow.v1beta3.SDKInfo.Language\x12\x0f\n\x07version\x18\x02 \x01(\t\"?\n\x08Language\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x06\n\x02GO\x10\x03\x12\x08\n\x04YAML\x10\x04\"\x85\x01\n\x0fRuntimeMetadata\x12\x32\n\x08sdk_info\x18\x01 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12>\n\nparameters\x18\x02 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\"\xc6\x02\n\x1c\x43reateJobFromTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x04 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12Y\n\nparameters\x18\x03 \x03(\x0b\x32\x45.google.dataflow.v1beta3.CreateJobFromTemplateRequest.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x10\n\x08location\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc5\x01\n\x12GetTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12\x46\n\x04view\x18\x03 \x01(\x0e\x32\x38.google.dataflow.v1beta3.GetTemplateRequest.TemplateView\x12\x10\n\x08location\x18\x04 \x01(\t\"!\n\x0cTemplateView\x12\x11\n\rMETADATA_ONLY\x10\x00\x42\n\n\x08template\"\xbf\x02\n\x13GetTemplateResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12P\n\rtemplate_type\x18\x03 \x01(\x0e\x32\x39.google.dataflow.v1beta3.GetTemplateResponse.TemplateType\x12\x42\n\x10runtime_metadata\x18\x04 \x01(\x0b\x32(.google.dataflow.v1beta3.RuntimeMetadata\"1\n\x0cTemplateType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\"\xb2\x03\n\x18LaunchTemplateParameters\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12U\n\nparameters\x18\x02 \x03(\x0b\x32\x41.google.dataflow.v1beta3.LaunchTemplateParameters.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x0e\n\x06update\x18\x04 \x01(\x08\x12k\n\x16transform_name_mapping\x18\x05 \x03(\x0b\x32K.google.dataflow.v1beta3.LaunchTemplateParameters.TransformNameMappingEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x02\n\x15LaunchTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x00\x12P\n\x10\x64ynamic_template\x18\x06 \x01(\x0b\x32\x34.google.dataflow.v1beta3.DynamicTemplateLaunchParamsH\x00\x12L\n\x11launch_parameters\x18\x04 \x01(\x0b\x32\x31.google.dataflow.v1beta3.LaunchTemplateParameters\x12\x10\n\x08location\x18\x05 \x01(\tB\n\n\x08template\"C\n\x16LaunchTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xbe\x01\n\x19InvalidTemplateParameters\x12\x63\n\x14parameter_violations\x18\x01 \x03(\x0b\x32\x45.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation\x1a<\n\x12ParameterViolation\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"I\n\x1b\x44ynamicTemplateLaunchParams\x12\x10\n\x08gcs_path\x18\x01 \x01(\t\x12\x18\n\x10staging_location\x18\x02 \x01(\t*\xbd\x03\n\rParameterType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\x13\n\x0fGCS_READ_BUCKET\x10\x02\x12\x14\n\x10GCS_WRITE_BUCKET\x10\x03\x12\x11\n\rGCS_READ_FILE\x10\x04\x12\x12\n\x0eGCS_WRITE_FILE\x10\x05\x12\x13\n\x0fGCS_READ_FOLDER\x10\x06\x12\x14\n\x10GCS_WRITE_FOLDER\x10\x07\x12\x10\n\x0cPUBSUB_TOPIC\x10\x08\x12\x17\n\x13PUBSUB_SUBSCRIPTION\x10\t\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\n\x12\x17\n\x13JAVASCRIPT_UDF_FILE\x10\x0b\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x0c\x12\x10\n\x0cMACHINE_TYPE\x10\r\x12\x10\n\x0cKMS_KEY_NAME\x10\x0e\x12\x11\n\rWORKER_REGION\x10\x0f\x12\x0f\n\x0bWORKER_ZONE\x10\x10\x12\x0b\n\x07\x42OOLEAN\x10\x11\x12\x08\n\x04\x45NUM\x10\x12\x12\n\n\x06NUMBER\x10\x13\x12\x13\n\x0bKAFKA_TOPIC\x10\x14\x1a\x02\x08\x01\x12\x14\n\x10KAFKA_READ_TOPIC\x10\x15\x12\x15\n\x11KAFKA_WRITE_TOPIC\x10\x16\x32\xe0\x06\n\x10TemplatesService\x12\xdf\x01\n\x15\x43reateJobFromTemplate\x12\x35.google.dataflow.v1beta3.CreateJobFromTemplateRequest\x1a\x1c.google.dataflow.v1beta3.Job\"q\x82\xd3\xe4\x93\x02k\":/v1b3/projects/{project_id}/locations/{location}/templates:\x01*Z*\"%/v1b3/projects/{project_id}/templates:\x01*\x12\x94\x02\n\x0eLaunchTemplate\x12..google.dataflow.v1beta3.LaunchTemplateRequest\x1a/.google.dataflow.v1beta3.LaunchTemplateResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01\"A/v1b3/projects/{project_id}/locations/{location}/templates:launch:\x11launch_parametersZA\",/v1b3/projects/{project_id}/templates:launch:\x11launch_parameters\x12\xdd\x01\n\x0bGetTemplate\x12+.google.dataflow.v1beta3.GetTemplateRequest\x1a,.google.dataflow.v1beta3.GetTemplateResponse\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/templates:getZ+\x12)/v1b3/projects/{project_id}/templates:get\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute2\xdd\x02\n\x14\x46lexTemplatesService\x12\xcf\x01\n\x12LaunchFlexTemplate\x12\x32.google.dataflow.v1beta3.LaunchFlexTemplateRequest\x1a\x33.google.dataflow.v1beta3.LaunchFlexTemplateResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eTemplatesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb b/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb index 8f4ca4b4d6e5..7796382e3a21 100644 --- a/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb +++ b/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb @@ -141,9 +141,10 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 # @!attribute [rw] service_class_names # @return [::Google::Protobuf::Map{::String => ::String}] # Configure the Java class name to use instead of the service's for its @@ -155,11 +156,11 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. @@ -190,6 +191,20 @@ class CppSettings # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 class PhpSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -318,10 +333,12 @@ class RubySettings # service names and values are the name to be used for the service client # and call options. # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin class GoSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -344,10 +361,10 @@ class RenamedServicesEntry # # Example: # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... # @!attribute [rw] long_running # @return [::Google::Api::MethodSettings::LongRunning] # Describes settings to use for long-running operations when generating @@ -356,14 +373,14 @@ class RenamedServicesEntry # # Example of a YAML configuration:: # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes # @!attribute [rw] auto_populated_fields # @return [::Array<::String>] # List of top-level fields of the request message, that should be @@ -372,11 +389,24 @@ class RenamedServicesEntry # # Example of a YAML configuration: # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 class MethodSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -428,6 +458,77 @@ class SelectiveGapicGeneration extend ::Google::Protobuf::MessageExts::ClassMethods end + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The organization for which the client libraries are being published. # Affects the url where generated docs are published, etc. module ClientLibraryOrganization @@ -469,5 +570,20 @@ module ClientLibraryDestination # Publish the library to package managers like nuget.org and npmjs.com. PACKAGE_MANAGER = 20 end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end end end diff --git a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb index c808bf17b8c7..c8ead31ca468 100644 --- a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb +++ b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb @@ -67,7 +67,7 @@ module V1beta3 # specified in order for the job to have workers. # @!attribute [rw] user_agent # @return [::Google::Protobuf::Struct] - # A description of the process that generated the request. + # Optional. A description of the process that generated the request. # @!attribute [rw] version # @return [::Google::Protobuf::Struct] # A structure describing which components and their versions of the service @@ -130,6 +130,9 @@ module V1beta3 # case. For more information, see # [Set the pipeline streaming # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] use_public_ips + # @return [::Boolean] + # Optional. True when any worker pool that uses public IPs is present. class Environment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -412,6 +415,12 @@ class SdkHarnessContainerImage # @return [::String] # Type of root disk for VMs. If empty or unspecified, the service will # attempt to choose a reasonable default. + # @!attribute [rw] disk_provisioned_iops + # @return [::Integer] + # Optional. IOPS provisioned for the root disk for VMs. + # @!attribute [rw] disk_provisioned_throughput_mibps + # @return [::Integer] + # Optional. Throughput provisioned for the root disk for VMs. # @!attribute [rw] disk_source_image # @return [::String] # Fully qualified source image for disks. diff --git a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb index d62bd31b3c8a..5f332edf0b10 100644 --- a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb +++ b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb @@ -193,6 +193,9 @@ module V1beta3 # @!attribute [r] service_resources # @return [::Google::Cloud::Dataflow::V1beta3::ServiceResources] # Output only. Resources used by the Dataflow Service to run the job. + # @!attribute [r] pausable + # @return [::Boolean] + # Output only. Indicates whether the job can be paused. class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -245,6 +248,16 @@ class ServiceResources # For more information, see # [Update an existing # pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline). + # @!attribute [rw] acceptable_backlog_duration + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Protobuf::Duration] + # Optional. Deprecated: Use `autoscaling_tier` instead. + # The backlog threshold duration in seconds for autoscaling. Value must be + # non-negative. + # @!attribute [rw] autoscaling_tier + # @return [::String] + # Optional. The backlog threshold tier for autoscaling. Value must be one of + # "low-latency", "medium-latency", or "high-latency". class RuntimeUpdatableParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -1049,6 +1062,12 @@ module JobState # Currently, this is an opt-in feature, please reach out to Cloud support # team if you are interested. JOB_STATE_RESOURCE_CLEANING_UP = 12 + + # `JOB_STATE_PAUSING` is not implemented yet. + JOB_STATE_PAUSING = 13 + + # `JOB_STATE_PAUSED` is not implemented yet. + JOB_STATE_PAUSED = 14 end # Selector for how much information is returned in Job responses. diff --git a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb index 1d2046903359..bb943dc83889 100644 --- a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb +++ b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb @@ -53,7 +53,6 @@ class ContextEntry end # Describes the state of a metric. - # Next ID: 14 # @!attribute [rw] name # @return [::Google::Cloud::Dataflow::V1beta3::MetricStructuredName] # Name of the metric. @@ -97,6 +96,12 @@ class ContextEntry # @return [::Google::Protobuf::Value] # Worker-computed aggregate value for the "Trie" aggregation kind. The only # possible value type is a BoundedTrieNode. + # @!attribute [rw] bounded_trie + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Trie" aggregation kind. The only + # possible value type is a BoundedTrieNode. + # Introduced this field to avoid breaking older SDKs when Dataflow service + # starts to populate the `bounded_trie` field. # @!attribute [rw] distribution # @return [::Google::Protobuf::Value] # A struct value describing properties of a distribution of numeric values. diff --git a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb index 9276e7414909..72115f466962 100644 --- a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb +++ b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb @@ -249,6 +249,9 @@ class TransformNameMappingsEntry # case. For more information, see # [Set the pipeline streaming # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] additional_pipeline_options + # @return [::Array<::String>] + # Optional. Additional pipeline option flags for the job. class FlexTemplateRuntimeEnvironment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -378,6 +381,9 @@ class LaunchFlexTemplateRequest # case. For more information, see # [Set the pipeline streaming # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] additional_pipeline_options + # @return [::Array<::String>] + # Optional. Additional pipeline option flags for the job. class RuntimeEnvironment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -526,6 +532,9 @@ module Language # Go. GO = 3 + + # YAML. + YAML = 4 end end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore b/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json deleted file mode 100644 index 01533f5ff2d7..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "api_id": "dataflow.googleapis.com", - "api_shortname": "dataflow", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest", - "distribution_name": "google-cloud-dataflow-v1beta3", - "is_cloud": true, - "language": "ruby", - "name": "dataflow", - "name_pretty": "Dataflow V1beta3 API", - "product_documentation": "https://cloud.google.com/dataflow", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details.", - "ruby-cloud-env-prefix": "DATAFLOW", - "ruby-cloud-product-url": "https://cloud.google.com/dataflow", - "ruby-cloud-service-override": "JobsV1Beta3=Jobs;MessagesV1Beta3=Messages;MetricsV1Beta3=Metrics;SnapshotsV1Beta3=Snapshots", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml b/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml deleted file mode 100644 index 4c6e4d8dc75b..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-dataflow-v1beta3.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-dataflow-v1beta3.rb" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts b/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts deleted file mode 100644 index 13c1196b1b73..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Dataflow V1beta3 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md deleted file mode 100644 index 0f4275c66d02..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-dataflow-v1beta3 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-dataflow-v1beta3 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/dataflow/v1beta3" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/dataflow/v1beta3" - -::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-dataflow-v1beta3 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/dataflow/v1beta3" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md deleted file mode 100644 index 68ecd2146243..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Dataflow V1beta3 API - -Manages Google Cloud Dataflow projects on Google Cloud Platform. - -Dataflow is a managed service for executing a wide variety of data processing patterns. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Dataflow V1beta3 API. Most users should consider using -the main client gem, -[google-cloud-dataflow](https://rubygems.org/gems/google-cloud-dataflow). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-dataflow-v1beta3 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/dataflow.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/dataflow/v1beta3" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new -request = ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new # (request fields as keyword arguments...) -response = client.get_snapshot request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/dataflow) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/dataflow/v1beta3" -require "logger" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-dataflow`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-dataflow-v1beta3`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-dataflow`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-dataflow-v1beta3`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile deleted file mode 100644 index a659823f1fc9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-dataflow-v1beta3 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["DATAFLOW_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["DATAFLOW_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["DATAFLOW_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or DATAFLOW_TEST_PROJECT=test123 DATAFLOW_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/dataflow/v1beta3/snapshots/credentials" - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["DATAFLOW_PROJECT"] = project - ENV["DATAFLOW_TEST_PROJECT"] = project - ENV["DATAFLOW_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-dataflow-v1beta3 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-dataflow-v1beta3 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-dataflow-v1beta3" - header "google-cloud-dataflow-v1beta3 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-dataflow-v1beta3 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-dataflow-v1beta3 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-dataflow-v1beta3 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-dataflow-v1beta3 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json deleted file mode 100644 index f1f58ae8185e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.dataflow.v1beta3", - "libraryPackage": "::Google::Cloud::Dataflow::V1beta3", - "services": { - "SnapshotsV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client", - "rpcs": { - "GetSnapshot": { - "methods": [ - "get_snapshot" - ] - }, - "DeleteSnapshot": { - "methods": [ - "delete_snapshot" - ] - }, - "ListSnapshots": { - "methods": [ - "list_snapshots" - ] - } - } - } - } - }, - "JobsV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client", - "rpcs": { - "CreateJob": { - "methods": [ - "create_job" - ] - }, - "GetJob": { - "methods": [ - "get_job" - ] - }, - "UpdateJob": { - "methods": [ - "update_job" - ] - }, - "ListJobs": { - "methods": [ - "list_jobs" - ] - }, - "AggregatedListJobs": { - "methods": [ - "aggregated_list_jobs" - ] - }, - "CheckActiveJobs": { - "methods": [ - "check_active_jobs" - ] - }, - "SnapshotJob": { - "methods": [ - "snapshot_job" - ] - } - } - } - } - }, - "MessagesV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Messages::Client", - "rpcs": { - "ListJobMessages": { - "methods": [ - "list_job_messages" - ] - } - } - } - } - }, - "MetricsV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client", - "rpcs": { - "GetJobMetrics": { - "methods": [ - "get_job_metrics" - ] - }, - "GetJobExecutionDetails": { - "methods": [ - "get_job_execution_details" - ] - }, - "GetStageExecutionDetails": { - "methods": [ - "get_stage_execution_details" - ] - } - } - } - } - }, - "TemplatesService": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client", - "rpcs": { - "CreateJobFromTemplate": { - "methods": [ - "create_job_from_template" - ] - }, - "LaunchTemplate": { - "methods": [ - "launch_template" - ] - }, - "GetTemplate": { - "methods": [ - "get_template" - ] - } - } - } - } - }, - "FlexTemplatesService": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client", - "rpcs": { - "LaunchFlexTemplate": { - "methods": [ - "launch_flex_template" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec b/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec deleted file mode 100644 index db5ea1646266..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec +++ /dev/null @@ -1,28 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/dataflow/v1beta3/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-dataflow-v1beta3" - gem.version = Google::Cloud::Dataflow::V1beta3::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details." - gem.summary = "Manages Google Cloud Dataflow projects on Google Cloud Platform." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb deleted file mode 100644 index aa5266cf801f..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/dataflow/v1beta3" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb deleted file mode 100644 index b7d17030dc2c..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataflow/v1beta3/snapshots" -require "google/cloud/dataflow/v1beta3/jobs" -require "google/cloud/dataflow/v1beta3/messages" -require "google/cloud/dataflow/v1beta3/metrics" -require "google/cloud/dataflow/v1beta3/templates_service" -require "google/cloud/dataflow/v1beta3/flex_templates_service" -require "google/cloud/dataflow/v1beta3/version" - -module Google - module Cloud - module Dataflow - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module V1beta3 - end - end - end -end - -helper_path = ::File.join __dir__, "v1beta3", "_helpers.rb" -require "google/cloud/dataflow/v1beta3/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb deleted file mode 100644 index f8e1d85debf6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" -require "google/cloud/dataflow/v1beta3/flex_templates_service/client" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a service for Flex templates. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/flex_templates_service" - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - module FlexTemplatesService - end - end - end - end -end - -helper_path = ::File.join __dir__, "flex_templates_service", "helpers.rb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb deleted file mode 100644 index 61043b858993..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +++ /dev/null @@ -1,484 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - ## - # Client for the FlexTemplatesService service. - # - # Provides a service for Flex templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :flex_templates_service_stub - - ## - # Configure the FlexTemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FlexTemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FlexTemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @flex_templates_service_stub.universe_domain - end - - ## - # Create a new FlexTemplatesService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FlexTemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/templates_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @flex_templates_service_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @flex_templates_service_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @flex_templates_service_stub.logger - end - - # Service calls - - ## - # Launch a job with a FlexTemplate. - # - # @overload launch_flex_template(request, options = nil) - # Pass arguments to `launch_flex_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) - # Pass arguments to `launch_flex_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] - # Required. Parameter to launch a job form Flex Template. - # @param location [::String] - # Required. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. E.g., us-central1, us-west1. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new - # - # # Call the launch_flex_template method. - # result = client.launch_flex_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. - # p result - # - def launch_flex_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.launch_flex_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.launch_flex_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @flex_templates_service_stub.call_rpc :launch_flex_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the FlexTemplatesService API. - # - # This class represents the configuration for FlexTemplatesService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # launch_flex_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FlexTemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `launch_flex_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_flex_template - - # @private - def initialize parent_rpcs = nil - launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template - @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb deleted file mode 100644 index a524500610ca..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - # Credentials for the FlexTemplatesService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb deleted file mode 100644 index 3aadfffacf19..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a service for Flex templates. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - module FlexTemplatesService - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb deleted file mode 100644 index 6cf8063060b2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb +++ /dev/null @@ -1,431 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - module Rest - ## - # REST client for the FlexTemplatesService service. - # - # Provides a service for Flex templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :flex_templates_service_stub - - ## - # Configure the FlexTemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FlexTemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FlexTemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @flex_templates_service_stub.universe_domain - end - - ## - # Create a new FlexTemplatesService REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FlexTemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @flex_templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @flex_templates_service_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @flex_templates_service_stub.logger - end - - # Service calls - - ## - # Launch a job with a FlexTemplate. - # - # @overload launch_flex_template(request, options = nil) - # Pass arguments to `launch_flex_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) - # Pass arguments to `launch_flex_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] - # Required. Parameter to launch a job form Flex Template. - # @param location [::String] - # Required. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. E.g., us-central1, us-west1. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new - # - # # Call the launch_flex_template method. - # result = client.launch_flex_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. - # p result - # - def launch_flex_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.launch_flex_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.launch_flex_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @flex_templates_service_stub.launch_flex_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the FlexTemplatesService REST API. - # - # This class represents the configuration for FlexTemplatesService REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # launch_flex_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FlexTemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `launch_flex_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_flex_template - - # @private - def initialize parent_rpcs = nil - launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template - @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb deleted file mode 100644 index a7f2edb4872a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb +++ /dev/null @@ -1,144 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - module Rest - ## - # REST service stub for the FlexTemplatesService service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the launch_flex_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # A result object deserialized from the server's reply - def launch_flex_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_launch_flex_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "launch_flex_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the launch_flex_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_launch_flex_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb deleted file mode 100644 index c0cacf23c900..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/jobs/credentials" -require "google/cloud/dataflow/v1beta3/jobs/client" -require "google/cloud/dataflow/v1beta3/jobs/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/jobs" - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/jobs/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - module Jobs - end - end - end - end -end - -helper_path = ::File.join __dir__, "jobs", "helpers.rb" -require "google/cloud/dataflow/v1beta3/jobs/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb deleted file mode 100644 index 4cb43685a643..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +++ /dev/null @@ -1,1170 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/jobs_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - ## - # Client for the Jobs service. - # - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :jobs_stub - - ## - # Configure the Jobs Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Jobs clients - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Jobs Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @jobs_stub.universe_domain - end - - ## - # Create a new Jobs client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Jobs client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/jobs_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @jobs_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::JobsV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @jobs_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @jobs_stub.logger - end - - # Service calls - - ## - # Creates a Dataflow job. - # - # To create a job, we recommend using `projects.locations.jobs.create` with a - # [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.create` is not recommended, as your job will always start - # in `us-central1`. - # - # Do not enter confidential information when you supply string values using - # the API. - # - # @overload create_job(request, options = nil) - # Pass arguments to `create_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) - # Pass arguments to `create_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The job to create. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param replace_job_id [::String] - # Deprecated. This field is now in the Job message. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new - # - # # Call the create_job method. - # result = client.create_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :create_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the state of the specified Cloud Dataflow job. - # - # To get the state of a job, we recommend using `projects.locations.jobs.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.get` is not recommended, as you can only get the state of - # jobs that are running in `us-central1`. - # - # @overload get_job(request, options = nil) - # Pass arguments to `get_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) - # Pass arguments to `get_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new - # - # # Call the get_job method. - # result = client.get_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def get_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :get_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the state of an existing Cloud Dataflow job. - # - # To update the state of an existing job, we recommend using - # `projects.locations.jobs.update` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.update` is not recommended, as you can only update the state - # of jobs that are running in `us-central1`. - # - # @overload update_job(request, options = nil) - # Pass arguments to `update_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) - # Pass arguments to `update_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The updated job. - # Only the job state is updatable; other fields will be ignored. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # The list of fields to update relative to Job. If empty, only - # RequestedJobState will be considered for update. If the FieldMask is not - # empty and RequestedJobState is none/empty, The fields specified in the - # update mask will be the only ones considered for update. If both - # RequestedJobState and update_mask are specified, an error will be returned - # as we cannot update both state and mask. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new - # - # # Call the update_job method. - # result = client.update_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def update_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :update_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project. - # - # To list the jobs of a project in a region, we recommend using - # `projects.locations.jobs.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - # list the all jobs across all regions, use `projects.jobs.aggregated`. Using - # `projects.jobs.list` is not recommended, because you can only get the list - # of jobs that are running in `us-central1`. - # - # `projects.locations.jobs.list` and `projects.jobs.list` support filtering - # the list of jobs by name. Filtering by name isn't supported by - # `projects.jobs.aggregated`. - # - # @overload list_jobs(request, options = nil) - # Pass arguments to `list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the list_jobs method. - # result = client.list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :list_jobs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @jobs_stub, :list_jobs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project across all regions. - # - # **Note:** This method doesn't support filtering the list of - # jobs by name. - # - # @overload aggregated_list_jobs(request, options = nil) - # Pass arguments to `aggregated_list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the aggregated_list_jobs method. - # result = client.aggregated_list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def aggregated_list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :aggregated_list_jobs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Check for existence of active jobs in the given project across all regions. - # - # @overload check_active_jobs(request, options = nil) - # Pass arguments to `check_active_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload check_active_jobs(project_id: nil) - # Pass arguments to `check_active_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project which owns the jobs. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new - # - # # Call the check_active_jobs method. - # result = client.check_active_jobs request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. - # p result - # - def check_active_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.check_active_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.check_active_jobs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.check_active_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :check_active_jobs, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Snapshot the state of a streaming job. - # - # @overload snapshot_job(request, options = nil) - # Pass arguments to `snapshot_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) - # Pass arguments to `snapshot_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project which owns the job to be snapshotted. - # @param job_id [::String] - # The job to be snapshotted. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # TTL for the snapshot. - # @param location [::String] - # The location that contains this job. - # @param snapshot_sources [::Boolean] - # If true, perform snapshots for sources which support this. - # @param description [::String] - # User specified description of the snapshot. Maybe empty. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - # - # # Call the snapshot_job method. - # result = client.snapshot_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def snapshot_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.snapshot_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.snapshot_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :snapshot_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Jobs API. - # - # This class represents the configuration for Jobs, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Jobs API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job - ## - # RPC-specific configuration for `get_job` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job - ## - # RPC-specific configuration for `update_job` - # @return [::Gapic::Config::Method] - # - attr_reader :update_job - ## - # RPC-specific configuration for `list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_jobs - ## - # RPC-specific configuration for `aggregated_list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregated_list_jobs - ## - # RPC-specific configuration for `check_active_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :check_active_jobs - ## - # RPC-specific configuration for `snapshot_job` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_job - - # @private - def initialize parent_rpcs = nil - create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job - @create_job = ::Gapic::Config::Method.new create_job_config - get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job - @get_job = ::Gapic::Config::Method.new get_job_config - update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job - @update_job = ::Gapic::Config::Method.new update_job_config - list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs - @list_jobs = ::Gapic::Config::Method.new list_jobs_config - aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs - @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config - check_active_jobs_config = parent_rpcs.check_active_jobs if parent_rpcs.respond_to? :check_active_jobs - @check_active_jobs = ::Gapic::Config::Method.new check_active_jobs_config - snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job - @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb deleted file mode 100644 index f99e81697289..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - # Credentials for the Jobs API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb deleted file mode 100644 index b2134dbdc152..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/jobs/credentials" -require "google/cloud/dataflow/v1beta3/jobs/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/jobs/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - module Jobs - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/jobs/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb deleted file mode 100644 index d38727616da7..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb +++ /dev/null @@ -1,977 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/jobs_pb" -require "google/cloud/dataflow/v1beta3/jobs/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - module Rest - ## - # REST client for the Jobs service. - # - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :jobs_stub - - ## - # Configure the Jobs Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Jobs clients - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Jobs Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @jobs_stub.universe_domain - end - - ## - # Create a new Jobs REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Jobs client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @jobs_stub = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @jobs_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @jobs_stub.logger - end - - # Service calls - - ## - # Creates a Dataflow job. - # - # To create a job, we recommend using `projects.locations.jobs.create` with a - # [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.create` is not recommended, as your job will always start - # in `us-central1`. - # - # Do not enter confidential information when you supply string values using - # the API. - # - # @overload create_job(request, options = nil) - # Pass arguments to `create_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) - # Pass arguments to `create_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The job to create. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param replace_job_id [::String] - # Deprecated. This field is now in the Job message. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new - # - # # Call the create_job method. - # result = client.create_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.create_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the state of the specified Cloud Dataflow job. - # - # To get the state of a job, we recommend using `projects.locations.jobs.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.get` is not recommended, as you can only get the state of - # jobs that are running in `us-central1`. - # - # @overload get_job(request, options = nil) - # Pass arguments to `get_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) - # Pass arguments to `get_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new - # - # # Call the get_job method. - # result = client.get_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def get_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.get_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the state of an existing Cloud Dataflow job. - # - # To update the state of an existing job, we recommend using - # `projects.locations.jobs.update` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.update` is not recommended, as you can only update the state - # of jobs that are running in `us-central1`. - # - # @overload update_job(request, options = nil) - # Pass arguments to `update_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) - # Pass arguments to `update_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The updated job. - # Only the job state is updatable; other fields will be ignored. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # The list of fields to update relative to Job. If empty, only - # RequestedJobState will be considered for update. If the FieldMask is not - # empty and RequestedJobState is none/empty, The fields specified in the - # update mask will be the only ones considered for update. If both - # RequestedJobState and update_mask are specified, an error will be returned - # as we cannot update both state and mask. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new - # - # # Call the update_job method. - # result = client.update_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def update_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.update_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project. - # - # To list the jobs of a project in a region, we recommend using - # `projects.locations.jobs.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - # list the all jobs across all regions, use `projects.jobs.aggregated`. Using - # `projects.jobs.list` is not recommended, because you can only get the list - # of jobs that are running in `us-central1`. - # - # `projects.locations.jobs.list` and `projects.jobs.list` support filtering - # the list of jobs by name. Filtering by name isn't supported by - # `projects.jobs.aggregated`. - # - # @overload list_jobs(request, options = nil) - # Pass arguments to `list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the list_jobs method. - # result = client.list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.list_jobs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :list_jobs, "jobs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project across all regions. - # - # **Note:** This method doesn't support filtering the list of - # jobs by name. - # - # @overload aggregated_list_jobs(request, options = nil) - # Pass arguments to `aggregated_list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the aggregated_list_jobs method. - # result = client.aggregated_list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def aggregated_list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.aggregated_list_jobs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, "jobs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Snapshot the state of a streaming job. - # - # @overload snapshot_job(request, options = nil) - # Pass arguments to `snapshot_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) - # Pass arguments to `snapshot_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project which owns the job to be snapshotted. - # @param job_id [::String] - # The job to be snapshotted. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # TTL for the snapshot. - # @param location [::String] - # The location that contains this job. - # @param snapshot_sources [::Boolean] - # If true, perform snapshots for sources which support this. - # @param description [::String] - # User specified description of the snapshot. Maybe empty. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - # - # # Call the snapshot_job method. - # result = client.snapshot_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def snapshot_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.snapshot_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.snapshot_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.snapshot_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Jobs REST API. - # - # This class represents the configuration for Jobs REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Jobs API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job - ## - # RPC-specific configuration for `get_job` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job - ## - # RPC-specific configuration for `update_job` - # @return [::Gapic::Config::Method] - # - attr_reader :update_job - ## - # RPC-specific configuration for `list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_jobs - ## - # RPC-specific configuration for `aggregated_list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregated_list_jobs - ## - # RPC-specific configuration for `snapshot_job` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_job - - # @private - def initialize parent_rpcs = nil - create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job - @create_job = ::Gapic::Config::Method.new create_job_config - get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job - @get_job = ::Gapic::Config::Method.new get_job_config - update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job - @update_job = ::Gapic::Config::Method.new update_job_config - list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs - @list_jobs = ::Gapic::Config::Method.new list_jobs_config - aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs - @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config - snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job - @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb deleted file mode 100644 index 1e94a9ea3e84..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb +++ /dev/null @@ -1,499 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/jobs_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - module Rest - ## - # REST service stub for the Jobs service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the create_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def create_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def get_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def update_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # A result object deserialized from the server's reply - def list_jobs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_jobs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the aggregated_list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # A result object deserialized from the server's reply - def aggregated_list_jobs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_jobs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "aggregated_list_jobs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the snapshot_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # A result object deserialized from the server's reply - def snapshot_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_snapshot_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "snapshot_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the create_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/jobs", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :put, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :put, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_jobs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the aggregated_list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_aggregated_list_jobs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs:aggregated", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the snapshot_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_snapshot_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}:snapshot", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb deleted file mode 100644 index c1d10e975449..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/messages/credentials" -require "google/cloud/dataflow/v1beta3/messages/client" -require "google/cloud/dataflow/v1beta3/messages/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/messages" - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/messages/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - module Messages - end - end - end - end -end - -helper_path = ::File.join __dir__, "messages", "helpers.rb" -require "google/cloud/dataflow/v1beta3/messages/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb deleted file mode 100644 index a596f0e47f11..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb +++ /dev/null @@ -1,514 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/messages_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - ## - # Client for the Messages service. - # - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :messages_stub - - ## - # Configure the Messages Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Messages clients - # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Messages Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @messages_stub.universe_domain - end - - ## - # Create a new Messages client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Messages client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/messages_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @messages_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::MessagesV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @messages_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @messages_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.messages.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.messages.list` is not recommended, as you can only request - # the status of jobs that are running in `us-central1`. - # - # @overload list_job_messages(request, options = nil) - # Pass arguments to `list_job_messages` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) - # Pass arguments to `list_job_messages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get messages about. - # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Filter to only get messages with importance >= level - # @param page_size [::Integer] - # If specified, determines the maximum number of messages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # If specified, return only messages with timestamps >= start_time. - # The default is the job creation time (i.e. beginning of messages). - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new - # - # # Call the list_job_messages method. - # result = client.list_job_messages request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. - # p item - # end - # - def list_job_messages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_job_messages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_job_messages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @messages_stub.call_rpc :list_job_messages, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @messages_stub, :list_job_messages, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Messages API. - # - # This class represents the configuration for Messages, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_job_messages to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Messages API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_job_messages` - # @return [::Gapic::Config::Method] - # - attr_reader :list_job_messages - - # @private - def initialize parent_rpcs = nil - list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages - @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb deleted file mode 100644 index 5fb0a8534756..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - # Credentials for the Messages API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb deleted file mode 100644 index fea909c88cf0..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/messages/credentials" -require "google/cloud/dataflow/v1beta3/messages/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/messages/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - module Messages - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/messages/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb deleted file mode 100644 index b20337aec0f9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb +++ /dev/null @@ -1,458 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/messages_pb" -require "google/cloud/dataflow/v1beta3/messages/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - module Rest - ## - # REST client for the Messages service. - # - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :messages_stub - - ## - # Configure the Messages Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Messages clients - # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Messages Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @messages_stub.universe_domain - end - - ## - # Create a new Messages REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Messages client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @messages_stub = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @messages_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @messages_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.messages.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.messages.list` is not recommended, as you can only request - # the status of jobs that are running in `us-central1`. - # - # @overload list_job_messages(request, options = nil) - # Pass arguments to `list_job_messages` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) - # Pass arguments to `list_job_messages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get messages about. - # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Filter to only get messages with importance >= level - # @param page_size [::Integer] - # If specified, determines the maximum number of messages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # If specified, return only messages with timestamps >= start_time. - # The default is the job creation time (i.e. beginning of messages). - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new - # - # # Call the list_job_messages method. - # result = client.list_job_messages request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. - # p item - # end - # - def list_job_messages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_job_messages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_job_messages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @messages_stub.list_job_messages request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @messages_stub, :list_job_messages, "job_messages", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Messages REST API. - # - # This class represents the configuration for Messages REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_job_messages to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Messages API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_job_messages` - # @return [::Gapic::Config::Method] - # - attr_reader :list_job_messages - - # @private - def initialize parent_rpcs = nil - list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages - @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb deleted file mode 100644 index 9c7b964ec66d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb +++ /dev/null @@ -1,152 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/messages_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - module Rest - ## - # REST service stub for the Messages service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_job_messages REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] - # A result object deserialized from the server's reply - def list_job_messages request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_job_messages_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_job_messages", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_job_messages REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_job_messages_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messages", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/messages", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb deleted file mode 100644 index 8d12328c2c2e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/metrics/credentials" -require "google/cloud/dataflow/v1beta3/metrics/client" -require "google/cloud/dataflow/v1beta3/metrics/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/metrics" - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/metrics/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - module Metrics - end - end - end - end -end - -helper_path = ::File.join __dir__, "metrics", "helpers.rb" -require "google/cloud/dataflow/v1beta3/metrics/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb deleted file mode 100644 index 712da86c1f98..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +++ /dev/null @@ -1,745 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/metrics_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - ## - # Client for the Metrics service. - # - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :metrics_stub - - ## - # Configure the Metrics Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Metrics clients - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Metrics Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @metrics_stub.universe_domain - end - - ## - # Create a new Metrics client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Metrics client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/metrics_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @metrics_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::MetricsV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @metrics_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @metrics_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.getMetrics` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.getMetrics` is not recommended, as you can only request the - # status of jobs that are running in `us-central1`. - # - # @overload get_job_metrics(request, options = nil) - # Pass arguments to `get_job_metrics` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) - # Pass arguments to `get_job_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get metrics for. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new - # - # # Call the get_job_metrics method. - # result = client.get_job_metrics request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. - # p result - # - def get_job_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_job_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_job_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.call_rpc :get_job_metrics, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of the job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_job_execution_details(request, options = nil) - # Pass arguments to `get_job_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) - # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param page_size [::Integer] - # If specified, determines the maximum number of stages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new - # - # # Call the get_job_execution_details method. - # result = client.get_job_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. - # p item - # end - # - def get_job_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_job_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_job_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.call_rpc :get_job_execution_details, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_job_execution_details, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of a stage of the - # job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_stage_execution_details(request, options = nil) - # Pass arguments to `get_stage_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) - # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param stage_id [::String] - # The stage for which to fetch information. - # @param page_size [::Integer] - # If specified, determines the maximum number of work items to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Lower time bound of work items to include, by start time. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Upper time bound of work items to include, by start time. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new - # - # # Call the get_stage_execution_details method. - # result = client.get_stage_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. - # p item - # end - # - def get_stage_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_stage_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - if request.stage_id - header_params["stage_id"] = request.stage_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_stage_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.call_rpc :get_stage_execution_details, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Metrics API. - # - # This class represents the configuration for Metrics, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_job_metrics to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Metrics API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_job_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_metrics - ## - # RPC-specific configuration for `get_job_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_execution_details - ## - # RPC-specific configuration for `get_stage_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_stage_execution_details - - # @private - def initialize parent_rpcs = nil - get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics - @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config - get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details - @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config - get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details - @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb deleted file mode 100644 index 2bcfd26f1f2a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - # Credentials for the Metrics API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb deleted file mode 100644 index 6e6edc9e99d4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/metrics/credentials" -require "google/cloud/dataflow/v1beta3/metrics/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/metrics/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - module Metrics - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/metrics/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb deleted file mode 100644 index be5f27b90cb1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb +++ /dev/null @@ -1,660 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/metrics_pb" -require "google/cloud/dataflow/v1beta3/metrics/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - module Rest - ## - # REST client for the Metrics service. - # - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :metrics_stub - - ## - # Configure the Metrics Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Metrics clients - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Metrics Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @metrics_stub.universe_domain - end - - ## - # Create a new Metrics REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Metrics client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @metrics_stub = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @metrics_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @metrics_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.getMetrics` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.getMetrics` is not recommended, as you can only request the - # status of jobs that are running in `us-central1`. - # - # @overload get_job_metrics(request, options = nil) - # Pass arguments to `get_job_metrics` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) - # Pass arguments to `get_job_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get metrics for. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new - # - # # Call the get_job_metrics method. - # result = client.get_job_metrics request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. - # p result - # - def get_job_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_job_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_job_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.get_job_metrics request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of the job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_job_execution_details(request, options = nil) - # Pass arguments to `get_job_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) - # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param page_size [::Integer] - # If specified, determines the maximum number of stages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new - # - # # Call the get_job_execution_details method. - # result = client.get_job_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. - # p item - # end - # - def get_job_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_job_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_job_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.get_job_execution_details request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_job_execution_details, "stages", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of a stage of the - # job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_stage_execution_details(request, options = nil) - # Pass arguments to `get_stage_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) - # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param stage_id [::String] - # The stage for which to fetch information. - # @param page_size [::Integer] - # If specified, determines the maximum number of work items to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Lower time bound of work items to include, by start time. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Upper time bound of work items to include, by start time. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new - # - # # Call the get_stage_execution_details method. - # result = client.get_stage_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. - # p item - # end - # - def get_stage_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_stage_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_stage_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.get_stage_execution_details request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, "workers", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Metrics REST API. - # - # This class represents the configuration for Metrics REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_job_metrics to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Metrics API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_job_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_metrics - ## - # RPC-specific configuration for `get_job_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_execution_details - ## - # RPC-specific configuration for `get_stage_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_stage_execution_details - - # @private - def initialize parent_rpcs = nil - get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics - @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config - get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details - @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config - get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details - @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb deleted file mode 100644 index b9a5c226a709..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb +++ /dev/null @@ -1,279 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/metrics_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - module Rest - ## - # REST service stub for the Metrics service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_job_metrics REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # A result object deserialized from the server's reply - def get_job_metrics request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_job_metrics_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_job_metrics", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_job_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] - # A result object deserialized from the server's reply - def get_job_execution_details request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_job_execution_details_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_job_execution_details", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_stage_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] - # A result object deserialized from the server's reply - def get_stage_execution_details request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_stage_execution_details_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_stage_execution_details", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_job_metrics REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_job_metrics_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metrics", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/metrics", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_job_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_job_execution_details_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_stage_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_stage_execution_details_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false], - ["stage_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb deleted file mode 100644 index 4878d2288fd4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataflow/v1beta3/snapshots/rest" -require "google/cloud/dataflow/v1beta3/jobs/rest" -require "google/cloud/dataflow/v1beta3/messages/rest" -require "google/cloud/dataflow/v1beta3/metrics/rest" -require "google/cloud/dataflow/v1beta3/templates_service/rest" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" -require "google/cloud/dataflow/v1beta3/version" - -module Google - module Cloud - module Dataflow - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/cloud/dataflow/v1beta3/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module V1beta3 - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb deleted file mode 100644 index b2632eb9c226..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/snapshots/credentials" -require "google/cloud/dataflow/v1beta3/snapshots/client" -require "google/cloud/dataflow/v1beta3/snapshots/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/snapshots" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/snapshots/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module Snapshots - end - end - end - end -end - -helper_path = ::File.join __dir__, "snapshots", "helpers.rb" -require "google/cloud/dataflow/v1beta3/snapshots/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb deleted file mode 100644 index a06a5acf5545..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +++ /dev/null @@ -1,688 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/snapshots_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - ## - # Client for the Snapshots service. - # - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :snapshots_stub - - ## - # Configure the Snapshots Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Snapshots clients - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Snapshots Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @snapshots_stub.universe_domain - end - - ## - # Create a new Snapshots client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Snapshots client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/snapshots_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @snapshots_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::SnapshotsV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @snapshots_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @snapshots_stub.logger - end - - # Service calls - - ## - # Gets information about a snapshot. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.snapshot_id - header_params["snapshot_id"] = request.snapshot_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.call_rpc :get_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a snapshot. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.snapshot_id - header_params["snapshot_id"] = request.snapshot_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists snapshots. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project ID to list snapshots for. - # @param job_id [::String] - # If specified, list snapshots created from this job. - # @param location [::String] - # The location to list snapshots in. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. - # p result - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.call_rpc :list_snapshots, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Snapshots API. - # - # This class represents the configuration for Snapshots, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_snapshot to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Snapshots API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - - # @private - def initialize parent_rpcs = nil - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb deleted file mode 100644 index d08946d2bd72..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - # Credentials for the Snapshots API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb deleted file mode 100644 index c188b21f1ceb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/snapshots/credentials" -require "google/cloud/dataflow/v1beta3/snapshots/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/snapshots/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module Snapshots - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/snapshots/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb deleted file mode 100644 index 494c212b5efb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb +++ /dev/null @@ -1,606 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/snapshots_pb" -require "google/cloud/dataflow/v1beta3/snapshots/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - module Rest - ## - # REST client for the Snapshots service. - # - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :snapshots_stub - - ## - # Configure the Snapshots Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Snapshots clients - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Snapshots Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @snapshots_stub.universe_domain - end - - ## - # Create a new Snapshots REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Snapshots client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @snapshots_stub = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @snapshots_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @snapshots_stub.logger - end - - # Service calls - - ## - # Gets information about a snapshot. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.get_snapshot request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a snapshot. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.delete_snapshot request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists snapshots. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project ID to list snapshots for. - # @param job_id [::String] - # If specified, list snapshots created from this job. - # @param location [::String] - # The location to list snapshots in. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. - # p result - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.list_snapshots request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Snapshots REST API. - # - # This class represents the configuration for Snapshots REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_snapshot to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Snapshots API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - - # @private - def initialize parent_rpcs = nil - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb deleted file mode 100644 index 7b9f03ac3dab..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb +++ /dev/null @@ -1,300 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/snapshots_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - module Rest - ## - # REST service stub for the Snapshots service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # A result object deserialized from the server's reply - def get_snapshot request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_snapshot", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # A result object deserialized from the server's reply - def delete_snapshot request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_snapshot", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_snapshots REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # A result object deserialized from the server's reply - def list_snapshots request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_snapshots", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_snapshot_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["snapshot_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/snapshots/{snapshot_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["snapshot_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_snapshot_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["snapshot_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :delete, - uri_template: "/v1b3/projects/{project_id}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_snapshots REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_snapshots_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb deleted file mode 100644 index 984f76abec78..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/templates_service/credentials" -require "google/cloud/dataflow/v1beta3/templates_service/client" -require "google/cloud/dataflow/v1beta3/templates_service/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create Cloud Dataflow jobs from templates. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/templates_service" - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - module TemplatesService - end - end - end - end -end - -helper_path = ::File.join __dir__, "templates_service", "helpers.rb" -require "google/cloud/dataflow/v1beta3/templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb deleted file mode 100644 index 8720c371b9f8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +++ /dev/null @@ -1,730 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - ## - # Client for the TemplatesService service. - # - # Provides a method to create Cloud Dataflow jobs from templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :templates_service_stub - - ## - # Configure the TemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @templates_service_stub.universe_domain - end - - ## - # Create a new TemplatesService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/templates_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @templates_service_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @templates_service_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @templates_service_stub.logger - end - - # Service calls - - ## - # Creates a Cloud Dataflow job from a template. Do not enter confidential - # information when you supply string values using the API. - # - # To create a job, we recommend using `projects.locations.templates.create` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.create` is not recommended, because your job will - # always start in `us-central1`. - # - # @overload create_job_from_template(request, options = nil) - # Pass arguments to `create_job_from_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) - # Pass arguments to `create_job_from_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param job_name [::String] - # Required. The job name to use for the created job. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @param parameters [::Hash{::String => ::String}] - # The runtime parameters to pass to the job. - # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] - # The runtime environment for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new - # - # # Call the create_job_from_template method. - # result = client.create_job_from_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job_from_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_job_from_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_job_from_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.call_rpc :create_job_from_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Launches a template. - # - # To launch a template, we recommend using - # `projects.locations.templates.launch` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.launch` is not recommended, because jobs launched - # from the template will always start in `us-central1`. - # - # @overload launch_template(request, options = nil) - # Pass arguments to `launch_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) - # Pass arguments to `launch_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @param gcs_path [::String] - # A Cloud Storage path to the template to use to create - # the job. - # Must be valid Cloud Storage URL, beginning with `gs://`. - # - # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] - # Parameters for launching a dynamic template. - # - # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] - # The parameters of the template to launch. Part of the - # body of the POST request. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new - # - # # Call the launch_template method. - # result = client.launch_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. - # p result - # - def launch_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.launch_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.launch_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.launch_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.call_rpc :launch_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get the template associated with a template. - # - # To get the template, we recommend using `projects.locations.templates.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.get` is not recommended, because only - # templates that are running in `us-central1` are retrieved. - # - # @overload get_template(request, options = nil) - # Pass arguments to `get_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) - # Pass arguments to `get_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] - # The view to retrieve. Defaults to METADATA_ONLY. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new - # - # # Call the get_template method. - # result = client.get_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. - # p result - # - def get_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.call_rpc :get_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the TemplatesService API. - # - # This class represents the configuration for TemplatesService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job_from_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the TemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job_from_template` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job_from_template - ## - # RPC-specific configuration for `launch_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_template - ## - # RPC-specific configuration for `get_template` - # @return [::Gapic::Config::Method] - # - attr_reader :get_template - - # @private - def initialize parent_rpcs = nil - create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template - @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config - launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template - @launch_template = ::Gapic::Config::Method.new launch_template_config - get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template - @get_template = ::Gapic::Config::Method.new get_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb deleted file mode 100644 index 8b457121f54e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - # Credentials for the TemplatesService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb deleted file mode 100644 index 9ae874ae87bc..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/templates_service/credentials" -require "google/cloud/dataflow/v1beta3/templates_service/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create Cloud Dataflow jobs from templates. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - module TemplatesService - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb deleted file mode 100644 index fb47d4349562..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb +++ /dev/null @@ -1,657 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/templates_service/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - module Rest - ## - # REST client for the TemplatesService service. - # - # Provides a method to create Cloud Dataflow jobs from templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :templates_service_stub - - ## - # Configure the TemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @templates_service_stub.universe_domain - end - - ## - # Create a new TemplatesService REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @templates_service_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @templates_service_stub.logger - end - - # Service calls - - ## - # Creates a Cloud Dataflow job from a template. Do not enter confidential - # information when you supply string values using the API. - # - # To create a job, we recommend using `projects.locations.templates.create` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.create` is not recommended, because your job will - # always start in `us-central1`. - # - # @overload create_job_from_template(request, options = nil) - # Pass arguments to `create_job_from_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) - # Pass arguments to `create_job_from_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param job_name [::String] - # Required. The job name to use for the created job. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @param parameters [::Hash{::String => ::String}] - # The runtime parameters to pass to the job. - # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] - # The runtime environment for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new - # - # # Call the create_job_from_template method. - # result = client.create_job_from_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job_from_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_job_from_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_job_from_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.create_job_from_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Launches a template. - # - # To launch a template, we recommend using - # `projects.locations.templates.launch` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.launch` is not recommended, because jobs launched - # from the template will always start in `us-central1`. - # - # @overload launch_template(request, options = nil) - # Pass arguments to `launch_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) - # Pass arguments to `launch_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @param gcs_path [::String] - # A Cloud Storage path to the template to use to create - # the job. - # Must be valid Cloud Storage URL, beginning with `gs://`. - # - # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] - # Parameters for launching a dynamic template. - # - # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] - # The parameters of the template to launch. Part of the - # body of the POST request. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new - # - # # Call the launch_template method. - # result = client.launch_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. - # p result - # - def launch_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.launch_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.launch_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.launch_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.launch_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get the template associated with a template. - # - # To get the template, we recommend using `projects.locations.templates.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.get` is not recommended, because only - # templates that are running in `us-central1` are retrieved. - # - # @overload get_template(request, options = nil) - # Pass arguments to `get_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) - # Pass arguments to `get_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] - # The view to retrieve. Defaults to METADATA_ONLY. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new - # - # # Call the get_template method. - # result = client.get_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. - # p result - # - def get_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.get_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the TemplatesService REST API. - # - # This class represents the configuration for TemplatesService REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job_from_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the TemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job_from_template` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job_from_template - ## - # RPC-specific configuration for `launch_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_template - ## - # RPC-specific configuration for `get_template` - # @return [::Gapic::Config::Method] - # - attr_reader :get_template - - # @private - def initialize parent_rpcs = nil - create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template - @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config - launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template - @launch_template = ::Gapic::Config::Method.new launch_template_config - get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template - @get_template = ::Gapic::Config::Method.new get_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb deleted file mode 100644 index 42dde9541e62..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb +++ /dev/null @@ -1,292 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - module Rest - ## - # REST service stub for the TemplatesService service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the create_job_from_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def create_job_from_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_job_from_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_job_from_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the launch_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # A result object deserialized from the server's reply - def launch_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_launch_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "launch_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # A result object deserialized from the server's reply - def get_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the create_job_from_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_job_from_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/templates", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the launch_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_launch_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:launch", - body: "launch_parameters", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/templates:launch", - body: "launch_parameters", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:get", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/templates:get", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb deleted file mode 100644 index b6b5c1af211d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - VERSION = "0.0.1" - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb deleted file mode 100644 index 4f1e56a29738..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/environment.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/protobuf/any_pb' -require 'google/protobuf/struct_pb' - - -descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\")\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Environment").msgclass - Package = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Package").msgclass - Disk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Disk").msgclass - WorkerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerSettings").msgclass - TaskRunnerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TaskRunnerSettings").msgclass - AutoscalingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingSettings").msgclass - SdkHarnessContainerImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkHarnessContainerImage").msgclass - WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerPool").msgclass - DataSamplingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig").msgclass - DataSamplingConfig::DataSamplingBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior").enummodule - DebugOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DebugOptions").msgclass - JobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobType").enummodule - FlexResourceSchedulingGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexResourceSchedulingGoal").enummodule - TeardownPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TeardownPolicy").enummodule - DefaultPackageSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DefaultPackageSet").enummodule - AutoscalingAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingAlgorithm").enummodule - WorkerIPAddressConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerIPAddressConfiguration").enummodule - ShuffleMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ShuffleMode").enummodule - StreamingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingMode").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb deleted file mode 100644 index 16e222ef97e6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/jobs.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/dataflow/v1beta3/environment_pb' -require 'google/dataflow/v1beta3/snapshots_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/struct_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n\"google/dataflow/v1beta3/jobs.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\'google/dataflow/v1beta3/snapshots.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x0b\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x04type\x18\x04 \x01(\x0e\x32 .google.dataflow.v1beta3.JobTypeB\x03\xe0\x41\x01\x12>\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32$.google.dataflow.v1beta3.EnvironmentB\x03\xe0\x41\x01\x12,\n\x05steps\x18\x06 \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Step\x12\x16\n\x0esteps_location\x18\x18 \x01(\t\x12\x38\n\rcurrent_state\x18\x07 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0frequested_state\x18\t \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x41\n\x0e\x65xecution_info\x18\n \x01(\x0b\x32).google.dataflow.v1beta3.JobExecutionInfo\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0ereplace_job_id\x18\x0c \x01(\t\x12[\n\x16transform_name_mapping\x18\r \x03(\x0b\x32\x36.google.dataflow.v1beta3.Job.TransformNameMappingEntryB\x03\xe0\x41\x01\x12\x19\n\x11\x63lient_request_id\x18\x0e \x01(\t\x12\x1a\n\x12replaced_by_job_id\x18\x0f \x01(\t\x12\x12\n\ntemp_files\x18\x10 \x03(\t\x12\x38\n\x06labels\x18\x11 \x03(\x0b\x32(.google.dataflow.v1beta3.Job.LabelsEntry\x12\x15\n\x08location\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12J\n\x14pipeline_description\x18\x13 \x01(\x0b\x32,.google.dataflow.v1beta3.PipelineDescription\x12\x42\n\x0cstage_states\x18\x14 \x03(\x0b\x32,.google.dataflow.v1beta3.ExecutionStageState\x12:\n\x0cjob_metadata\x18\x15 \x01(\x0b\x32$.google.dataflow.v1beta3.JobMetadata\x12.\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18\x63reated_from_snapshot_id\x18\x17 \x01(\t\x12\x15\n\rsatisfies_pzs\x18\x19 \x01(\x08\x12V\n\x18runtime_updatable_params\x18\x1a \x01(\x0b\x32/.google.dataflow.v1beta3.RuntimeUpdatableParamsH\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12N\n\x11service_resources\x18\x1c \x01(\x0b\x32).google.dataflow.v1beta3.ServiceResourcesB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x15\n\x08pausable\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_runtime_updatable_paramsB\x10\n\x0e_satisfies_pziB\x14\n\x12_service_resources\"&\n\x10ServiceResources\x12\x12\n\x05zones\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xe3\x02\n\x16RuntimeUpdatableParams\x12\x1c\n\x0fmax_num_workers\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmin_num_workers\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12$\n\x17worker_utilization_hint\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12J\n\x1b\x61\x63\x63\x65ptable_backlog_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x05\x18\x01\xe0\x41\x01H\x03\x88\x01\x01\x12\"\n\x10\x61utoscaling_tier\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x42\x12\n\x10_max_num_workersB\x12\n\x10_min_num_workersB\x1a\n\x18_worker_utilization_hintB\x1e\n\x1c_acceptable_backlog_durationB\x13\n\x11_autoscaling_tier\";\n\x12\x44\x61tastoreIODetails\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\"6\n\x0fPubSubIODetails\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"%\n\rFileIODetails\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x01(\t\"N\n\x11\x42igTableIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"V\n\x11\x42igQueryIODetails\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12\r\n\x05query\x18\x04 \x01(\t\"P\n\x10SpannerIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\"\x9d\x02\n\nSdkVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1c\n\x14version_display_name\x18\x02 \x01(\t\x12P\n\x12sdk_support_status\x18\x03 \x01(\x0e\x32\x34.google.dataflow.v1beta3.SdkVersion.SdkSupportStatus\x12\x32\n\x04\x62ugs\x18\x04 \x03(\x0b\x32\x1f.google.dataflow.v1beta3.SdkBugB\x03\xe0\x41\x03\"Z\n\x10SdkSupportStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tSUPPORTED\x10\x01\x12\t\n\x05STALE\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0f\n\x0bUNSUPPORTED\x10\x04\"\xa9\x02\n\x06SdkBug\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32$.google.dataflow.v1beta3.SdkBug.TypeB\x03\xe0\x41\x03\x12?\n\x08severity\x18\x02 \x01(\x0e\x32(.google.dataflow.v1beta3.SdkBug.SeverityB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"H\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERAL\x10\x01\x12\x0f\n\x0bPERFORMANCE\x10\x02\x12\x0c\n\x08\x44\x41TALOSS\x10\x03\"I\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\n\n\x06NOTICE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\n\n\x06SEVERE\x10\x03\"\x80\x05\n\x0bJobMetadata\x12\x38\n\x0bsdk_version\x18\x01 \x01(\x0b\x32#.google.dataflow.v1beta3.SdkVersion\x12\x42\n\x0fspanner_details\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.SpannerIODetails\x12\x44\n\x10\x62igquery_details\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.BigQueryIODetails\x12\x45\n\x11\x62ig_table_details\x18\x04 \x03(\x0b\x32*.google.dataflow.v1beta3.BigTableIODetails\x12@\n\x0epubsub_details\x18\x05 \x03(\x0b\x32(.google.dataflow.v1beta3.PubSubIODetails\x12<\n\x0c\x66ile_details\x18\x06 \x03(\x0b\x32&.google.dataflow.v1beta3.FileIODetails\x12\x46\n\x11\x64\x61tastore_details\x18\x07 \x03(\x0b\x32+.google.dataflow.v1beta3.DatastoreIODetails\x12`\n\x17user_display_properties\x18\x08 \x03(\x0b\x32?.google.dataflow.v1beta3.JobMetadata.UserDisplayPropertiesEntry\x1a<\n\x1aUserDisplayPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x45xecutionStageState\x12\x1c\n\x14\x65xecution_stage_name\x18\x01 \x01(\t\x12@\n\x15\x65xecution_stage_state\x18\x02 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x13PipelineDescription\x12N\n\x1boriginal_pipeline_transform\x18\x01 \x03(\x0b\x32).google.dataflow.v1beta3.TransformSummary\x12P\n\x18\x65xecution_pipeline_stage\x18\x02 \x03(\x0b\x32..google.dataflow.v1beta3.ExecutionStageSummary\x12:\n\x0c\x64isplay_data\x18\x03 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x17\n\x0fstep_names_hash\x18\x04 \x01(\t\"\xd8\x01\n\x10TransformSummary\x12/\n\x04kind\x18\x01 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x0c\x64isplay_data\x18\x04 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x1e\n\x16output_collection_name\x18\x05 \x03(\t\x12\x1d\n\x15input_collection_name\x18\x06 \x03(\t\"\xfc\x05\n\x15\x45xecutionStageSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12/\n\x04kind\x18\x03 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12P\n\x0cinput_source\x18\x04 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12Q\n\routput_source\x18\x05 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12\x1a\n\x12prerequisite_stage\x18\x08 \x03(\t\x12^\n\x13\x63omponent_transform\x18\x06 \x03(\x0b\x32\x41.google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform\x12X\n\x10\x63omponent_source\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource\x1al\n\x0bStageSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\x12\x12\n\nsize_bytes\x18\x04 \x01(\x03\x1aQ\n\x12\x43omponentTransform\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12original_transform\x18\x03 \x01(\t\x1a\\\n\x0f\x43omponentSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\"\xcc\x02\n\x0b\x44isplayData\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\tstr_value\x18\x04 \x01(\tH\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x1a\n\x10java_class_value\x18\x07 \x01(\tH\x00\x12\x35\n\x0ftimestamp_value\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x33\n\x0e\x64uration_value\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x17\n\x0fshort_str_value\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\x12\r\n\x05label\x18\r \x01(\tB\x07\n\x05Value\"O\n\x04Step\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb8\x01\n\x10JobExecutionInfo\x12\x45\n\x06stages\x18\x01 \x03(\x0b\x32\x35.google.dataflow.v1beta3.JobExecutionInfo.StagesEntry\x1a]\n\x0bStagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.dataflow.v1beta3.JobExecutionStageInfo:\x02\x38\x01\"*\n\x15JobExecutionStageInfo\x12\x11\n\tstep_name\x18\x01 \x03(\t\"\xab\x01\n\x10\x43reateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12)\n\x03job\x18\x02 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x16\n\x0ereplace_job_id\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\"u\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb9\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12)\n\x03job\x18\x03 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskH\x00\x88\x01\x01\x42\x0e\n\x0c_update_mask\"\xb0\x02\n\x0fListJobsRequest\x12?\n\x06\x66ilter\x18\x05 \x01(\x0e\x32/.google.dataflow.v1beta3.ListJobsRequest.Filter\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32 .google.dataflow.v1beta3.JobViewB\x02\x18\x01\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x11 \x01(\t\x12\x16\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\":\n\x06\x46ilter\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x42\x07\n\x05_name\"\x1e\n\x0e\x46\x61iledLocation\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x99\x01\n\x10ListJobsResponse\x12*\n\x04jobs\x18\x01 \x03(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12@\n\x0f\x66\x61iled_location\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.FailedLocation\"\xa1\x01\n\x12SnapshotJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12&\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x18\n\x10snapshot_sources\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\",\n\x16\x43heckActiveJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"4\n\x17\x43heckActiveJobsResponse\x12\x19\n\x11\x61\x63tive_jobs_exist\x18\x01 \x01(\x08*\xae\x01\n\x08KindType\x12\x10\n\x0cUNKNOWN_KIND\x10\x00\x12\x0f\n\x0bPAR_DO_KIND\x10\x01\x12\x15\n\x11GROUP_BY_KEY_KIND\x10\x02\x12\x10\n\x0c\x46LATTEN_KIND\x10\x03\x12\r\n\tREAD_KIND\x10\x04\x12\x0e\n\nWRITE_KIND\x10\x05\x12\x11\n\rCONSTANT_KIND\x10\x06\x12\x12\n\x0eSINGLETON_KIND\x10\x07\x12\x10\n\x0cSHUFFLE_KIND\x10\x08*\xf0\x02\n\x08JobState\x12\x15\n\x11JOB_STATE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_STATE_STOPPED\x10\x01\x12\x15\n\x11JOB_STATE_RUNNING\x10\x02\x12\x12\n\x0eJOB_STATE_DONE\x10\x03\x12\x14\n\x10JOB_STATE_FAILED\x10\x04\x12\x17\n\x13JOB_STATE_CANCELLED\x10\x05\x12\x15\n\x11JOB_STATE_UPDATED\x10\x06\x12\x16\n\x12JOB_STATE_DRAINING\x10\x07\x12\x15\n\x11JOB_STATE_DRAINED\x10\x08\x12\x15\n\x11JOB_STATE_PENDING\x10\t\x12\x18\n\x14JOB_STATE_CANCELLING\x10\n\x12\x14\n\x10JOB_STATE_QUEUED\x10\x0b\x12\"\n\x1eJOB_STATE_RESOURCE_CLEANING_UP\x10\x0c\x12\x15\n\x11JOB_STATE_PAUSING\x10\r\x12\x14\n\x10JOB_STATE_PAUSED\x10\x0e*a\n\x07JobView\x12\x14\n\x10JOB_VIEW_UNKNOWN\x10\x00\x12\x14\n\x10JOB_VIEW_SUMMARY\x10\x01\x12\x10\n\x0cJOB_VIEW_ALL\x10\x02\x12\x18\n\x14JOB_VIEW_DESCRIPTION\x10\x03\x32\xaf\x0b\n\x0bJobsV1Beta3\x12\xc1\x01\n\tCreateJob\x12).google.dataflow.v1beta3.CreateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"k\x82\xd3\xe4\x93\x02\x65\"5/v1b3/projects/{project_id}/locations/{location}/jobs:\x03jobZ\'\" /v1b3/projects/{project_id}/jobs:\x03job\x12\xc3\x01\n\x06GetJob\x12&.google.dataflow.v1beta3.GetJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}Z+\x12)/v1b3/projects/{project_id}/jobs/{job_id}\x12\xd3\x01\n\tUpdateJob\x12).google.dataflow.v1beta3.UpdateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"}\x82\xd3\xe4\x93\x02w\x1a>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:\x03jobZ0\x1a)/v1b3/projects/{project_id}/jobs/{job_id}:\x03job\x12\xc2\x01\n\x08ListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"a\x82\xd3\xe4\x93\x02[\x12\x35/v1b3/projects/{project_id}/locations/{location}/jobsZ\"\x12 /v1b3/projects/{project_id}/jobs\x12\x9e\x01\n\x12\x41ggregatedListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1b3/projects/{project_id}/jobs:aggregated\x12v\n\x0f\x43heckActiveJobs\x12/.google.dataflow.v1beta3.CheckActiveJobsRequest\x1a\x30.google.dataflow.v1beta3.CheckActiveJobsResponse\"\x00\x12\xec\x01\n\x0bSnapshotJob\x12+.google.dataflow.v1beta3.SnapshotJobRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\"G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot:\x01*Z7\"2/v1b3/projects/{project_id}/jobs/{job_id}:snapshot:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcc\x01\n\x1b\x63om.google.dataflow.v1beta3B\tJobsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Job").msgclass - ServiceResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ServiceResources").msgclass - RuntimeUpdatableParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeUpdatableParams").msgclass - DatastoreIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DatastoreIODetails").msgclass - PubSubIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubSubIODetails").msgclass - FileIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FileIODetails").msgclass - BigTableIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigTableIODetails").msgclass - BigQueryIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigQueryIODetails").msgclass - SpannerIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SpannerIODetails").msgclass - SdkVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion").msgclass - SdkVersion::SdkSupportStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion.SdkSupportStatus").enummodule - SdkBug = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug").msgclass - SdkBug::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Type").enummodule - SdkBug::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Severity").enummodule - JobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetadata").msgclass - ExecutionStageState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageState").msgclass - PipelineDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PipelineDescription").msgclass - TransformSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TransformSummary").msgclass - ExecutionStageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary").msgclass - ExecutionStageSummary::StageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.StageSource").msgclass - ExecutionStageSummary::ComponentTransform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform").msgclass - ExecutionStageSummary::ComponentSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource").msgclass - DisplayData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DisplayData").msgclass - Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Step").msgclass - JobExecutionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionInfo").msgclass - JobExecutionStageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionStageInfo").msgclass - CreateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobRequest").msgclass - GetJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobRequest").msgclass - UpdateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.UpdateJobRequest").msgclass - ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest").msgclass - ListJobsRequest::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest.Filter").enummodule - FailedLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FailedLocation").msgclass - ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsResponse").msgclass - SnapshotJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotJobRequest").msgclass - CheckActiveJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsRequest").msgclass - CheckActiveJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsResponse").msgclass - KindType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KindType").enummodule - JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobState").enummodule - JobView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobView").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb deleted file mode 100644 index 1d285f980ae8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb +++ /dev/null @@ -1,93 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/jobs.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/jobs_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module JobsV1Beta3 - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.JobsV1Beta3' - - # Creates a Dataflow job. - # - # To create a job, we recommend using `projects.locations.jobs.create` with a - # [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.create` is not recommended, as your job will always start - # in `us-central1`. - # - # Do not enter confidential information when you supply string values using - # the API. - rpc :CreateJob, ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # Gets the state of the specified Cloud Dataflow job. - # - # To get the state of a job, we recommend using `projects.locations.jobs.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.get` is not recommended, as you can only get the state of - # jobs that are running in `us-central1`. - rpc :GetJob, ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # Updates the state of an existing Cloud Dataflow job. - # - # To update the state of an existing job, we recommend using - # `projects.locations.jobs.update` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.update` is not recommended, as you can only update the state - # of jobs that are running in `us-central1`. - rpc :UpdateJob, ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # List the jobs of a project. - # - # To list the jobs of a project in a region, we recommend using - # `projects.locations.jobs.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - # list the all jobs across all regions, use `projects.jobs.aggregated`. Using - # `projects.jobs.list` is not recommended, because you can only get the list - # of jobs that are running in `us-central1`. - # - # `projects.locations.jobs.list` and `projects.jobs.list` support filtering - # the list of jobs by name. Filtering by name isn't supported by - # `projects.jobs.aggregated`. - rpc :ListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse - # List the jobs of a project across all regions. - # - # **Note:** This method doesn't support filtering the list of - # jobs by name. - rpc :AggregatedListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse - # Check for existence of active jobs in the given project across all regions. - rpc :CheckActiveJobs, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse - # Snapshot the state of a streaming job. - rpc :SnapshotJob, ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb deleted file mode 100644 index ff480b37c746..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/messages.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/protobuf/struct_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n&google/dataflow/v1beta3/messages.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x01\n\nJobMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t\x12I\n\x12message_importance\x18\x04 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\"\xc9\x01\n\x11StructuredMessage\x12\x14\n\x0cmessage_text\x18\x01 \x01(\t\x12\x13\n\x0bmessage_key\x18\x02 \x01(\t\x12H\n\nparameters\x18\x03 \x03(\x0b\x32\x34.google.dataflow.v1beta3.StructuredMessage.Parameter\x1a?\n\tParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\xb1\x03\n\x10\x41utoscalingEvent\x12\x1b\n\x13\x63urrent_num_workers\x18\x01 \x01(\x03\x12\x1a\n\x12target_num_workers\x18\x02 \x01(\x03\x12R\n\nevent_type\x18\x03 \x01(\x0e\x32>.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType\x12?\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32*.google.dataflow.v1beta3.StructuredMessage\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_pool\x18\x07 \x01(\t\"\x8f\x01\n\x14\x41utoscalingEventType\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x1e\n\x1aTARGET_NUM_WORKERS_CHANGED\x10\x01\x12\x1f\n\x1b\x43URRENT_NUM_WORKERS_CHANGED\x10\x02\x12\x15\n\x11\x41\x43TUATION_FAILURE\x10\x03\x12\r\n\tNO_CHANGE\x10\x04\"\x9e\x02\n\x16ListJobMessagesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12I\n\x12minimum_importance\x18\x03 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x08 \x01(\t\"\xb4\x01\n\x17ListJobMessagesResponse\x12\x39\n\x0cjob_messages\x18\x01 \x03(\x0b\x32#.google.dataflow.v1beta3.JobMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x45\n\x12\x61utoscaling_events\x18\x03 \x03(\x0b\x32).google.dataflow.v1beta3.AutoscalingEvent*\xb2\x01\n\x14JobMessageImportance\x12\"\n\x1eJOB_MESSAGE_IMPORTANCE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_MESSAGE_DEBUG\x10\x01\x12\x18\n\x14JOB_MESSAGE_DETAILED\x10\x02\x12\x15\n\x11JOB_MESSAGE_BASIC\x10\x05\x12\x17\n\x13JOB_MESSAGE_WARNING\x10\x03\x12\x15\n\x11JOB_MESSAGE_ERROR\x10\x04\x32\x85\x03\n\x0fMessagesV1Beta3\x12\xfc\x01\n\x0fListJobMessages\x12/.google.dataflow.v1beta3.ListJobMessagesRequest\x1a\x30.google.dataflow.v1beta3.ListJobMessagesResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messagesZ4\x12\x32/v1b3/projects/{project_id}/jobs/{job_id}/messages\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd0\x01\n\x1b\x63om.google.dataflow.v1beta3B\rMessagesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - JobMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessage").msgclass - StructuredMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage").msgclass - StructuredMessage::Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage.Parameter").msgclass - AutoscalingEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent").msgclass - AutoscalingEvent::AutoscalingEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType").enummodule - ListJobMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesRequest").msgclass - ListJobMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesResponse").msgclass - JobMessageImportance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessageImportance").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb deleted file mode 100644 index 7e765d1339f9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/messages.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/messages_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module MessagesV1Beta3 - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.MessagesV1Beta3' - - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.messages.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.messages.list` is not recommended, as you can only request - # the status of jobs that are running in `us-central1`. - rpc :ListJobMessages, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb deleted file mode 100644 index e1bad2b6d432..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/metrics.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/struct_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n%google/dataflow/v1beta3/metrics.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x14MetricStructuredName\x12\x0e\n\x06origin\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12K\n\x07\x63ontext\x18\x03 \x03(\x0b\x32:.google.dataflow.v1beta3.MetricStructuredName.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x04\n\x0cMetricUpdate\x12;\n\x04name\x18\x01 \x01(\x0b\x32-.google.dataflow.v1beta3.MetricStructuredName\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x12\n\ncumulative\x18\x03 \x01(\x08\x12&\n\x06scalar\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08mean_sum\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x12*\n\nmean_count\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12#\n\x03set\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12$\n\x04trie\x18\r \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x62ounded_trie\x18\x0e \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x64istribution\x18\x0b \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05gauge\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08internal\x18\x08 \x01(\x0b\x32\x16.google.protobuf.Value\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"|\n\x14GetJobMetricsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x04 \x01(\t\"u\n\nJobMetrics\x12/\n\x0bmetric_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x07metrics\x18\x02 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\"|\n\x1dGetJobExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\xb8\x01\n\x12ProgressTimeseries\x12\x18\n\x10\x63urrent_progress\x18\x01 \x01(\x01\x12\x46\n\x0b\x64\x61ta_points\x18\x02 \x03(\x0b\x32\x31.google.dataflow.v1beta3.ProgressTimeseries.Point\x1a@\n\x05Point\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xee\x02\n\rStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06\x63\x61uses\x18\x02 \x03(\x0b\x32\x32.google.dataflow.v1beta3.StragglerInfo.CausesEntry\x1a{\n\x16StragglerDebuggingInfo\x12?\n\x07hot_key\x18\x01 \x01(\x0b\x32,.google.dataflow.v1beta3.HotKeyDebuggingInfoH\x00\x42 \n\x1estraggler_debugging_info_value\x1al\n\x0b\x43\x61usesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo:\x02\x38\x01\"\xfb\x01\n\x16StreamingStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_name\x18\x03 \x01(\t\x12\x35\n\x12\x64\x61ta_watermark_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14system_watermark_lag\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb0\x01\n\tStraggler\x12\x41\n\x0f\x62\x61tch_straggler\x18\x01 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfoH\x00\x12N\n\x13streaming_straggler\x18\x02 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStragglerInfoH\x00\x42\x10\n\x0estraggler_info\"\xc6\x02\n\x13HotKeyDebuggingInfo\x12\\\n\x11\x64\x65tected_hot_keys\x18\x01 \x03(\x0b\x32\x41.google.dataflow.v1beta3.HotKeyDebuggingInfo.DetectedHotKeysEntry\x1a`\n\nHotKeyInfo\x12.\n\x0bhot_key_age\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\rkey_truncated\x18\x03 \x01(\x08\x1ao\n\x14\x44\x65tectedHotKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo:\x02\x38\x01\"\x8f\x02\n\x10StragglerSummary\x12\x1d\n\x15total_straggler_count\x18\x01 \x01(\x03\x12\x61\n\x15straggler_cause_count\x18\x02 \x03(\x0b\x32\x42.google.dataflow.v1beta3.StragglerSummary.StragglerCauseCountEntry\x12=\n\x11recent_stragglers\x18\x03 \x03(\x0b\x32\".google.dataflow.v1beta3.Straggler\x1a:\n\x18StragglerCauseCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xf3\x02\n\x0cStageSummary\x12\x10\n\x08stage_id\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x06 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12\x44\n\x11straggler_summary\x18\x07 \x01(\x0b\x32).google.dataflow.v1beta3.StragglerSummary\"e\n\x13JobExecutionDetails\x12\x35\n\x06stages\x18\x01 \x03(\x0b\x32%.google.dataflow.v1beta3.StageSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xee\x01\n\x1fGetStageExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x10\n\x08stage_id\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x03\n\x0fWorkItemDetails\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x05state\x18\x05 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12=\n\x08progress\x18\x06 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x07 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12>\n\x0estraggler_info\x18\x08 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfo\"b\n\rWorkerDetails\x12\x13\n\x0bworker_name\x18\x01 \x01(\t\x12<\n\nwork_items\x18\x02 \x03(\x0b\x32(.google.dataflow.v1beta3.WorkItemDetails\"i\n\x15StageExecutionDetails\x12\x37\n\x07workers\x18\x01 \x03(\x0b\x32&.google.dataflow.v1beta3.WorkerDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*\xc5\x01\n\x0e\x45xecutionState\x12\x1b\n\x17\x45XECUTION_STATE_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTION_STATE_NOT_STARTED\x10\x01\x12\x1b\n\x17\x45XECUTION_STATE_RUNNING\x10\x02\x12\x1d\n\x19\x45XECUTION_STATE_SUCCEEDED\x10\x03\x12\x1a\n\x16\x45XECUTION_STATE_FAILED\x10\x04\x12\x1d\n\x19\x45XECUTION_STATE_CANCELLED\x10\x05\x32\xbd\x06\n\x0eMetricsV1Beta3\x12\xe9\x01\n\rGetJobMetrics\x12-.google.dataflow.v1beta3.GetJobMetricsRequest\x1a#.google.dataflow.v1beta3.JobMetrics\"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x46/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metricsZ3\x12\x31/v1b3/projects/{project_id}/jobs/{job_id}/metrics\x12\xd7\x01\n\x16GetJobExecutionDetails\x12\x36.google.dataflow.v1beta3.GetJobExecutionDetailsRequest\x1a,.google.dataflow.v1beta3.JobExecutionDetails\"W\x82\xd3\xe4\x93\x02Q\x12O/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails\x12\xef\x01\n\x18GetStageExecutionDetails\x12\x38.google.dataflow.v1beta3.GetStageExecutionDetailsRequest\x1a..google.dataflow.v1beta3.StageExecutionDetails\"i\x82\xd3\xe4\x93\x02\x63\x12\x61/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcf\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0cMetricsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - MetricStructuredName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricStructuredName").msgclass - MetricUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricUpdate").msgclass - GetJobMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobMetricsRequest").msgclass - JobMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetrics").msgclass - GetJobExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobExecutionDetailsRequest").msgclass - ProgressTimeseries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries").msgclass - ProgressTimeseries::Point = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries.Point").msgclass - StragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo").msgclass - StragglerInfo::StragglerDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo").msgclass - StreamingStragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStragglerInfo").msgclass - Straggler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Straggler").msgclass - HotKeyDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo").msgclass - HotKeyDebuggingInfo::HotKeyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo").msgclass - StragglerSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerSummary").msgclass - StageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageSummary").msgclass - JobExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionDetails").msgclass - GetStageExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetStageExecutionDetailsRequest").msgclass - WorkItemDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkItemDetails").msgclass - WorkerDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerDetails").msgclass - StageExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageExecutionDetails").msgclass - ExecutionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionState").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb deleted file mode 100644 index 37678edc27d1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/metrics.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/metrics_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module MetricsV1Beta3 - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.MetricsV1Beta3' - - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.getMetrics` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.getMetrics` is not recommended, as you can only request the - # status of jobs that are running in `us-central1`. - rpc :GetJobMetrics, ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Google::Cloud::Dataflow::V1beta3::JobMetrics - # Request detailed information about the execution status of the job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - rpc :GetJobExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails - # Request detailed information about the execution status of a stage of the - # job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - rpc :GetStageExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb deleted file mode 100644 index bba6c31a5430..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/snapshots.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n\'google/dataflow/v1beta3/snapshots.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x16PubsubSnapshotMetadata\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x15\n\rsnapshot_name\x18\x02 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdb\x02\n\x08Snapshot\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x15\n\rsource_job_id\x18\x03 \x01(\t\x12\x31\n\rcreation_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x03ttl\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x05state\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.SnapshotState\x12H\n\x0fpubsub_metadata\x18\x07 \x03(\x0b\x32/.google.dataflow.v1beta3.PubsubSnapshotMetadata\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12\x17\n\x0f\x64isk_size_bytes\x18\t \x01(\x03\x12\x0e\n\x06region\x18\n \x01(\t\"O\n\x12GetSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"R\n\x15\x44\x65leteSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteSnapshotResponse\"L\n\x14ListSnapshotsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"M\n\x15ListSnapshotsResponse\x12\x34\n\tsnapshots\x18\x01 \x03(\x0b\x32!.google.dataflow.v1beta3.Snapshot*i\n\rSnapshotState\x12\x1a\n\x16UNKNOWN_SNAPSHOT_STATE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x32\x8d\x07\n\x10SnapshotsV1Beta3\x12\xe8\x01\n\x0bGetSnapshot\x12+.google.dataflow.v1beta3.GetSnapshotRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01\x12H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z5\x12\x33/v1b3/projects/{project_id}/snapshots/{snapshot_id}\x12\xec\x01\n\x0e\x44\x65leteSnapshot\x12..google.dataflow.v1beta3.DeleteSnapshotRequest\x1a/.google.dataflow.v1beta3.DeleteSnapshotResponse\"y\x82\xd3\xe4\x93\x02s*H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z\'*%/v1b3/projects/{project_id}/snapshots\x12\xa9\x02\n\rListSnapshots\x12-.google.dataflow.v1beta3.ListSnapshotsRequest\x1a..google.dataflow.v1beta3.ListSnapshotsResponse\"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01\x12H/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshotsZ<\x12:/v1b3/projects/{project_id}/locations/{location}/snapshotsZ\'\x12%/v1b3/projects/{project_id}/snapshots\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eSnapshotsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - PubsubSnapshotMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubSnapshotMetadata").msgclass - Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Snapshot").msgclass - GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetSnapshotRequest").msgclass - DeleteSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotRequest").msgclass - DeleteSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotResponse").msgclass - ListSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsRequest").msgclass - ListSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsResponse").msgclass - SnapshotState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotState").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb deleted file mode 100644 index 203fdccc8bc2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/snapshots.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/snapshots_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module SnapshotsV1Beta3 - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.SnapshotsV1Beta3' - - # Gets information about a snapshot. - rpc :GetSnapshot, ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot - # Deletes a snapshot. - rpc :DeleteSnapshot, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse - # Lists snapshots. - rpc :ListSnapshots, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb deleted file mode 100644 index 0b21c1fea7c4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/streaming.proto - -require 'google/protobuf' - - -descriptor_data = "\n\'google/dataflow/v1beta3/streaming.proto\x12\x17google.dataflow.v1beta3\"\x9d\x03\n\x0eTopologyConfig\x12\x42\n\x0c\x63omputations\x18\x01 \x03(\x0b\x32,.google.dataflow.v1beta3.ComputationTopology\x12J\n\x15\x64\x61ta_disk_assignments\x18\x02 \x03(\x0b\x32+.google.dataflow.v1beta3.DataDiskAssignment\x12v\n\"user_stage_to_computation_name_map\x18\x03 \x03(\x0b\x32J.google.dataflow.v1beta3.TopologyConfig.UserStageToComputationNameMapEntry\x12\x1b\n\x13\x66orwarding_key_bits\x18\x04 \x01(\x05\x12 \n\x18persistent_state_version\x18\x05 \x01(\x05\x1a\x44\n\"UserStageToComputationNameMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xce\x01\n\x0ePubsubLocation\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\x12\x17\n\x0ftimestamp_label\x18\x03 \x01(\t\x12\x10\n\x08id_label\x18\x04 \x01(\t\x12\x16\n\x0e\x64rop_late_data\x18\x05 \x01(\x08\x12\x1d\n\x15tracking_subscription\x18\x06 \x01(\t\x12\x17\n\x0fwith_attributes\x18\x07 \x01(\x08\x12\x1c\n\x14\x64ynamic_destinations\x18\x08 \x01(\x08\"+\n\x16StreamingStageLocation\x12\x11\n\tstream_id\x18\x01 \x01(\t\"?\n\x1aStreamingSideInputLocation\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x14\n\x0cstate_family\x18\x02 \x01(\t\"(\n\x14\x43ustomSourceLocation\x12\x10\n\x08stateful\x18\x01 \x01(\x08\"\xda\x02\n\x0eStreamLocation\x12S\n\x18streaming_stage_location\x18\x01 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStageLocationH\x00\x12\x42\n\x0fpubsub_location\x18\x02 \x01(\x0b\x32\'.google.dataflow.v1beta3.PubsubLocationH\x00\x12R\n\x13side_input_location\x18\x03 \x01(\x0b\x32\x33.google.dataflow.v1beta3.StreamingSideInputLocationH\x00\x12O\n\x16\x63ustom_source_location\x18\x04 \x01(\x0b\x32-.google.dataflow.v1beta3.CustomSourceLocationH\x00\x42\n\n\x08location\":\n\x11StateFamilyConfig\x12\x14\n\x0cstate_family\x18\x01 \x01(\t\x12\x0f\n\x07is_read\x18\x02 \x01(\x08\"\xbe\x02\n\x13\x43omputationTopology\x12\x19\n\x11system_stage_name\x18\x01 \x01(\t\x12\x16\n\x0e\x63omputation_id\x18\x05 \x01(\t\x12=\n\nkey_ranges\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.KeyRangeLocation\x12\x37\n\x06inputs\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x38\n\x07outputs\x18\x04 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x42\n\x0estate_families\x18\x07 \x03(\x0b\x32*.google.dataflow.v1beta3.StateFamilyConfig\"\x89\x01\n\x10KeyRangeLocation\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x19\n\x11\x64\x65livery_endpoint\x18\x03 \x01(\t\x12\x11\n\tdata_disk\x18\x05 \x01(\t\x12+\n\x1f\x64\x65precated_persistent_directory\x18\x04 \x01(\tB\x02\x18\x01\"$\n\x0fMountedDataDisk\x12\x11\n\tdata_disk\x18\x01 \x01(\t\"=\n\x12\x44\x61taDiskAssignment\x12\x13\n\x0bvm_instance\x18\x01 \x01(\t\x12\x12\n\ndata_disks\x18\x02 \x03(\t\"K\n\x1aKeyRangeDataDiskAssignment\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x11\n\tdata_disk\x18\x03 \x01(\t\"\x84\x01\n\x1aStreamingComputationRanges\x12\x16\n\x0e\x63omputation_id\x18\x01 \x01(\t\x12N\n\x11range_assignments\x18\x02 \x03(\x0b\x32\x33.google.dataflow.v1beta3.KeyRangeDataDiskAssignment\"V\n StreamingApplianceSnapshotConfig\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x1d\n\x15import_state_endpoint\x18\x02 \x01(\tB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eStreamingProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - TopologyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TopologyConfig").msgclass - PubsubLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubLocation").msgclass - StreamingStageLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStageLocation").msgclass - StreamingSideInputLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingSideInputLocation").msgclass - CustomSourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CustomSourceLocation").msgclass - StreamLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamLocation").msgclass - StateFamilyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StateFamilyConfig").msgclass - ComputationTopology = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ComputationTopology").msgclass - KeyRangeLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeLocation").msgclass - MountedDataDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MountedDataDisk").msgclass - DataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataDiskAssignment").msgclass - KeyRangeDataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeDataDiskAssignment").msgclass - StreamingComputationRanges = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingComputationRanges").msgclass - StreamingApplianceSnapshotConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingApplianceSnapshotConfig").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb deleted file mode 100644 index ee47d7a44b6f..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/templates.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/dataflow/v1beta3/environment_pb' -require 'google/dataflow/v1beta3/jobs_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n\'google/dataflow/v1beta3/templates.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\"google/dataflow/v1beta3/jobs.proto\x1a\x17google/rpc/status.proto\"G\n\x1aLaunchFlexTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xe3\x02\n\rContainerSpec\x12\r\n\x05image\x18\x01 \x01(\t\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12\x32\n\x08sdk_info\x18\x03 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12T\n\x13\x64\x65\x66\x61ult_environment\x18\x04 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12+\n#image_repository_username_secret_id\x18\x05 \x01(\t\x12+\n#image_repository_password_secret_id\x18\x06 \x01(\t\x12\"\n\x1aimage_repository_cert_path\x18\x07 \x01(\t\"\xd2\x05\n\x1bLaunchFlexTemplateParameter\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12@\n\x0e\x63ontainer_spec\x18\x04 \x01(\x0b\x32&.google.dataflow.v1beta3.ContainerSpecH\x00\x12!\n\x17\x63ontainer_spec_gcs_path\x18\x05 \x01(\tH\x00\x12X\n\nparameters\x18\x02 \x03(\x0b\x32\x44.google.dataflow.v1beta3.LaunchFlexTemplateParameter.ParametersEntry\x12_\n\x0elaunch_options\x18\x06 \x03(\x0b\x32G.google.dataflow.v1beta3.LaunchFlexTemplateParameter.LaunchOptionsEntry\x12L\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12\x0e\n\x06update\x18\x08 \x01(\x08\x12p\n\x17transform_name_mappings\x18\t \x03(\x0b\x32O.google.dataflow.v1beta3.LaunchFlexTemplateParameter.TransformNameMappingsEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12LaunchOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTransformNameMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc7\x08\n\x1e\x46lexTemplateRuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_workers\x18\x02 \x01(\x05\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x1d\n\x15service_account_email\x18\x04 \x01(\t\x12\x15\n\rtemp_location\x18\x05 \x01(\t\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12q\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32Q.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0b \x01(\t\x12O\n\x10ip_configuration\x18\x0c \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\r \x01(\t\x12\x13\n\x0bworker_zone\x18\x0e \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x0f \x01(\x08\x12H\n\x0b\x66lexrs_goal\x18\x10 \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoal\x12\x18\n\x10staging_location\x18\x11 \x01(\t\x12\x1b\n\x13sdk_container_image\x18\x12 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x14 \x01(\x05\x12L\n\x15\x61utoscaling_algorithm\x18\x15 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x18\n\x10\x64ump_heap_on_oom\x18\x16 \x01(\x08\x12#\n\x1bsave_heap_dumps_to_gcs_path\x18\x17 \x01(\t\x12\x1d\n\x15launcher_machine_type\x18\x18 \x01(\t\x12.\n&enable_launcher_vm_serial_port_logging\x18\x19 \x01(\x08\x12H\n\x0estreaming_mode\x18\x1a \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x1b \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"\xa8\x01\n\x19LaunchFlexTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12N\n\x10launch_parameter\x18\x02 \x01(\x0b\x32\x34.google.dataflow.v1beta3.LaunchFlexTemplateParameter\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x05\n\x12RuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x0b \x01(\x05\x12\x13\n\x0bmax_workers\x18\x01 \x01(\x05\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x15\n\rtemp_location\x18\x04 \x01(\t\x12\"\n\x1a\x62ypass_temp_dir_validation\x18\x05 \x01(\x08\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12\x65\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32\x45.google.dataflow.v1beta3.RuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0c \x01(\t\x12O\n\x10ip_configuration\x18\x0e \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\x0f \x01(\t\x12\x13\n\x0bworker_zone\x18\x10 \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x11 \x01(\x08\x12\x14\n\x0c\x64isk_size_gb\x18\x12 \x01(\x05\x12H\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x14 \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"_\n\x1bParameterMetadataEnumOption\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf3\x03\n\x11ParameterMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thelp_text\x18\x03 \x01(\t\x12\x13\n\x0bis_optional\x18\x04 \x01(\x08\x12\x0f\n\x07regexes\x18\x05 \x03(\t\x12:\n\nparam_type\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.ParameterType\x12W\n\x0f\x63ustom_metadata\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ParameterMetadata.CustomMetadataEntry\x12\x12\n\ngroup_name\x18\x08 \x01(\t\x12\x13\n\x0bparent_name\x18\t \x01(\t\x12\x1d\n\x15parent_trigger_values\x18\n \x03(\t\x12J\n\x0c\x65num_options\x18\x0b \x03(\x0b\x32\x34.google.dataflow.v1beta3.ParameterMetadataEnumOption\x12\x15\n\rdefault_value\x18\x0c \x01(\t\x12\x11\n\thidden_ui\x18\r \x01(\x08\x1a\x35\n\x13\x43ustomMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x01\n\x10TemplateMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12>\n\nparameters\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\x12\x11\n\tstreaming\x18\x05 \x01(\x08\x12\x1e\n\x16supports_at_least_once\x18\x06 \x01(\x08\x12\x1d\n\x15supports_exactly_once\x18\x07 \x01(\x08\x12\x1e\n\x16\x64\x65\x66\x61ult_streaming_mode\x18\x08 \x01(\t\"\x98\x01\n\x07SDKInfo\x12;\n\x08language\x18\x01 \x01(\x0e\x32).google.dataflow.v1beta3.SDKInfo.Language\x12\x0f\n\x07version\x18\x02 \x01(\t\"?\n\x08Language\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x06\n\x02GO\x10\x03\x12\x08\n\x04YAML\x10\x04\"\x85\x01\n\x0fRuntimeMetadata\x12\x32\n\x08sdk_info\x18\x01 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12>\n\nparameters\x18\x02 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\"\xc6\x02\n\x1c\x43reateJobFromTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x04 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12Y\n\nparameters\x18\x03 \x03(\x0b\x32\x45.google.dataflow.v1beta3.CreateJobFromTemplateRequest.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x10\n\x08location\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc5\x01\n\x12GetTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12\x46\n\x04view\x18\x03 \x01(\x0e\x32\x38.google.dataflow.v1beta3.GetTemplateRequest.TemplateView\x12\x10\n\x08location\x18\x04 \x01(\t\"!\n\x0cTemplateView\x12\x11\n\rMETADATA_ONLY\x10\x00\x42\n\n\x08template\"\xbf\x02\n\x13GetTemplateResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12P\n\rtemplate_type\x18\x03 \x01(\x0e\x32\x39.google.dataflow.v1beta3.GetTemplateResponse.TemplateType\x12\x42\n\x10runtime_metadata\x18\x04 \x01(\x0b\x32(.google.dataflow.v1beta3.RuntimeMetadata\"1\n\x0cTemplateType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\"\xb2\x03\n\x18LaunchTemplateParameters\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12U\n\nparameters\x18\x02 \x03(\x0b\x32\x41.google.dataflow.v1beta3.LaunchTemplateParameters.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x0e\n\x06update\x18\x04 \x01(\x08\x12k\n\x16transform_name_mapping\x18\x05 \x03(\x0b\x32K.google.dataflow.v1beta3.LaunchTemplateParameters.TransformNameMappingEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x02\n\x15LaunchTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x00\x12P\n\x10\x64ynamic_template\x18\x06 \x01(\x0b\x32\x34.google.dataflow.v1beta3.DynamicTemplateLaunchParamsH\x00\x12L\n\x11launch_parameters\x18\x04 \x01(\x0b\x32\x31.google.dataflow.v1beta3.LaunchTemplateParameters\x12\x10\n\x08location\x18\x05 \x01(\tB\n\n\x08template\"C\n\x16LaunchTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xbe\x01\n\x19InvalidTemplateParameters\x12\x63\n\x14parameter_violations\x18\x01 \x03(\x0b\x32\x45.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation\x1a<\n\x12ParameterViolation\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"I\n\x1b\x44ynamicTemplateLaunchParams\x12\x10\n\x08gcs_path\x18\x01 \x01(\t\x12\x18\n\x10staging_location\x18\x02 \x01(\t*\xbd\x03\n\rParameterType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\x13\n\x0fGCS_READ_BUCKET\x10\x02\x12\x14\n\x10GCS_WRITE_BUCKET\x10\x03\x12\x11\n\rGCS_READ_FILE\x10\x04\x12\x12\n\x0eGCS_WRITE_FILE\x10\x05\x12\x13\n\x0fGCS_READ_FOLDER\x10\x06\x12\x14\n\x10GCS_WRITE_FOLDER\x10\x07\x12\x10\n\x0cPUBSUB_TOPIC\x10\x08\x12\x17\n\x13PUBSUB_SUBSCRIPTION\x10\t\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\n\x12\x17\n\x13JAVASCRIPT_UDF_FILE\x10\x0b\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x0c\x12\x10\n\x0cMACHINE_TYPE\x10\r\x12\x10\n\x0cKMS_KEY_NAME\x10\x0e\x12\x11\n\rWORKER_REGION\x10\x0f\x12\x0f\n\x0bWORKER_ZONE\x10\x10\x12\x0b\n\x07\x42OOLEAN\x10\x11\x12\x08\n\x04\x45NUM\x10\x12\x12\n\n\x06NUMBER\x10\x13\x12\x13\n\x0bKAFKA_TOPIC\x10\x14\x1a\x02\x08\x01\x12\x14\n\x10KAFKA_READ_TOPIC\x10\x15\x12\x15\n\x11KAFKA_WRITE_TOPIC\x10\x16\x32\xe0\x06\n\x10TemplatesService\x12\xdf\x01\n\x15\x43reateJobFromTemplate\x12\x35.google.dataflow.v1beta3.CreateJobFromTemplateRequest\x1a\x1c.google.dataflow.v1beta3.Job\"q\x82\xd3\xe4\x93\x02k\":/v1b3/projects/{project_id}/locations/{location}/templates:\x01*Z*\"%/v1b3/projects/{project_id}/templates:\x01*\x12\x94\x02\n\x0eLaunchTemplate\x12..google.dataflow.v1beta3.LaunchTemplateRequest\x1a/.google.dataflow.v1beta3.LaunchTemplateResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01\"A/v1b3/projects/{project_id}/locations/{location}/templates:launch:\x11launch_parametersZA\",/v1b3/projects/{project_id}/templates:launch:\x11launch_parameters\x12\xdd\x01\n\x0bGetTemplate\x12+.google.dataflow.v1beta3.GetTemplateRequest\x1a,.google.dataflow.v1beta3.GetTemplateResponse\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/templates:getZ+\x12)/v1b3/projects/{project_id}/templates:get\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute2\xdd\x02\n\x14\x46lexTemplatesService\x12\xcf\x01\n\x12LaunchFlexTemplate\x12\x32.google.dataflow.v1beta3.LaunchFlexTemplateRequest\x1a\x33.google.dataflow.v1beta3.LaunchFlexTemplateResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eTemplatesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - LaunchFlexTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateResponse").msgclass - ContainerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ContainerSpec").msgclass - LaunchFlexTemplateParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateParameter").msgclass - FlexTemplateRuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment").msgclass - LaunchFlexTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateRequest").msgclass - RuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeEnvironment").msgclass - ParameterMetadataEnumOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadataEnumOption").msgclass - ParameterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadata").msgclass - TemplateMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TemplateMetadata").msgclass - SDKInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo").msgclass - SDKInfo::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo.Language").enummodule - RuntimeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeMetadata").msgclass - CreateJobFromTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobFromTemplateRequest").msgclass - GetTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest").msgclass - GetTemplateRequest::TemplateView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest.TemplateView").enummodule - GetTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse").msgclass - GetTemplateResponse::TemplateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse.TemplateType").enummodule - LaunchTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateParameters").msgclass - LaunchTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateRequest").msgclass - LaunchTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateResponse").msgclass - InvalidTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters").msgclass - InvalidTemplateParameters::ParameterViolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation").msgclass - DynamicTemplateLaunchParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DynamicTemplateLaunchParams").msgclass - ParameterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb deleted file mode 100644 index 64389dcd989d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb +++ /dev/null @@ -1,84 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/templates.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/templates_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - # Provides a method to create Cloud Dataflow jobs from templates. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.TemplatesService' - - # Creates a Cloud Dataflow job from a template. Do not enter confidential - # information when you supply string values using the API. - # - # To create a job, we recommend using `projects.locations.templates.create` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.create` is not recommended, because your job will - # always start in `us-central1`. - rpc :CreateJobFromTemplate, ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # Launches a template. - # - # To launch a template, we recommend using - # `projects.locations.templates.launch` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.launch` is not recommended, because jobs launched - # from the template will always start in `us-central1`. - rpc :LaunchTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse - # Get the template associated with a template. - # - # To get the template, we recommend using `projects.locations.templates.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.get` is not recommended, because only - # templates that are running in `us-central1` are retrieved. - rpc :GetTemplate, ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse - end - - Stub = Service.rpc_stub_class - end - module FlexTemplatesService - # Provides a service for Flex templates. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.FlexTemplatesService' - - # Launch a job with a FlexTemplate. - rpc :LaunchFlexTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md deleted file mode 100644 index 98e2b412b7d8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Dataflow V1beta3 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb deleted file mode 100644 index 5089551e9ea4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb +++ /dev/null @@ -1,589 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb deleted file mode 100644 index a72e55d5ebec..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb +++ /dev/null @@ -1,676 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Describes the environment in which a Dataflow Job runs. - # @!attribute [rw] temp_storage_prefix - # @return [::String] - # The prefix of the resources the system should use for temporary - # storage. The system will append the suffix "/temp-\\{JOBNAME} to - # this resource prefix, where \\{JOBNAME} is the value of the - # job_name field. The resulting bucket and object prefix is used - # as the prefix of the resources used to store temporary data - # needed during the job execution. NOTE: This will override the - # value in taskrunner_settings. - # The supported resource type is: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] cluster_manager_api_service - # @return [::String] - # The type of cluster manager API to use. If unknown or - # unspecified, the service will attempt to choose a reasonable - # default. This should be in the form of the API service name, - # e.g. "compute.googleapis.com". - # @!attribute [rw] experiments - # @return [::Array<::String>] - # The list of experiments to enable. This field should be used for SDK - # related experiments and not for service related experiments. The proper - # field for service related experiments is service_options. - # @!attribute [rw] service_options - # @return [::Array<::String>] - # Optional. The list of service options to enable. This field should be used - # for service related experiments only. These experiments, when graduating to - # GA, should be replaced by dedicated fields or become default (i.e. always - # on). - # @!attribute [rw] service_kms_key_name - # @return [::String] - # Optional. If set, contains the Cloud KMS key identifier used to encrypt - # data at rest, AKA a Customer Managed Encryption Key (CMEK). - # - # Format: - # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - # @!attribute [rw] worker_pools - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerPool>] - # The worker pools. At least one "harness" worker pool must be - # specified in order for the job to have workers. - # @!attribute [rw] user_agent - # @return [::Google::Protobuf::Struct] - # Optional. A description of the process that generated the request. - # @!attribute [rw] version - # @return [::Google::Protobuf::Struct] - # A structure describing which components and their versions of the service - # are required in order to run the job. - # @!attribute [rw] dataset - # @return [::String] - # Optional. The dataset for the current project where various workflow - # related tables are stored. - # - # The supported resource type is: - # - # Google BigQuery: - # bigquery.googleapis.com/\\{dataset} - # @!attribute [rw] sdk_pipeline_options - # @return [::Google::Protobuf::Struct] - # The Cloud Dataflow SDK pipeline options specified by the user. These - # options are passed through the service and are used to recreate the - # SDK pipeline options on the worker in a language agnostic and platform - # independent way. - # @!attribute [rw] internal_experiments - # @return [::Google::Protobuf::Any] - # Experimental settings. - # @!attribute [rw] service_account_email - # @return [::String] - # Optional. Identity to run virtual machines as. Defaults to the default - # account. - # @!attribute [rw] flex_resource_scheduling_goal - # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] - # Optional. Which Flexible Resource Scheduling mode to run in. - # @!attribute [rw] worker_region - # @return [::String] - # Optional. The Compute Engine region - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1". Mutually exclusive - # with worker_zone. If neither worker_region nor worker_zone is specified, - # default to the control plane's region. - # @!attribute [rw] worker_zone - # @return [::String] - # Optional. The Compute Engine zone - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - # with worker_region. If neither worker_region nor worker_zone is specified, - # a zone in the control plane's region is chosen based on available capacity. - # @!attribute [r] shuffle_mode - # @return [::Google::Cloud::Dataflow::V1beta3::ShuffleMode] - # Output only. The shuffle mode used for the job. - # @!attribute [rw] debug_options - # @return [::Google::Cloud::Dataflow::V1beta3::DebugOptions] - # Optional. Any debugging options to be supplied to the job. - # @!attribute [r] use_streaming_engine_resource_based_billing - # @return [::Boolean] - # Output only. Whether the job uses the Streaming Engine resource-based - # billing model. - # @!attribute [rw] streaming_mode - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] - # Optional. Specifies the Streaming Engine message processing guarantees. - # Reduces cost and latency but might result in duplicate messages committed - # to storage. Designed to run simple mapping streaming ETL jobs at the lowest - # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - # @!attribute [rw] use_public_ips - # @return [::Boolean] - # Optional. True when any worker pool that uses public IPs is present. - class Environment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The packages that must be installed in order for a worker to run the - # steps of the Cloud Dataflow job that will be assigned to its worker - # pool. - # - # This is the mechanism by which the Cloud Dataflow SDK causes code to - # be loaded onto the workers. For example, the Cloud Dataflow Java SDK - # might use this to install jars containing the user's code and all of the - # various dependencies (libraries, data files, etc.) required in order - # for that code to run. - # @!attribute [rw] name - # @return [::String] - # The name of the package. - # @!attribute [rw] location - # @return [::String] - # The resource to read the package from. The supported resource type is: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket} - # bucket.storage.googleapis.com/ - class Package - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes the data disk used by a workflow job. - # @!attribute [rw] size_gb - # @return [::Integer] - # Size of disk in GB. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] disk_type - # @return [::String] - # Disk storage type, as defined by Google Compute Engine. This - # must be a disk type appropriate to the project and zone in which - # the workers will run. If unknown or unspecified, the service - # will attempt to choose a reasonable default. - # - # For example, the standard persistent disk type is a resource name - # typically ending in "pd-standard". If SSD persistent disks are - # available, the resource name typically ends with "pd-ssd". The - # actual valid values are defined the Google Compute Engine API, - # not by the Cloud Dataflow API; consult the Google Compute Engine - # documentation for more information about determining the set of - # available disk types for a particular project and zone. - # - # Google Compute Engine Disk types are local to a particular - # project in a particular zone, and so the resource name will - # typically look something like this: - # - # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - # @!attribute [rw] mount_point - # @return [::String] - # Directory in a VM where disk is mounted. - class Disk - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Provides data to pass through to the worker harness. - # @!attribute [rw] base_url - # @return [::String] - # The base URL for accessing Google Cloud APIs. - # - # When workers access Google Cloud APIs, they logically do so via - # relative URLs. If this field is specified, it supplies the base - # URL to use for resolving these relative URLs. The normative - # algorithm used is defined by RFC 1808, "Relative Uniform Resource - # Locators". - # - # If not specified, the default value is "http://www.googleapis.com/" - # @!attribute [rw] reporting_enabled - # @return [::Boolean] - # Whether to send work progress updates to the service. - # @!attribute [rw] service_path - # @return [::String] - # The Cloud Dataflow service path relative to the root URL, for example, - # "dataflow/v1b3/projects". - # @!attribute [rw] shuffle_service_path - # @return [::String] - # The Shuffle service path relative to the root URL, for example, - # "shuffle/v1beta1". - # @!attribute [rw] worker_id - # @return [::String] - # The ID of the worker running this pipeline. - # @!attribute [rw] temp_storage_prefix - # @return [::String] - # The prefix of the resources the system should use for temporary - # storage. - # - # The supported resource type is: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - class WorkerSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Taskrunner configuration settings. - # @!attribute [rw] task_user - # @return [::String] - # The UNIX user ID on the worker VM to use for tasks launched by - # taskrunner; e.g. "root". - # @!attribute [rw] task_group - # @return [::String] - # The UNIX group ID on the worker VM to use for tasks launched by - # taskrunner; e.g. "wheel". - # @!attribute [rw] oauth_scopes - # @return [::Array<::String>] - # The OAuth2 scopes to be requested by the taskrunner in order to - # access the Cloud Dataflow API. - # @!attribute [rw] base_url - # @return [::String] - # The base URL for the taskrunner to use when accessing Google Cloud APIs. - # - # When workers access Google Cloud APIs, they logically do so via - # relative URLs. If this field is specified, it supplies the base - # URL to use for resolving these relative URLs. The normative - # algorithm used is defined by RFC 1808, "Relative Uniform Resource - # Locators". - # - # If not specified, the default value is "http://www.googleapis.com/" - # @!attribute [rw] dataflow_api_version - # @return [::String] - # The API version of endpoint, e.g. "v1b3" - # @!attribute [rw] parallel_worker_settings - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerSettings] - # The settings to pass to the parallel worker harness. - # @!attribute [rw] base_task_dir - # @return [::String] - # The location on the worker for task-specific subdirectories. - # @!attribute [rw] continue_on_exception - # @return [::Boolean] - # Whether to continue taskrunner if an exception is hit. - # @!attribute [rw] log_to_serialconsole - # @return [::Boolean] - # Whether to send taskrunner log info to Google Compute Engine VM serial - # console. - # @!attribute [rw] alsologtostderr - # @return [::Boolean] - # Whether to also send taskrunner log info to stderr. - # @!attribute [rw] log_upload_location - # @return [::String] - # Indicates where to put logs. If this is not specified, the logs - # will not be uploaded. - # - # The supported resource type is: - # - # Google Cloud Storage: - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] log_dir - # @return [::String] - # The directory on the VM to store logs. - # @!attribute [rw] temp_storage_prefix - # @return [::String] - # The prefix of the resources the taskrunner should use for - # temporary storage. - # - # The supported resource type is: - # - # Google Cloud Storage: - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] harness_command - # @return [::String] - # The command to launch the worker harness. - # @!attribute [rw] workflow_file_name - # @return [::String] - # The file to store the workflow in. - # @!attribute [rw] commandlines_file_name - # @return [::String] - # The file to store preprocessing commands in. - # @!attribute [rw] vm_id - # @return [::String] - # The ID string of the VM. - # @!attribute [rw] language_hint - # @return [::String] - # The suggested backend language. - # @!attribute [rw] streaming_worker_main_class - # @return [::String] - # The streaming worker main class name. - class TaskRunnerSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for WorkerPool autoscaling. - # @!attribute [rw] algorithm - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] - # The algorithm to use for autoscaling. - # @!attribute [rw] max_num_workers - # @return [::Integer] - # The maximum number of workers to cap scaling at. - class AutoscalingSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines an SDK harness container for executing Dataflow pipelines. - # @!attribute [rw] container_image - # @return [::String] - # A docker container image that resides in Google Container Registry. - # @!attribute [rw] use_single_core_per_container - # @return [::Boolean] - # If true, recommends the Dataflow service to use only one core per SDK - # container instance with this image. If false (or unset) recommends using - # more than one core per SDK container instance with this image for - # efficiency. Note that Dataflow service may choose to override this property - # if needed. - # @!attribute [rw] environment_id - # @return [::String] - # Environment ID for the Beam runner API proto Environment that corresponds - # to the current SDK Harness. - # @!attribute [rw] capabilities - # @return [::Array<::String>] - # The set of capabilities enumerated in the above Environment proto. See also - # [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto) - class SdkHarnessContainerImage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes one particular pool of Cloud Dataflow workers to be - # instantiated by the Cloud Dataflow service in order to perform the - # computations required by a job. Note that a workflow job may use - # multiple pools, in order to match the various computational - # requirements of the various stages of the job. - # @!attribute [rw] kind - # @return [::String] - # The kind of the worker pool; currently only `harness` and `shuffle` - # are supported. - # @!attribute [rw] num_workers - # @return [::Integer] - # Number of Google Compute Engine workers in this pool needed to - # execute the job. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] packages - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Package>] - # Packages to be installed on workers. - # @!attribute [rw] default_package_set - # @return [::Google::Cloud::Dataflow::V1beta3::DefaultPackageSet] - # The default package set to install. This allows the service to - # select a default set of packages which are useful to worker - # harnesses written in a particular language. - # @!attribute [rw] machine_type - # @return [::String] - # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the - # service will attempt to choose a reasonable default. - # @!attribute [rw] teardown_policy - # @return [::Google::Cloud::Dataflow::V1beta3::TeardownPolicy] - # Sets the policy for determining when to turndown worker pool. - # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and - # `TEARDOWN_NEVER`. - # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether - # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down - # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn - # down. - # - # If the workers are not torn down by the service, they will - # continue to run and use Google Compute Engine VM resources in the - # user's project until they are explicitly terminated by the user. - # Because of this, Google recommends using the `TEARDOWN_ALWAYS` - # policy except for small, manually supervised test jobs. - # - # If unknown or unspecified, the service will attempt to choose a reasonable - # default. - # @!attribute [rw] disk_size_gb - # @return [::Integer] - # Size of root disk for VMs, in GB. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] disk_type - # @return [::String] - # Type of root disk for VMs. If empty or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] disk_provisioned_iops - # @return [::Integer] - # Optional. IOPS provisioned for the root disk for VMs. - # @!attribute [rw] disk_provisioned_throughput_mibps - # @return [::Integer] - # Optional. Throughput provisioned for the root disk for VMs. - # @!attribute [rw] disk_source_image - # @return [::String] - # Fully qualified source image for disks. - # @!attribute [rw] zone - # @return [::String] - # Zone to run the worker pools in. If empty or unspecified, the service - # will attempt to choose a reasonable default. - # @!attribute [rw] taskrunner_settings - # @return [::Google::Cloud::Dataflow::V1beta3::TaskRunnerSettings] - # Settings passed through to Google Compute Engine workers when - # using the standard Dataflow task runner. Users should ignore - # this field. - # @!attribute [rw] on_host_maintenance - # @return [::String] - # The action to take on host maintenance, as defined by the Google - # Compute Engine API. - # @!attribute [rw] data_disks - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Disk>] - # Data disks that are used by a VM in this workflow. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Map{::String => ::String}] - # Metadata to set on the Google Compute Engine VMs. - # @!attribute [rw] autoscaling_settings - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingSettings] - # Settings for autoscaling of this WorkerPool. - # @!attribute [rw] pool_args - # @return [::Google::Protobuf::Any] - # Extra arguments for this worker pool. - # @!attribute [rw] network - # @return [::String] - # Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # @!attribute [rw] subnetwork - # @return [::String] - # Subnetwork to which VMs will be assigned, if desired. Expected to be of - # the form "regions/REGION/subnetworks/SUBNETWORK". - # @!attribute [rw] worker_harness_container_image - # @return [::String] - # Required. Docker container image that executes the Cloud Dataflow worker - # harness, residing in Google Container Registry. - # - # Deprecated for the Fn API path. Use sdk_harness_container_images instead. - # @!attribute [rw] num_threads_per_worker - # @return [::Integer] - # The number of threads per worker harness. If empty or unspecified, the - # service will choose a number of threads (according to the number of cores - # on the selected machine type for batch, or 1 by convention for streaming). - # @!attribute [rw] ip_configuration - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] - # Configuration for VM IPs. - # @!attribute [rw] sdk_harness_container_images - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkHarnessContainerImage>] - # Set of SDK harness containers needed to execute this pipeline. This will - # only be set in the Fn API path. For non-cross-language pipelines this - # should have only one entry. Cross-language pipelines will have two or more - # entries. - class WorkerPool - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class MetadataEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configuration options for sampling elements. - # @!attribute [rw] behaviors - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior>] - # List of given sampling behaviors to enable. For example, specifying - # behaviors = [ALWAYS_ON] samples in-flight elements but does not sample - # exceptions. Can be used to specify multiple behaviors like, - # behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and - # exception sampling. - # - # If DISABLED is in the list, then sampling will be disabled and ignore the - # other given behaviors. - # - # Ordering does not matter. - class DataSamplingConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The following enum defines what to sample for a running job. - module DataSamplingBehavior - # If given, has no effect on sampling behavior. Used as an unknown or unset - # sentinel value. - DATA_SAMPLING_BEHAVIOR_UNSPECIFIED = 0 - - # When given, disables element sampling. Has same behavior as not setting - # the behavior. - DISABLED = 1 - - # When given, enables sampling in-flight from all PCollections. - ALWAYS_ON = 2 - - # When given, enables sampling input elements when a user-defined DoFn - # causes an exception. - EXCEPTIONS = 3 - end - end - - # Describes any options that have an effect on the debugging of pipelines. - # @!attribute [rw] enable_hot_key_logging - # @return [::Boolean] - # Optional. When true, enables the logging of the literal hot key to the - # user's Cloud Logging. - # @!attribute [rw] data_sampling - # @return [::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig] - # Configuration options for sampling elements from a running pipeline. - class DebugOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Specifies the processing model used by a - # [google.dataflow.v1beta3.Job], which determines the way the Job is - # managed by the Cloud Dataflow service (how workers are scheduled, how - # inputs are sharded, etc). - module JobType - # The type of the job is unspecified, or unknown. - JOB_TYPE_UNKNOWN = 0 - - # A batch job with a well-defined end point: data is read, data is - # processed, data is written, and the job is done. - JOB_TYPE_BATCH = 1 - - # A continuously streaming job with no end: data is read, - # processed, and written continuously. - JOB_TYPE_STREAMING = 2 - end - - # Specifies the resource to optimize for in Flexible Resource Scheduling. - module FlexResourceSchedulingGoal - # Run in the default mode. - FLEXRS_UNSPECIFIED = 0 - - # Optimize for lower execution time. - FLEXRS_SPEED_OPTIMIZED = 1 - - # Optimize for lower cost. - FLEXRS_COST_OPTIMIZED = 2 - end - - # Specifies what happens to a resource when a Cloud Dataflow - # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job} has completed. - module TeardownPolicy - # The teardown policy isn't specified, or is unknown. - TEARDOWN_POLICY_UNKNOWN = 0 - - # Always teardown the resource. - TEARDOWN_ALWAYS = 1 - - # Teardown the resource on success. This is useful for debugging - # failures. - TEARDOWN_ON_SUCCESS = 2 - - # Never teardown the resource. This is useful for debugging and - # development. - TEARDOWN_NEVER = 3 - end - - # The default set of packages to be staged on a pool of workers. - module DefaultPackageSet - # The default set of packages to stage is unknown, or unspecified. - DEFAULT_PACKAGE_SET_UNKNOWN = 0 - - # Indicates that no packages should be staged at the worker unless - # explicitly specified by the job. - DEFAULT_PACKAGE_SET_NONE = 1 - - # Stage packages typically useful to workers written in Java. - DEFAULT_PACKAGE_SET_JAVA = 2 - - # Stage packages typically useful to workers written in Python. - DEFAULT_PACKAGE_SET_PYTHON = 3 - end - - # Specifies the algorithm used to determine the number of worker - # processes to run at any given point in time, based on the amount of - # data left to process, the number of workers, and how quickly - # existing workers are processing data. - module AutoscalingAlgorithm - # The algorithm is unknown, or unspecified. - AUTOSCALING_ALGORITHM_UNKNOWN = 0 - - # Disable autoscaling. - AUTOSCALING_ALGORITHM_NONE = 1 - - # Increase worker count over time to reduce job execution time. - AUTOSCALING_ALGORITHM_BASIC = 2 - end - - # Specifies how to allocate IP addresses to worker machines. You can also use - # [pipeline - # options](https://cloud.google.com/dataflow/docs/reference/pipeline-options#security_and_networking) - # to specify whether Dataflow workers use external IP addresses. - module WorkerIPAddressConfiguration - # The configuration is unknown, or unspecified. - WORKER_IP_UNSPECIFIED = 0 - - # Workers should have public IP addresses. - WORKER_IP_PUBLIC = 1 - - # Workers should have private IP addresses. - WORKER_IP_PRIVATE = 2 - end - - # Specifies the shuffle mode used by a - # [google.dataflow.v1beta3.Job], which determines the approach data is shuffled - # during processing. More details in: - # https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle - module ShuffleMode - # Shuffle mode information is not available. - SHUFFLE_MODE_UNSPECIFIED = 0 - - # Shuffle is done on the worker VMs. - VM_BASED = 1 - - # Shuffle is done on the service side. - SERVICE_BASED = 2 - end - - # Specifies the Streaming Engine message processing guarantees. Reduces cost - # and latency but might result in duplicate messages written to storage. - # Designed to run simple mapping streaming ETL jobs at the lowest cost. - # For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - module StreamingMode - # Run in the default mode. - STREAMING_MODE_UNSPECIFIED = 0 - - # In this mode, message deduplication is performed against persistent state - # to make sure each message is processed and committed to storage exactly - # once. - STREAMING_MODE_EXACTLY_ONCE = 1 - - # Message deduplication is not performed. Messages might be processed - # multiple times, and the results are applied multiple times. - # Note: Setting this value also enables Streaming Engine and - # Streaming Engine resource-based billing. - STREAMING_MODE_AT_LEAST_ONCE = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb deleted file mode 100644 index e9900a0a2b40..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb +++ /dev/null @@ -1,1100 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Defines a job to be run by the Cloud Dataflow service. Do not enter - # confidential information when you supply string values using the API. - # @!attribute [rw] id - # @return [::String] - # The unique ID of this job. - # - # This field is set by the Dataflow service when the job is - # created, and is immutable for the life of the job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Google Cloud project that the job belongs to. - # @!attribute [rw] name - # @return [::String] - # Optional. The user-specified Dataflow job name. - # - # Only one active job with a given name can exist in a project within one - # region at - # any given time. Jobs in different regions can have the same name. - # If a caller attempts to create a job with the same - # name as an active job that already exists, the attempt returns the - # existing job. - # - # The name must match the regular expression - # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - # @!attribute [rw] type - # @return [::Google::Cloud::Dataflow::V1beta3::JobType] - # Optional. The type of Dataflow job. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::Environment] - # Optional. The environment for the job. - # @!attribute [rw] steps - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Step>] - # Exactly one of step or steps_location should be specified. - # - # The top-level steps that constitute the entire job. Only retrieved with - # JOB_VIEW_ALL. - # @!attribute [rw] steps_location - # @return [::String] - # The Cloud Storage location where the steps are stored. - # @!attribute [rw] current_state - # @return [::Google::Cloud::Dataflow::V1beta3::JobState] - # The current state of the job. - # - # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - # specified. - # - # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - # terminal state. After a job has reached a terminal state, no - # further state updates may be made. - # - # This field might be mutated by the Dataflow service; - # callers cannot mutate it. - # @!attribute [rw] current_state_time - # @return [::Google::Protobuf::Timestamp] - # The timestamp associated with the current state. - # @!attribute [rw] requested_state - # @return [::Google::Cloud::Dataflow::V1beta3::JobState] - # The job's requested state. Applies to `UpdateJob` requests. - # - # Set `requested_state` with `UpdateJob` requests to switch between the - # states `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`. You can also use - # `UpdateJob` requests to change a job's - # state from `JOB_STATE_RUNNING` to `JOB_STATE_CANCELLED`, - # `JOB_STATE_DONE`, or `JOB_STATE_DRAINED`. These states irrevocably - # terminate the job if it hasn't already reached a terminal state. - # - # This field has no effect on `CreateJob` requests. - # @!attribute [rw] execution_info - # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionInfo] - # Deprecated. - # @!attribute [rw] create_time - # @return [::Google::Protobuf::Timestamp] - # The timestamp when the job was initially created. Immutable and set by the - # Cloud Dataflow service. - # @!attribute [rw] replace_job_id - # @return [::String] - # If this job is an update of an existing job, this field is the job ID - # of the job it replaced. - # - # When sending a `CreateJobRequest`, you can update a job by specifying it - # here. The job named here is stopped, and its intermediate state is - # transferred to this job. - # @!attribute [rw] transform_name_mapping - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The map of transform name prefixes of the job to be replaced to - # the corresponding name prefixes of the new job. - # @!attribute [rw] client_request_id - # @return [::String] - # The client's unique identifier of the job, re-used across retried attempts. - # If this field is set, the service will ensure its uniqueness. - # The request to create a job will fail if the service has knowledge of a - # previously submitted job with the same client's ID and job name. - # The caller may use this field to ensure idempotence of job - # creation across retried attempts to create a job. - # By default, the field is empty and, in that case, the service ignores it. - # @!attribute [rw] replaced_by_job_id - # @return [::String] - # If another job is an update of this job (and thus, this job is in - # `JOB_STATE_UPDATED`), this field contains the ID of that job. - # @!attribute [rw] temp_files - # @return [::Array<::String>] - # A set of files the system should be aware of that are used - # for temporary storage. These temporary files will be - # removed on job completion. - # No duplicates are allowed. - # No file patterns are supported. - # - # The supported files are: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # User-defined labels for this job. - # - # The labels map can contain no more than 64 entries. Entries of the labels - # map are UTF8 strings that comply with the following restrictions: - # - # * Keys must conform to regexp: [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62} - # * Values must conform to regexp: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63} - # * Both keys and values are additionally constrained to be <= 128 bytes in - # size. - # @!attribute [rw] location - # @return [::String] - # Optional. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @!attribute [rw] pipeline_description - # @return [::Google::Cloud::Dataflow::V1beta3::PipelineDescription] - # Preliminary field: The format of this data may change at any time. - # A description of the user pipeline and stages through which it is executed. - # Created by Cloud Dataflow service. Only retrieved with - # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - # @!attribute [rw] stage_states - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageState>] - # This field may be mutated by the Cloud Dataflow service; - # callers cannot mutate it. - # @!attribute [rw] job_metadata - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetadata] - # This field is populated by the Dataflow service to support filtering jobs - # by the metadata values provided here. Populated for ListJobs and all GetJob - # views SUMMARY and higher. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). - # Flexible resource scheduling jobs are started with some delay after job - # creation, so start_time is unset before start and is updated when the - # job is started by the Cloud Dataflow service. For other jobs, start_time - # always equals to create_time and is immutable and set by the Cloud Dataflow - # service. - # @!attribute [rw] created_from_snapshot_id - # @return [::String] - # If this is specified, the job's initial state is populated from the given - # snapshot. - # @!attribute [rw] satisfies_pzs - # @return [::Boolean] - # Reserved for future use. This field is set only in responses from the - # server; it is ignored if it is set in any requests. - # @!attribute [rw] runtime_updatable_params - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeUpdatableParams] - # This field may ONLY be modified at runtime using the projects.jobs.update - # method to adjust job behavior. This field has no effect when specified at - # job creation. - # @!attribute [r] satisfies_pzi - # @return [::Boolean] - # Output only. Reserved for future use. This field is set only in responses - # from the server; it is ignored if it is set in any requests. - # @!attribute [r] service_resources - # @return [::Google::Cloud::Dataflow::V1beta3::ServiceResources] - # Output only. Resources used by the Dataflow Service to run the job. - # @!attribute [r] pausable - # @return [::Boolean] - # Output only. Indicates whether the job can be paused. - class Job - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TransformNameMappingEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Resources used by the Dataflow Service to run the job. - # @!attribute [r] zones - # @return [::Array<::String>] - # Output only. List of Cloud Zones being used by the Dataflow Service for - # this job. Example: us-central1-c - class ServiceResources - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Additional job parameters that can only be updated during runtime using the - # projects.jobs.update method. These fields have no effect when specified - # during job creation. - # @!attribute [rw] max_num_workers - # @return [::Integer] - # The maximum number of workers to cap autoscaling at. This field is - # currently only supported for Streaming Engine jobs. - # @!attribute [rw] min_num_workers - # @return [::Integer] - # The minimum number of workers to scale down to. This field is currently - # only supported for Streaming Engine jobs. - # @!attribute [rw] worker_utilization_hint - # @return [::Float] - # Target worker utilization, compared against the aggregate utilization of - # the worker pool by autoscaler, to determine upscaling and downscaling when - # absent other constraints such as backlog. - # For more information, see - # [Update an existing - # pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline). - # @!attribute [rw] acceptable_backlog_duration - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Protobuf::Duration] - # Optional. Deprecated: Use `autoscaling_tier` instead. - # The backlog threshold duration in seconds for autoscaling. Value must be - # non-negative. - # @!attribute [rw] autoscaling_tier - # @return [::String] - # Optional. The backlog threshold tier for autoscaling. Value must be one of - # "low-latency", "medium-latency", or "high-latency". - class RuntimeUpdatableParams - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Datastore connector used by the job. - # @!attribute [rw] namespace - # @return [::String] - # Namespace used in the connection. - # @!attribute [rw] project_id - # @return [::String] - # ProjectId accessed in the connection. - class DatastoreIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Pub/Sub connector used by the job. - # @!attribute [rw] topic - # @return [::String] - # Topic accessed in the connection. - # @!attribute [rw] subscription - # @return [::String] - # Subscription used in the connection. - class PubSubIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a File connector used by the job. - # @!attribute [rw] file_pattern - # @return [::String] - # File Pattern used to access files by the connector. - class FileIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Cloud Bigtable connector used by the job. - # @!attribute [rw] project_id - # @return [::String] - # ProjectId accessed in the connection. - # @!attribute [rw] instance_id - # @return [::String] - # InstanceId accessed in the connection. - # @!attribute [rw] table_id - # @return [::String] - # TableId accessed in the connection. - class BigTableIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a BigQuery connector used by the job. - # @!attribute [rw] table - # @return [::String] - # Table accessed in the connection. - # @!attribute [rw] dataset - # @return [::String] - # Dataset accessed in the connection. - # @!attribute [rw] project_id - # @return [::String] - # Project accessed in the connection. - # @!attribute [rw] query - # @return [::String] - # Query used to access data in the connection. - class BigQueryIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Spanner connector used by the job. - # @!attribute [rw] project_id - # @return [::String] - # ProjectId accessed in the connection. - # @!attribute [rw] instance_id - # @return [::String] - # InstanceId accessed in the connection. - # @!attribute [rw] database_id - # @return [::String] - # DatabaseId accessed in the connection. - class SpannerIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The version of the SDK used to run the job. - # @!attribute [rw] version - # @return [::String] - # The version of the SDK used to run the job. - # @!attribute [rw] version_display_name - # @return [::String] - # A readable string describing the version of the SDK. - # @!attribute [rw] sdk_support_status - # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion::SdkSupportStatus] - # The support status for this SDK version. - # @!attribute [r] bugs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkBug>] - # Output only. Known bugs found in this SDK version. - class SdkVersion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The support status of the SDK used to run the job. - module SdkSupportStatus - # Cloud Dataflow is unaware of this version. - UNKNOWN = 0 - - # This is a known version of an SDK, and is supported. - SUPPORTED = 1 - - # A newer version of the SDK family exists, and an update is recommended. - STALE = 2 - - # This version of the SDK is deprecated and will eventually be - # unsupported. - DEPRECATED = 3 - - # Support for this SDK version has ended and it should no longer be used. - UNSUPPORTED = 4 - end - end - - # A bug found in the Dataflow SDK. - # @!attribute [r] type - # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Type] - # Output only. Describes the impact of this SDK bug. - # @!attribute [r] severity - # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Severity] - # Output only. How severe the SDK bug is. - # @!attribute [r] uri - # @return [::String] - # Output only. Link to more information on the bug. - class SdkBug - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Nature of the issue, ordered from least severe to most. Other bug types may - # be added to this list in the future. - module Type - # Unknown issue with this SDK. - TYPE_UNSPECIFIED = 0 - - # Catch-all for SDK bugs that don't fit in the below categories. - GENERAL = 1 - - # Using this version of the SDK may result in degraded performance. - PERFORMANCE = 2 - - # Using this version of the SDK may cause data loss. - DATALOSS = 3 - end - - # Indicates the severity of the bug. Other severities may be added to this - # list in the future. - module Severity - # A bug of unknown severity. - SEVERITY_UNSPECIFIED = 0 - - # A minor bug that that may reduce reliability or performance for some - # jobs. Impact will be minimal or non-existent for most jobs. - NOTICE = 1 - - # A bug that has some likelihood of causing performance degradation, data - # loss, or job failures. - WARNING = 2 - - # A bug with extremely significant impact. Jobs may fail erroneously, - # performance may be severely degraded, and data loss may be very likely. - SEVERE = 3 - end - end - - # Metadata available primarily for filtering jobs. Will be included in the - # ListJob response and Job SUMMARY view. - # @!attribute [rw] sdk_version - # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion] - # The SDK version used to run the job. - # @!attribute [rw] spanner_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SpannerIODetails>] - # Identification of a Spanner source used in the Dataflow job. - # @!attribute [rw] bigquery_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigQueryIODetails>] - # Identification of a BigQuery source used in the Dataflow job. - # @!attribute [rw] big_table_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigTableIODetails>] - # Identification of a Cloud Bigtable source used in the Dataflow job. - # @!attribute [rw] pubsub_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubSubIODetails>] - # Identification of a Pub/Sub source used in the Dataflow job. - # @!attribute [rw] file_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FileIODetails>] - # Identification of a File source used in the Dataflow job. - # @!attribute [rw] datastore_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DatastoreIODetails>] - # Identification of a Datastore source used in the Dataflow job. - # @!attribute [rw] user_display_properties - # @return [::Google::Protobuf::Map{::String => ::String}] - # List of display properties to help UI filter jobs. - class JobMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class UserDisplayPropertiesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A message describing the state of a particular execution stage. - # @!attribute [rw] execution_stage_name - # @return [::String] - # The name of the execution stage. - # @!attribute [rw] execution_stage_state - # @return [::Google::Cloud::Dataflow::V1beta3::JobState] - # Executions stage states allow the same set of values as JobState. - # @!attribute [rw] current_state_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the stage transitioned to this state. - class ExecutionStageState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A descriptive representation of submitted pipeline as well as the executed - # form. This data is provided by the Dataflow service for ease of visualizing - # the pipeline and interpreting Dataflow provided metrics. - # @!attribute [rw] original_pipeline_transform - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::TransformSummary>] - # Description of each transform in the pipeline and collections between them. - # @!attribute [rw] execution_pipeline_stage - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary>] - # Description of each stage of execution of the pipeline. - # @!attribute [rw] display_data - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] - # Pipeline level display data. - # @!attribute [rw] step_names_hash - # @return [::String] - # A hash value of the submitted pipeline portable graph step names if exists. - class PipelineDescription - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of the type, names/ids, and input/outputs for a transform. - # @!attribute [rw] kind - # @return [::Google::Cloud::Dataflow::V1beta3::KindType] - # Type of transform. - # @!attribute [rw] id - # @return [::String] - # SDK generated id of this transform instance. - # @!attribute [rw] name - # @return [::String] - # User provided name for this transform instance. - # @!attribute [rw] display_data - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] - # Transform-specific display data. - # @!attribute [rw] output_collection_name - # @return [::Array<::String>] - # User names for all collection outputs to this transform. - # @!attribute [rw] input_collection_name - # @return [::Array<::String>] - # User names for all collection inputs to this transform. - class TransformSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of the composing transforms, names/ids, and input/outputs of a - # stage of execution. Some composing transforms and sources may have been - # generated by the Dataflow service during execution planning. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this stage. - # @!attribute [rw] id - # @return [::String] - # Dataflow service generated id for this stage. - # @!attribute [rw] kind - # @return [::Google::Cloud::Dataflow::V1beta3::KindType] - # Type of transform this stage is executing. - # @!attribute [rw] input_source - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] - # Input sources for this stage. - # @!attribute [rw] output_source - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] - # Output sources for this stage. - # @!attribute [rw] prerequisite_stage - # @return [::Array<::String>] - # Other stages that must complete before this stage can run. - # @!attribute [rw] component_transform - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentTransform>] - # Transforms that comprise this execution stage. - # @!attribute [rw] component_source - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentSource>] - # Collections produced and consumed by component transforms of this stage. - class ExecutionStageSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Description of an input or output of an execution stage. - # @!attribute [rw] user_name - # @return [::String] - # Human-readable name for this source; may be user or system generated. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this source. - # @!attribute [rw] original_transform_or_collection - # @return [::String] - # User name for the original user transform or collection with which this - # source is most closely associated. - # @!attribute [rw] size_bytes - # @return [::Integer] - # Size of the source, if measurable. - class StageSource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of a transform executed as part of an execution stage. - # @!attribute [rw] user_name - # @return [::String] - # Human-readable name for this transform; may be user or system generated. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this source. - # @!attribute [rw] original_transform - # @return [::String] - # User name for the original user transform with which this transform is - # most closely associated. - class ComponentTransform - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of an interstitial value between transforms in an execution - # stage. - # @!attribute [rw] user_name - # @return [::String] - # Human-readable name for this transform; may be user or system generated. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this source. - # @!attribute [rw] original_transform_or_collection - # @return [::String] - # User name for the original user transform or collection with which this - # source is most closely associated. - class ComponentSource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Data provided with a pipeline or transform to provide descriptive info. - # @!attribute [rw] key - # @return [::String] - # The key identifying the display data. - # This is intended to be used as a label for the display data - # when viewed in a dax monitoring system. - # @!attribute [rw] namespace - # @return [::String] - # The namespace for the key. This is usually a class name or programming - # language namespace (i.e. python module) which defines the display data. - # This allows a dax monitoring system to specially handle the data - # and perform custom rendering. - # @!attribute [rw] str_value - # @return [::String] - # Contains value if the data is of string type. - # - # Note: The following fields are mutually exclusive: `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_value - # @return [::Integer] - # Contains value if the data is of int64 type. - # - # Note: The following fields are mutually exclusive: `int64_value`, `str_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float_value - # @return [::Float] - # Contains value if the data is of float type. - # - # Note: The following fields are mutually exclusive: `float_value`, `str_value`, `int64_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] java_class_value - # @return [::String] - # Contains value if the data is of java class type. - # - # Note: The following fields are mutually exclusive: `java_class_value`, `str_value`, `int64_value`, `float_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_value - # @return [::Google::Protobuf::Timestamp] - # Contains value if the data is of timestamp type. - # - # Note: The following fields are mutually exclusive: `timestamp_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] duration_value - # @return [::Google::Protobuf::Duration] - # Contains value if the data is of duration type. - # - # Note: The following fields are mutually exclusive: `duration_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_value - # @return [::Boolean] - # Contains value if the data is of a boolean type. - # - # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] short_str_value - # @return [::String] - # A possible additional shorter value to display. - # For example a java_class_name_value of com.mypackage.MyDoFn - # will be stored with MyDoFn as the short_str_value and - # com.mypackage.MyDoFn as the java_class_name value. - # short_str_value can be displayed and java_class_name_value - # will be displayed as a tooltip. - # @!attribute [rw] url - # @return [::String] - # An optional full URL. - # @!attribute [rw] label - # @return [::String] - # An optional label to display in a dax UI for the element. - class DisplayData - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a particular step within a Cloud Dataflow job. - # - # A job consists of multiple steps, each of which performs some - # specific operation as part of the overall job. Data is typically - # passed from one step to another as part of the job. - # - # **Note:** The properties of this object are not stable and might change. - # - # Here's an example of a sequence of steps which together implement a - # Map-Reduce job: - # - # * Read a collection of data from some source, parsing the - # collection's elements. - # - # * Validate the elements. - # - # * Apply a user-defined function to map each element to some value - # and extract an element-specific key value. - # - # * Group elements with the same key into a single element with - # that key, transforming a multiply-keyed collection into a - # uniquely-keyed collection. - # - # * Write the elements out to some data sink. - # - # Note that the Cloud Dataflow service may be used to run many different - # types of jobs, not just Map-Reduce. - # @!attribute [rw] kind - # @return [::String] - # The kind of step in the Cloud Dataflow job. - # @!attribute [rw] name - # @return [::String] - # The name that identifies the step. This must be unique for each - # step with respect to all other steps in the Cloud Dataflow job. - # @!attribute [rw] properties - # @return [::Google::Protobuf::Struct] - # Named properties associated with the step. Each kind of - # predefined step has its own required set of properties. - # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - class Step - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Additional information about how a Cloud Dataflow job will be executed that - # isn't contained in the submitted job. - # @!attribute [rw] stages - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo}] - # A mapping from each stage to the information about that stage. - class JobExecutionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo] - class StagesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Contains information about how a particular - # {::Google::Cloud::Dataflow::V1beta3::Step google.dataflow.v1beta3.Step} will be - # executed. - # @!attribute [rw] step_name - # @return [::Array<::String>] - # The steps associated with the execution stage. - # Note that stages may have several steps, and that a given step - # might be run by more than one stage. - class JobExecutionStageInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to create a Cloud Dataflow job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The job to create. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @!attribute [rw] replace_job_id - # @return [::String] - # Deprecated. This field is now in the Job message. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - class CreateJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get the state of a Cloud Dataflow job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job_id - # @return [::String] - # The job ID. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - class GetJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to update a Cloud Dataflow job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job_id - # @return [::String] - # The job ID. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The updated job. - # Only the job state is updatable; other fields will be ignored. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # The list of fields to update relative to Job. If empty, only - # RequestedJobState will be considered for update. If the FieldMask is not - # empty and RequestedJobState is none/empty, The fields specified in the - # update mask will be the only ones considered for update. If both - # RequestedJobState and update_mask are specified, an error will be returned - # as we cannot update both state and mask. - class UpdateJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to list Cloud Dataflow jobs. - # @!attribute [rw] filter - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @!attribute [rw] project_id - # @return [::String] - # The project which owns the jobs. - # @!attribute [rw] view - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @!attribute [rw] page_size - # @return [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @!attribute [rw] page_token - # @return [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @!attribute [rw] name - # @return [::String] - # Optional. The job name. - class ListJobsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # This field filters out and returns jobs in the specified job state. The - # order of data returned is determined by the filter used, and is subject to - # change. - module Filter - # The filter isn't specified, or is unknown. This returns all jobs ordered - # on descending `JobUuid`. - UNKNOWN = 0 - - # Returns all running jobs first ordered on creation timestamp, then - # returns all terminated jobs ordered on the termination timestamp. - ALL = 1 - - # Filters the jobs that have a terminated state, ordered on the - # termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, - # `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc. - TERMINATED = 2 - - # Filters the jobs that are running ordered on the creation timestamp. - ACTIVE = 3 - end - end - - # Indicates which [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed - # to respond to a request for data. - # @!attribute [rw] name - # @return [::String] - # The name of the [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # failed to respond. - class FailedLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response to a request to list Cloud Dataflow jobs in a project. This might - # be a partial response, depending on the page size in the ListJobsRequest. - # However, if the project does not have any jobs, an instance of - # ListJobsResponse is not returned and the requests's response - # body is empty {}. - # @!attribute [rw] jobs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Job>] - # A subset of the requested job information. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if there may be more results than fit in this response. - # @!attribute [rw] failed_location - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FailedLocation>] - # Zero or more messages describing the [regional endpoints] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # failed to respond. - class ListJobsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to create a snapshot of a job. - # @!attribute [rw] project_id - # @return [::String] - # The project which owns the job to be snapshotted. - # @!attribute [rw] job_id - # @return [::String] - # The job to be snapshotted. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # TTL for the snapshot. - # @!attribute [rw] location - # @return [::String] - # The location that contains this job. - # @!attribute [rw] snapshot_sources - # @return [::Boolean] - # If true, perform snapshots for sources which support this. - # @!attribute [rw] description - # @return [::String] - # User specified description of the snapshot. Maybe empty. - class SnapshotJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to check is active jobs exists for a project - # @!attribute [rw] project_id - # @return [::String] - # The project which owns the jobs. - class CheckActiveJobsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response for CheckActiveJobsRequest. - # @!attribute [rw] active_jobs_exist - # @return [::Boolean] - # If True, active jobs exists for project. False otherwise. - class CheckActiveJobsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Type of transform or stage operation. - module KindType - # Unrecognized transform type. - UNKNOWN_KIND = 0 - - # ParDo transform. - PAR_DO_KIND = 1 - - # Group By Key transform. - GROUP_BY_KEY_KIND = 2 - - # Flatten transform. - FLATTEN_KIND = 3 - - # Read transform. - READ_KIND = 4 - - # Write transform. - WRITE_KIND = 5 - - # Constructs from a constant value, such as with Create.of. - CONSTANT_KIND = 6 - - # Creates a Singleton view of a collection. - SINGLETON_KIND = 7 - - # Opening or closing a shuffle session, often as part of a GroupByKey. - SHUFFLE_KIND = 8 - end - - # Describes the overall state of a - # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job}. - module JobState - # The job's run state isn't specified. - JOB_STATE_UNKNOWN = 0 - - # `JOB_STATE_STOPPED` indicates that the job has not - # yet started to run. - JOB_STATE_STOPPED = 1 - - # `JOB_STATE_RUNNING` indicates that the job is currently running. - JOB_STATE_RUNNING = 2 - - # `JOB_STATE_DONE` indicates that the job has successfully completed. - # This is a terminal job state. This state may be set by the Cloud Dataflow - # service, as a transition from `JOB_STATE_RUNNING`. It may also be set via a - # Cloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal - # state. - JOB_STATE_DONE = 3 - - # `JOB_STATE_FAILED` indicates that the job has failed. This is a - # terminal job state. This state may only be set by the Cloud Dataflow - # service, and only as a transition from `JOB_STATE_RUNNING`. - JOB_STATE_FAILED = 4 - - # `JOB_STATE_CANCELLED` indicates that the job has been explicitly - # cancelled. This is a terminal job state. This state may only be - # set via a Cloud Dataflow `UpdateJob` call, and only if the job has not - # yet reached another terminal state. - JOB_STATE_CANCELLED = 5 - - # `JOB_STATE_UPDATED` indicates that the job was successfully updated, - # meaning that this job was stopped and another job was started, inheriting - # state from this one. This is a terminal job state. This state may only be - # set by the Cloud Dataflow service, and only as a transition from - # `JOB_STATE_RUNNING`. - JOB_STATE_UPDATED = 6 - - # `JOB_STATE_DRAINING` indicates that the job is in the process of draining. - # A draining job has stopped pulling from its input sources and is processing - # any data that remains in-flight. This state may be set via a Cloud Dataflow - # `UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs - # that are draining may only transition to `JOB_STATE_DRAINED`, - # `JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`. - JOB_STATE_DRAINING = 7 - - # `JOB_STATE_DRAINED` indicates that the job has been drained. - # A drained job terminated by stopping pulling from its input sources and - # processing any data that remained in-flight when draining was requested. - # This state is a terminal state, may only be set by the Cloud Dataflow - # service, and only as a transition from `JOB_STATE_DRAINING`. - JOB_STATE_DRAINED = 8 - - # `JOB_STATE_PENDING` indicates that the job has been created but is not yet - # running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, - # or `JOB_STATE_FAILED`. - JOB_STATE_PENDING = 9 - - # `JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled - # and is in the process of stopping. Jobs that are cancelling may only - # transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`. - JOB_STATE_CANCELLING = 10 - - # `JOB_STATE_QUEUED` indicates that the job has been created but is being - # delayed until launch. Jobs that are queued may only transition to - # `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`. - JOB_STATE_QUEUED = 11 - - # `JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated - # resources are currently being cleaned up after a successful run. - # Currently, this is an opt-in feature, please reach out to Cloud support - # team if you are interested. - JOB_STATE_RESOURCE_CLEANING_UP = 12 - - # `JOB_STATE_PAUSING` is not implemented yet. - JOB_STATE_PAUSING = 13 - - # `JOB_STATE_PAUSED` is not implemented yet. - JOB_STATE_PAUSED = 14 - end - - # Selector for how much information is returned in Job responses. - module JobView - # The job view to return isn't specified, or is unknown. - # Responses will contain at least the `JOB_VIEW_SUMMARY` information, - # and may contain additional information. - JOB_VIEW_UNKNOWN = 0 - - # Request summary information only: - # Project ID, Job ID, job name, job type, job status, start/end time, - # and Cloud SDK version details. - JOB_VIEW_SUMMARY = 1 - - # Request all information available for this job. When the job is in - # `JOB_STATE_PENDING`, the job has been created but is not yet running, and - # not all job information is available. For complete - # job information, wait until the job in is `JOB_STATE_RUNNING`. For more - # information, see - # [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate). - JOB_VIEW_ALL = 2 - - # Request summary info and limited job description data for steps, labels and - # environment. - JOB_VIEW_DESCRIPTION = 3 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb deleted file mode 100644 index 726654a43823..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb +++ /dev/null @@ -1,225 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # A particular message pertaining to a Dataflow job. - # @!attribute [rw] id - # @return [::String] - # Deprecated. - # @!attribute [rw] time - # @return [::Google::Protobuf::Timestamp] - # The timestamp of the message. - # @!attribute [rw] message_text - # @return [::String] - # The text of the message. - # @!attribute [rw] message_importance - # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Importance level of the message. - class JobMessage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A rich message format, including a human readable string, a key for - # identifying the message, and structured data associated with the message for - # programmatic consumption. - # @!attribute [rw] message_text - # @return [::String] - # Human-readable version of message. - # @!attribute [rw] message_key - # @return [::String] - # Identifier for this message type. Used by external systems to - # internationalize or personalize message. - # @!attribute [rw] parameters - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter>] - # The structured data associated with this message. - class StructuredMessage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Structured data associated with this message. - # @!attribute [rw] key - # @return [::String] - # Key or name for this parameter. - # @!attribute [rw] value - # @return [::Google::Protobuf::Value] - # Value for this parameter. - class Parameter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A structured message reporting an autoscaling decision made by the Dataflow - # service. - # @!attribute [rw] current_num_workers - # @return [::Integer] - # The current number of workers the job has. - # @!attribute [rw] target_num_workers - # @return [::Integer] - # The target number of workers the worker pool wants to resize to use. - # @!attribute [rw] event_type - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent::AutoscalingEventType] - # The type of autoscaling event to report. - # @!attribute [rw] description - # @return [::Google::Cloud::Dataflow::V1beta3::StructuredMessage] - # A message describing why the system decided to adjust the current - # number of workers, why it failed, or why the system decided to - # not make any changes to the number of workers. - # @!attribute [rw] time - # @return [::Google::Protobuf::Timestamp] - # The time this event was emitted to indicate a new target or current - # num_workers value. - # @!attribute [rw] worker_pool - # @return [::String] - # A short and friendly name for the worker pool this event refers to. - class AutoscalingEvent - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the type of autoscaling event. - module AutoscalingEventType - # Default type for the enum. Value should never be returned. - TYPE_UNKNOWN = 0 - - # The TARGET_NUM_WORKERS_CHANGED type should be used when the target - # worker pool size has changed at the start of an actuation. An event - # should always be specified as TARGET_NUM_WORKERS_CHANGED if it reflects - # a change in the target_num_workers. - TARGET_NUM_WORKERS_CHANGED = 1 - - # The CURRENT_NUM_WORKERS_CHANGED type should be used when actual worker - # pool size has been changed, but the target_num_workers has not changed. - CURRENT_NUM_WORKERS_CHANGED = 2 - - # The ACTUATION_FAILURE type should be used when we want to report - # an error to the user indicating why the current number of workers - # in the pool could not be changed. - # Displayed in the current status and history widgets. - ACTUATION_FAILURE = 3 - - # Used when we want to report to the user a reason why we are - # not currently adjusting the number of workers. - # Should specify both target_num_workers, current_num_workers and a - # decision_message. - NO_CHANGE = 4 - end - end - - # Request to list job messages. - # Up to max_results messages will be returned in the time range specified - # starting with the oldest messages first. If no time range is specified - # the results with start with the oldest message. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get messages about. - # @!attribute [rw] minimum_importance - # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Filter to only get messages with importance >= level - # @!attribute [rw] page_size - # @return [::Integer] - # If specified, determines the maximum number of messages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @!attribute [rw] page_token - # @return [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # If specified, return only messages with timestamps >= start_time. - # The default is the job creation time (i.e. beginning of messages). - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - class ListJobMessagesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response to a request to list job messages. - # @!attribute [rw] job_messages - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # Messages in ascending timestamp order. - # @!attribute [rw] next_page_token - # @return [::String] - # The token to obtain the next page of results if there are more. - # @!attribute [rw] autoscaling_events - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent>] - # Autoscaling events in ascending timestamp order. - class ListJobMessagesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the importance of the message. - module JobMessageImportance - # The message importance isn't specified, or is unknown. - JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0 - - # The message is at the 'debug' level: typically only useful for - # software engineers working on the code the job is running. - # Typically, Dataflow pipeline runners do not display log messages - # at this level by default. - JOB_MESSAGE_DEBUG = 1 - - # The message is at the 'detailed' level: somewhat verbose, but - # potentially useful to users. Typically, Dataflow pipeline - # runners do not display log messages at this level by default. - # These messages are displayed by default in the Dataflow - # monitoring UI. - JOB_MESSAGE_DETAILED = 2 - - # The message is at the 'basic' level: useful for keeping - # track of the execution of a Dataflow pipeline. Typically, - # Dataflow pipeline runners display log messages at this level by - # default, and these messages are displayed by default in the - # Dataflow monitoring UI. - JOB_MESSAGE_BASIC = 5 - - # The message is at the 'warning' level: indicating a condition - # pertaining to a job which may require human intervention. - # Typically, Dataflow pipeline runners display log messages at this - # level by default, and these messages are displayed by default in - # the Dataflow monitoring UI. - JOB_MESSAGE_WARNING = 3 - - # The message is at the 'error' level: indicating a condition - # preventing a job from succeeding. Typically, Dataflow pipeline - # runners display log messages at this level by default, and these - # messages are displayed by default in the Dataflow monitoring UI. - JOB_MESSAGE_ERROR = 4 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb deleted file mode 100644 index 48590e3d26f4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb +++ /dev/null @@ -1,517 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Identifies a metric, by describing the source which generated the - # metric. - # @!attribute [rw] origin - # @return [::String] - # Origin (namespace) of metric name. May be blank for user-define metrics; - # will be "dataflow" for metrics defined by the Dataflow service or SDK. - # @!attribute [rw] name - # @return [::String] - # Worker-defined metric name. - # @!attribute [rw] context - # @return [::Google::Protobuf::Map{::String => ::String}] - # Zero or more labeled fields which identify the part of the job this - # metric is associated with, such as the name of a step or collection. - # - # For example, built-in counters associated with steps will have - # context['step'] = . Counters associated with PCollections - # in the SDK will have context['pcollection'] = . - class MetricStructuredName - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ContextEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the state of a metric. - # @!attribute [rw] name - # @return [::Google::Cloud::Dataflow::V1beta3::MetricStructuredName] - # Name of the metric. - # @!attribute [rw] kind - # @return [::String] - # Metric aggregation kind. The possible metric aggregation kinds are - # "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". - # The specified aggregation kind is case-insensitive. - # - # If omitted, this is not an aggregated value but instead - # a single metric sample value. - # @!attribute [rw] cumulative - # @return [::Boolean] - # True if this metric is reported as the total cumulative aggregate - # value accumulated since the worker started working on this WorkItem. - # By default this is false, indicating that this metric is reported - # as a delta that is not associated with any WorkItem. - # @!attribute [rw] scalar - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", - # "And", and "Or". The possible value types are Long, Double, and Boolean. - # @!attribute [rw] mean_sum - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Mean" aggregation kind. - # This holds the sum of the aggregated values and is used in combination - # with mean_count below to obtain the actual mean aggregate value. - # The only possible value types are Long and Double. - # @!attribute [rw] mean_count - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Mean" aggregation kind. - # This holds the count of the aggregated values and is used in combination - # with mean_sum above to obtain the actual mean aggregate value. - # The only possible value type is Long. - # @!attribute [rw] set - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Set" aggregation kind. The only - # possible value type is a list of Values whose type can be Long, Double, - # String, or BoundedTrie according to the metric's type. All Values in the - # list must be of the same type. - # @!attribute [rw] trie - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Trie" aggregation kind. The only - # possible value type is a BoundedTrieNode. - # @!attribute [rw] bounded_trie - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Trie" aggregation kind. The only - # possible value type is a BoundedTrieNode. - # Introduced this field to avoid breaking older SDKs when Dataflow service - # starts to populate the `bounded_trie` field. - # @!attribute [rw] distribution - # @return [::Google::Protobuf::Value] - # A struct value describing properties of a distribution of numeric values. - # @!attribute [rw] gauge - # @return [::Google::Protobuf::Value] - # A struct value describing properties of a Gauge. - # Metrics of gauge type show the value of a metric across time, and is - # aggregated based on the newest value. - # @!attribute [rw] internal - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for internal use by the Dataflow - # service. - # @!attribute [rw] update_time - # @return [::Google::Protobuf::Timestamp] - # Timestamp associated with the metric value. Optional when workers are - # reporting work progress; it will be filled in responses from the - # metrics API. - class MetricUpdate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get job metrics. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get metrics for. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - class GetJobMetricsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # JobMetrics contains a collection of metrics describing the detailed progress - # of a Dataflow job. Metrics correspond to user-defined and system-defined - # metrics in the job. For more information, see [Dataflow job metrics] - # (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf). - # - # This resource captures only the most recent values of each metric; - # time-series data can be queried for them (under the same metric names) - # from Cloud Monitoring. - # @!attribute [rw] metric_time - # @return [::Google::Protobuf::Timestamp] - # Timestamp as of which metric values are current. - # @!attribute [rw] metrics - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] - # All metrics for this job. - class JobMetrics - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get job execution details. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get execution details for. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @!attribute [rw] page_size - # @return [::Integer] - # If specified, determines the maximum number of stages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @!attribute [rw] page_token - # @return [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - class GetJobExecutionDetailsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about the progress of some component of job execution. - # @!attribute [rw] current_progress - # @return [::Float] - # The current progress of the component, in the range [0,1]. - # @!attribute [rw] data_points - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries::Point>] - # History of progress for the component. - # - # Points are sorted by time. - class ProgressTimeseries - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A point in the timeseries. - # @!attribute [rw] time - # @return [::Google::Protobuf::Timestamp] - # The timestamp of the point. - # @!attribute [rw] value - # @return [::Float] - # The value of the point. - class Point - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Information useful for straggler identification and debugging. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time when the work item attempt became a straggler. - # @!attribute [rw] causes - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo}] - # The straggler causes, keyed by the string representation of the - # StragglerCause enum and contains specialized debugging information for each - # straggler cause. - class StragglerInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Information useful for debugging a straggler. Each type will provide - # specialized debugging information relevant for a particular cause. - # The StragglerDebuggingInfo will be 1:1 mapping to the StragglerCause enum. - # @!attribute [rw] hot_key - # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo] - # Hot key debugging details. - class StragglerDebuggingInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo] - class CausesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Information useful for streaming straggler identification and debugging. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Start time of this straggler. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # End time of this straggler. - # @!attribute [rw] worker_name - # @return [::String] - # Name of the worker where the straggler was detected. - # @!attribute [rw] data_watermark_lag - # @return [::Google::Protobuf::Duration] - # The event-time watermark lag at the time of the straggler detection. - # @!attribute [rw] system_watermark_lag - # @return [::Google::Protobuf::Duration] - # The system watermark lag at the time of the straggler detection. - class StreamingStragglerInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information for a straggler. - # @!attribute [rw] batch_straggler - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] - # Batch straggler identification and debugging information. - # - # Note: The following fields are mutually exclusive: `batch_straggler`, `streaming_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] streaming_straggler - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStragglerInfo] - # Streaming straggler identification and debugging information. - # - # Note: The following fields are mutually exclusive: `streaming_straggler`, `batch_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Straggler - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information useful for debugging a hot key detection. - # @!attribute [rw] detected_hot_keys - # @return [::Google::Protobuf::Map{::Integer => ::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo}] - # Debugging information for each detected hot key. Keyed by a hash of the - # key. - class HotKeyDebuggingInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Information about a hot key. - # @!attribute [rw] hot_key_age - # @return [::Google::Protobuf::Duration] - # The age of the hot key measured from when it was first detected. - # @!attribute [rw] key - # @return [::String] - # A detected hot key that is causing limited parallelism. This field will - # be populated only if the following flag is set to true: - # "--enable_hot_key_logging". - # @!attribute [rw] key_truncated - # @return [::Boolean] - # If true, then the above key is truncated and cannot be deserialized. This - # occurs if the key above is populated and the key size is >5MB. - class HotKeyInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::Integer] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo] - class DetectedHotKeysEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Summarized straggler identification details. - # @!attribute [rw] total_straggler_count - # @return [::Integer] - # The total count of stragglers. - # @!attribute [rw] straggler_cause_count - # @return [::Google::Protobuf::Map{::String => ::Integer}] - # Aggregated counts of straggler causes, keyed by the string representation - # of the StragglerCause enum. - # @!attribute [rw] recent_stragglers - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Straggler>] - # The most recent stragglers. - class StragglerSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Integer] - class StragglerCauseCountEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Information about a particular execution stage of a job. - # @!attribute [rw] stage_id - # @return [::String] - # ID of this stage - # @!attribute [rw] state - # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] - # State of this stage. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Start time of this stage. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # End time of this stage. - # - # If the work item is completed, this is the actual end time of the stage. - # Otherwise, it is the predicted end time. - # @!attribute [rw] progress - # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] - # Progress for this stage. - # Only applicable to Batch jobs. - # @!attribute [rw] metrics - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] - # Metrics for this stage. - # @!attribute [rw] straggler_summary - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerSummary] - # Straggler summary for this stage. - class StageSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about the execution of a job. - # @!attribute [rw] stages - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # The stages of the job execution. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, this response does not contain all requested tasks. To obtain - # the next page of results, repeat the request with page_token set to this - # value. - class JobExecutionDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get information about a particular execution stage of a job. - # Currently only tracked for Batch jobs. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get execution details for. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @!attribute [rw] stage_id - # @return [::String] - # The stage for which to fetch information. - # @!attribute [rw] page_size - # @return [::Integer] - # If specified, determines the maximum number of work items to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @!attribute [rw] page_token - # @return [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Lower time bound of work items to include, by start time. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Upper time bound of work items to include, by start time. - class GetStageExecutionDetailsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about an individual work item execution. - # @!attribute [rw] task_id - # @return [::String] - # Name of this work item. - # @!attribute [rw] attempt_id - # @return [::String] - # Attempt ID of this work item - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Start time of this work item attempt. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # End time of this work item attempt. - # - # If the work item is completed, this is the actual end time of the work - # item. Otherwise, it is the predicted end time. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] - # State of this work item. - # @!attribute [rw] progress - # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] - # Progress of this work item. - # @!attribute [rw] metrics - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] - # Metrics for this work item. - # @!attribute [rw] straggler_info - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] - # Information about straggler detections for this work item. - class WorkItemDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about a worker - # @!attribute [rw] worker_name - # @return [::String] - # Name of this worker - # @!attribute [rw] work_items - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkItemDetails>] - # Work items processed by this worker, sorted by time. - class WorkerDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about the workers and work items within a stage. - # @!attribute [rw] workers - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # Workers that have done work on the stage. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, this response does not contain all requested tasks. To obtain - # the next page of results, repeat the request with page_token set to this - # value. - class StageExecutionDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The state of some component of job execution. - module ExecutionState - # The component state is unknown or unspecified. - EXECUTION_STATE_UNKNOWN = 0 - - # The component is not yet running. - EXECUTION_STATE_NOT_STARTED = 1 - - # The component is currently running. - EXECUTION_STATE_RUNNING = 2 - - # The component succeeded. - EXECUTION_STATE_SUCCEEDED = 3 - - # The component failed. - EXECUTION_STATE_FAILED = 4 - - # Execution of the component was cancelled. - EXECUTION_STATE_CANCELLED = 5 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb deleted file mode 100644 index 17febf5681be..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb +++ /dev/null @@ -1,160 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Represents a Pubsub snapshot. - # @!attribute [rw] topic_name - # @return [::String] - # The name of the Pubsub topic. - # @!attribute [rw] snapshot_name - # @return [::String] - # The name of the Pubsub snapshot. - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # The expire time of the Pubsub snapshot. - class PubsubSnapshotMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a snapshot of a job. - # @!attribute [rw] id - # @return [::String] - # The unique ID of this snapshot. - # @!attribute [rw] project_id - # @return [::String] - # The project this snapshot belongs to. - # @!attribute [rw] source_job_id - # @return [::String] - # The job this snapshot was created from. - # @!attribute [rw] creation_time - # @return [::Google::Protobuf::Timestamp] - # The time this snapshot was created. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # The time after which this snapshot will be automatically deleted. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataflow::V1beta3::SnapshotState] - # State of the snapshot. - # @!attribute [rw] pubsub_metadata - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubsubSnapshotMetadata>] - # Pub/Sub snapshot metadata. - # @!attribute [rw] description - # @return [::String] - # User specified description of the snapshot. Maybe empty. - # @!attribute [rw] disk_size_bytes - # @return [::Integer] - # The disk byte size of the snapshot. Only available for snapshots in READY - # state. - # @!attribute [rw] region - # @return [::String] - # Cloud region where this snapshot lives in, e.g., "us-central1". - class Snapshot - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get information about a snapshot - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @!attribute [rw] snapshot_id - # @return [::String] - # The ID of the snapshot. - # @!attribute [rw] location - # @return [::String] - # The location that contains this snapshot. - class GetSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to delete a snapshot. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @!attribute [rw] snapshot_id - # @return [::String] - # The ID of the snapshot. - # @!attribute [rw] location - # @return [::String] - # The location that contains this snapshot. - class DeleteSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response from deleting a snapshot. - class DeleteSnapshotResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to list snapshots. - # @!attribute [rw] project_id - # @return [::String] - # The project ID to list snapshots for. - # @!attribute [rw] job_id - # @return [::String] - # If specified, list snapshots created from this job. - # @!attribute [rw] location - # @return [::String] - # The location to list snapshots in. - class ListSnapshotsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # List of snapshots. - # @!attribute [rw] snapshots - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Snapshot>] - # Returned snapshots. - class ListSnapshotsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Snapshot state. - module SnapshotState - # Unknown state. - UNKNOWN_SNAPSHOT_STATE = 0 - - # Snapshot intent to create has been persisted, snapshotting of state has not - # yet started. - PENDING = 1 - - # Snapshotting is being performed. - RUNNING = 2 - - # Snapshot has been created and is ready to be used. - READY = 3 - - # Snapshot failed to be created. - FAILED = 4 - - # Snapshot has been deleted. - DELETED = 5 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb deleted file mode 100644 index 6e5ebcb32b77..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb +++ /dev/null @@ -1,292 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Global topology of the streaming Dataflow job, including all - # computations and their sharded locations. - # @!attribute [rw] computations - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ComputationTopology>] - # The computations associated with a streaming Dataflow job. - # @!attribute [rw] data_disk_assignments - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataDiskAssignment>] - # The disks assigned to a streaming Dataflow job. - # @!attribute [rw] user_stage_to_computation_name_map - # @return [::Google::Protobuf::Map{::String => ::String}] - # Maps user stage names to stable computation names. - # @!attribute [rw] forwarding_key_bits - # @return [::Integer] - # The size (in bits) of keys that will be assigned to source messages. - # @!attribute [rw] persistent_state_version - # @return [::Integer] - # Version number for persistent state. - class TopologyConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class UserStageToComputationNameMapEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Identifies a pubsub location to use for transferring data into or - # out of a streaming Dataflow job. - # @!attribute [rw] topic - # @return [::String] - # A pubsub topic, in the form of - # "pubsub.googleapis.com/topics//" - # @!attribute [rw] subscription - # @return [::String] - # A pubsub subscription, in the form of - # "pubsub.googleapis.com/subscriptions//" - # @!attribute [rw] timestamp_label - # @return [::String] - # If set, contains a pubsub label from which to extract record timestamps. - # If left empty, record timestamps will be generated upon arrival. - # @!attribute [rw] id_label - # @return [::String] - # If set, contains a pubsub label from which to extract record ids. - # If left empty, record deduplication will be strictly best effort. - # @!attribute [rw] drop_late_data - # @return [::Boolean] - # Indicates whether the pipeline allows late-arriving data. - # @!attribute [rw] tracking_subscription - # @return [::String] - # If set, specifies the pubsub subscription that will be used for tracking - # custom time timestamps for watermark estimation. - # @!attribute [rw] with_attributes - # @return [::Boolean] - # If true, then the client has requested to get pubsub attributes. - # @!attribute [rw] dynamic_destinations - # @return [::Boolean] - # If true, then this location represents dynamic topics. - class PubsubLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Identifies the location of a streaming computation stage, for - # stage-to-stage communication. - # @!attribute [rw] stream_id - # @return [::String] - # Identifies the particular stream within the streaming Dataflow - # job. - class StreamingStageLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Identifies the location of a streaming side input. - # @!attribute [rw] tag - # @return [::String] - # Identifies the particular side input within the streaming Dataflow job. - # @!attribute [rw] state_family - # @return [::String] - # Identifies the state family where this side input is stored. - class StreamingSideInputLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Identifies the location of a custom souce. - # @!attribute [rw] stateful - # @return [::Boolean] - # Whether this source is stateful. - class CustomSourceLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes a stream of data, either as input to be processed or as - # output of a streaming Dataflow job. - # @!attribute [rw] streaming_stage_location - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStageLocation] - # The stream is part of another computation within the current - # streaming Dataflow job. - # - # Note: The following fields are mutually exclusive: `streaming_stage_location`, `pubsub_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] pubsub_location - # @return [::Google::Cloud::Dataflow::V1beta3::PubsubLocation] - # The stream is a pubsub stream. - # - # Note: The following fields are mutually exclusive: `pubsub_location`, `streaming_stage_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] side_input_location - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingSideInputLocation] - # The stream is a streaming side input. - # - # Note: The following fields are mutually exclusive: `side_input_location`, `streaming_stage_location`, `pubsub_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] custom_source_location - # @return [::Google::Cloud::Dataflow::V1beta3::CustomSourceLocation] - # The stream is a custom source. - # - # Note: The following fields are mutually exclusive: `custom_source_location`, `streaming_stage_location`, `pubsub_location`, `side_input_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class StreamLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # State family configuration. - # @!attribute [rw] state_family - # @return [::String] - # The state family value. - # @!attribute [rw] is_read - # @return [::Boolean] - # If true, this family corresponds to a read operation. - class StateFamilyConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # All configuration data for a particular Computation. - # @!attribute [rw] system_stage_name - # @return [::String] - # The system stage name. - # @!attribute [rw] computation_id - # @return [::String] - # The ID of the computation. - # @!attribute [rw] key_ranges - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeLocation>] - # The key ranges processed by the computation. - # @!attribute [rw] inputs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] - # The inputs to the computation. - # @!attribute [rw] outputs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] - # The outputs from the computation. - # @!attribute [rw] state_families - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StateFamilyConfig>] - # The state family values. - class ComputationTopology - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Location information for a specific key-range of a sharded computation. - # Currently we only support UTF-8 character splits to simplify encoding into - # JSON. - # @!attribute [rw] start - # @return [::String] - # The start (inclusive) of the key range. - # @!attribute [rw] end - # @return [::String] - # The end (exclusive) of the key range. - # @!attribute [rw] delivery_endpoint - # @return [::String] - # The physical location of this range assignment to be used for - # streaming computation cross-worker message delivery. - # @!attribute [rw] data_disk - # @return [::String] - # The name of the data disk where data for this range is stored. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - # @!attribute [rw] deprecated_persistent_directory - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # DEPRECATED. The location of the persistent state for this range, as a - # persistent directory in the worker local filesystem. - class KeyRangeLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes mounted data disk. - # @!attribute [rw] data_disk - # @return [::String] - # The name of the data disk. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - class MountedDataDisk - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data disk assignment for a given VM instance. - # @!attribute [rw] vm_instance - # @return [::String] - # VM instance name the data disks mounted to, for example - # "myproject-1014-104817-4c2-harness-0". - # @!attribute [rw] data_disks - # @return [::Array<::String>] - # Mounted data disks. The order is important a data disk's 0-based index in - # this list defines which persistent directory the disk is mounted to, for - # example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, - # { "myproject-1014-104817-4c2-harness-0-disk-1" }. - class DataDiskAssignment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data disk assignment information for a specific key-range of a sharded - # computation. - # Currently we only support UTF-8 character splits to simplify encoding into - # JSON. - # @!attribute [rw] start - # @return [::String] - # The start (inclusive) of the key range. - # @!attribute [rw] end - # @return [::String] - # The end (exclusive) of the key range. - # @!attribute [rw] data_disk - # @return [::String] - # The name of the data disk where data for this range is stored. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - class KeyRangeDataDiskAssignment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes full or partial data disk assignment information of the computation - # ranges. - # @!attribute [rw] computation_id - # @return [::String] - # The ID of the computation. - # @!attribute [rw] range_assignments - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeDataDiskAssignment>] - # Data disk assignments for ranges from this computation. - class StreamingComputationRanges - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Streaming appliance snapshot configuration. - # @!attribute [rw] snapshot_id - # @return [::String] - # If set, indicates the snapshot id for the snapshot being performed. - # @!attribute [rw] import_state_endpoint - # @return [::String] - # Indicates which endpoint is used to import appliance state. - class StreamingApplianceSnapshotConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb deleted file mode 100644 index 0ae854d8c16d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb +++ /dev/null @@ -1,856 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Response to the request to launch a job from Flex Template. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The job that was launched, if the request was not a dry run and - # the job was successfully launched. - class LaunchFlexTemplateResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Container Spec. - # @!attribute [rw] image - # @return [::String] - # Name of the docker container image. E.g., gcr.io/project/some-image - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] - # Metadata describing a template including description and validation rules. - # @!attribute [rw] sdk_info - # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] - # Required. SDK info of the Flex Template. - # @!attribute [rw] default_environment - # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] - # Default runtime environment for the job. - # @!attribute [rw] image_repository_username_secret_id - # @return [::String] - # Secret Manager secret id for username to authenticate to private registry. - # @!attribute [rw] image_repository_password_secret_id - # @return [::String] - # Secret Manager secret id for password to authenticate to private registry. - # @!attribute [rw] image_repository_cert_path - # @return [::String] - # Cloud Storage path to self-signed certificate of private registry. - class ContainerSpec - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Launch FlexTemplate Parameter. - # @!attribute [rw] job_name - # @return [::String] - # Required. The job name to use for the created job. For update job request, - # job name should be same as the existing running job. - # @!attribute [rw] container_spec - # @return [::Google::Cloud::Dataflow::V1beta3::ContainerSpec] - # Spec about the container image to launch. - # - # Note: The following fields are mutually exclusive: `container_spec`, `container_spec_gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] container_spec_gcs_path - # @return [::String] - # Cloud Storage path to a file with json serialized ContainerSpec as - # content. - # - # Note: The following fields are mutually exclusive: `container_spec_gcs_path`, `container_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] parameters - # @return [::Google::Protobuf::Map{::String => ::String}] - # The parameters for FlexTemplate. - # Ex. \\{"num_workers":"5"} - # @!attribute [rw] launch_options - # @return [::Google::Protobuf::Map{::String => ::String}] - # Launch options for this flex template job. This is a common set of options - # across languages and templates. This should not be used to pass job - # parameters. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] - # The runtime environment for the FlexTemplate job - # @!attribute [rw] update - # @return [::Boolean] - # Set this to true if you are sending a request to update a running - # streaming job. When set, the job name should be the same as the - # running job. - # @!attribute [rw] transform_name_mappings - # @return [::Google::Protobuf::Map{::String => ::String}] - # Use this to pass transform_name_mappings for streaming update jobs. - # Ex:\\{"oldTransformName":"newTransformName",...}' - class LaunchFlexTemplateParameter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ParametersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LaunchOptionsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TransformNameMappingsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The environment values to be set at runtime for flex template. - # @!attribute [rw] num_workers - # @return [::Integer] - # The initial number of Google Compute Engine instances for the job. - # @!attribute [rw] max_workers - # @return [::Integer] - # The maximum number of Google Compute Engine instances to be made - # available to your pipeline during execution, from 1 to 1000. - # @!attribute [rw] zone - # @return [::String] - # The Compute Engine [availability - # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - # for launching worker instances to run your pipeline. - # In the future, worker_zone will take precedence. - # @!attribute [rw] service_account_email - # @return [::String] - # The email address of the service account to run the job as. - # @!attribute [rw] temp_location - # @return [::String] - # The Cloud Storage path to use for temporary files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] machine_type - # @return [::String] - # The machine type to use for the job. Defaults to the value from the - # template if not specified. - # @!attribute [rw] additional_experiments - # @return [::Array<::String>] - # Additional experiment flags for the job. - # @!attribute [rw] network - # @return [::String] - # Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # @!attribute [rw] subnetwork - # @return [::String] - # Subnetwork to which VMs will be assigned, if desired. You can specify a - # subnetwork using either a complete URL or an abbreviated path. Expected to - # be of the form - # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - # a Shared VPC network, you must use the complete URL. - # @!attribute [rw] additional_user_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Additional user labels to be specified for the job. - # Keys and values must follow the restrictions specified in the [labeling - # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - # page. - # An object containing a list of "key": value pairs. - # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - # @!attribute [rw] kms_key_name - # @return [::String] - # Name for the Cloud KMS key for the job. - # Key format is: - # projects//locations//keyRings//cryptoKeys/ - # @!attribute [rw] ip_configuration - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] - # Configuration for VM IPs. - # @!attribute [rw] worker_region - # @return [::String] - # The Compute Engine region - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1". Mutually exclusive - # with worker_zone. If neither worker_region nor worker_zone is specified, - # default to the control plane's region. - # @!attribute [rw] worker_zone - # @return [::String] - # The Compute Engine zone - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - # with worker_region. If neither worker_region nor worker_zone is specified, - # a zone in the control plane's region is chosen based on available capacity. - # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - # @!attribute [rw] enable_streaming_engine - # @return [::Boolean] - # Whether to enable Streaming Engine for the job. - # @!attribute [rw] flexrs_goal - # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] - # Set FlexRS goal for the job. - # https://cloud.google.com/dataflow/docs/guides/flexrs - # @!attribute [rw] staging_location - # @return [::String] - # The Cloud Storage path for staging local files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] sdk_container_image - # @return [::String] - # Docker registry location of container image to use for the 'worker harness. - # Default is the container for the version of the SDK. Note this field is - # only valid for portable pipelines. - # @!attribute [rw] disk_size_gb - # @return [::Integer] - # Worker disk size, in gigabytes. - # @!attribute [rw] autoscaling_algorithm - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] - # The algorithm to use for autoscaling - # @!attribute [rw] dump_heap_on_oom - # @return [::Boolean] - # If true, when processing time is spent almost entirely - # on garbage collection (GC), saves a heap dump before ending the thread - # or process. If false, ends the thread or process without saving a heap - # dump. Does not save a heap dump when the Java Virtual Machine (JVM) has an - # out of memory error during processing. The location of the heap file is - # either echoed back to the user, or the user is given the opportunity to - # download the heap file. - # @!attribute [rw] save_heap_dumps_to_gcs_path - # @return [::String] - # Cloud Storage bucket (directory) to upload heap dumps to. - # Enabling this field implies that `dump_heap_on_oom` is set to true. - # @!attribute [rw] launcher_machine_type - # @return [::String] - # The machine type to use for launching the job. The default is - # n1-standard-1. - # @!attribute [rw] enable_launcher_vm_serial_port_logging - # @return [::Boolean] - # If true serial port logging will be enabled for the launcher VM. - # @!attribute [rw] streaming_mode - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] - # Optional. Specifies the Streaming Engine message processing guarantees. - # Reduces cost and latency but might result in duplicate messages committed - # to storage. Designed to run simple mapping streaming ETL jobs at the lowest - # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - # @!attribute [rw] additional_pipeline_options - # @return [::Array<::String>] - # Optional. Additional pipeline option flags for the job. - class FlexTemplateRuntimeEnvironment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalUserLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A request to launch a Cloud Dataflow job from a FlexTemplate. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] launch_parameter - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter] - # Required. Parameter to launch a job form Flex Template. - # @!attribute [rw] location - # @return [::String] - # Required. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. E.g., us-central1, us-west1. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - class LaunchFlexTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The environment values to set at runtime. - # @!attribute [rw] num_workers - # @return [::Integer] - # Optional. The initial number of Google Compute Engine instances for the - # job. The default value is 11. - # @!attribute [rw] max_workers - # @return [::Integer] - # Optional. The maximum number of Google Compute Engine instances to be made - # available to your pipeline during execution, from 1 to 1000. The default - # value is 1. - # @!attribute [rw] zone - # @return [::String] - # Optional. The Compute Engine [availability - # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - # for launching worker instances to run your pipeline. - # In the future, worker_zone will take precedence. - # @!attribute [rw] service_account_email - # @return [::String] - # Optional. The email address of the service account to run the job as. - # @!attribute [rw] temp_location - # @return [::String] - # Required. The Cloud Storage path to use for temporary files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] bypass_temp_dir_validation - # @return [::Boolean] - # Optional. Whether to bypass the safety checks for the job's temporary - # directory. Use with caution. - # @!attribute [rw] machine_type - # @return [::String] - # Optional. The machine type to use for the job. Defaults to the value from - # the template if not specified. - # @!attribute [rw] additional_experiments - # @return [::Array<::String>] - # Optional. Additional experiment flags for the job, specified with the - # `--experiments` option. - # @!attribute [rw] network - # @return [::String] - # Optional. Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # @!attribute [rw] subnetwork - # @return [::String] - # Optional. Subnetwork to which VMs will be assigned, if desired. You can - # specify a subnetwork using either a complete URL or an abbreviated path. - # Expected to be of the form - # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - # a Shared VPC network, you must use the complete URL. - # @!attribute [rw] additional_user_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Additional user labels to be specified for the job. - # Keys and values should follow the restrictions specified in the [labeling - # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - # page. - # An object containing a list of "key": value pairs. - # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - # @!attribute [rw] kms_key_name - # @return [::String] - # Optional. Name for the Cloud KMS key for the job. - # Key format is: - # projects//locations//keyRings//cryptoKeys/ - # @!attribute [rw] ip_configuration - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] - # Optional. Configuration for VM IPs. - # @!attribute [rw] worker_region - # @return [::String] - # Required. The Compute Engine region - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1". Mutually exclusive - # with worker_zone. If neither worker_region nor worker_zone is specified, - # default to the control plane's region. - # @!attribute [rw] worker_zone - # @return [::String] - # Optional. The Compute Engine zone - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - # with worker_region. If neither worker_region nor worker_zone is specified, - # a zone in the control plane's region is chosen based on available capacity. - # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - # @!attribute [rw] enable_streaming_engine - # @return [::Boolean] - # Optional. Whether to enable Streaming Engine for the job. - # @!attribute [rw] disk_size_gb - # @return [::Integer] - # Optional. The disk size, in gigabytes, to use on each remote Compute Engine - # worker instance. - # @!attribute [rw] streaming_mode - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] - # Optional. Specifies the Streaming Engine message processing guarantees. - # Reduces cost and latency but might result in duplicate messages committed - # to storage. Designed to run simple mapping streaming ETL jobs at the lowest - # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - # @!attribute [rw] additional_pipeline_options - # @return [::Array<::String>] - # Optional. Additional pipeline option flags for the job. - class RuntimeEnvironment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalUserLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # ParameterMetadataEnumOption specifies the option shown in the enum form. - # @!attribute [rw] value - # @return [::String] - # Required. The value of the enum option. - # @!attribute [rw] label - # @return [::String] - # Optional. The label to display for the enum option. - # @!attribute [rw] description - # @return [::String] - # Optional. The description to display for the enum option. - class ParameterMetadataEnumOption - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a specific parameter. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the parameter. - # @!attribute [rw] label - # @return [::String] - # Required. The label to display for the parameter. - # @!attribute [rw] help_text - # @return [::String] - # Required. The help text to display for the parameter. - # @!attribute [rw] is_optional - # @return [::Boolean] - # Optional. Whether the parameter is optional. Defaults to false. - # @!attribute [rw] regexes - # @return [::Array<::String>] - # Optional. Regexes that the parameter must match. - # @!attribute [rw] param_type - # @return [::Google::Cloud::Dataflow::V1beta3::ParameterType] - # Optional. The type of the parameter. - # Used for selecting input picker. - # @!attribute [rw] custom_metadata - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Additional metadata for describing this parameter. - # @!attribute [rw] group_name - # @return [::String] - # Optional. Specifies a group name for this parameter to be rendered under. - # Group header text will be rendered exactly as specified in this field. Only - # considered when parent_name is NOT provided. - # @!attribute [rw] parent_name - # @return [::String] - # Optional. Specifies the name of the parent parameter. Used in conjunction - # with 'parent_trigger_values' to make this parameter conditional (will only - # be rendered conditionally). Should be mappable to a ParameterMetadata.name - # field. - # @!attribute [rw] parent_trigger_values - # @return [::Array<::String>] - # Optional. The value(s) of the 'parent_name' parameter which will trigger - # this parameter to be shown. If left empty, ANY non-empty value in - # parent_name will trigger this parameter to be shown. Only considered when - # this parameter is conditional (when 'parent_name' has been provided). - # @!attribute [rw] enum_options - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadataEnumOption>] - # Optional. The options shown when ENUM ParameterType is specified. - # @!attribute [rw] default_value - # @return [::String] - # Optional. The default values will pre-populate the parameter with the - # given value from the proto. If default_value is left empty, the parameter - # will be populated with a default of the relevant type, e.g. false for a - # boolean. - # @!attribute [rw] hidden_ui - # @return [::Boolean] - # Optional. Whether the parameter should be hidden in the UI. - class ParameterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class CustomMetadataEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Metadata describing a template. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the template. - # @!attribute [rw] description - # @return [::String] - # Optional. A description of the template. - # @!attribute [rw] parameters - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] - # The parameters for the template. - # @!attribute [rw] streaming - # @return [::Boolean] - # Optional. Indicates if the template is streaming or not. - # @!attribute [rw] supports_at_least_once - # @return [::Boolean] - # Optional. Indicates if the streaming template supports at least once mode. - # @!attribute [rw] supports_exactly_once - # @return [::Boolean] - # Optional. Indicates if the streaming template supports exactly once mode. - # @!attribute [rw] default_streaming_mode - # @return [::String] - # Optional. Indicates the default streaming mode for a streaming template. - # Only valid if both supports_at_least_once and supports_exactly_once are - # true. Possible values: UNSPECIFIED, EXACTLY_ONCE and AT_LEAST_ONCE - class TemplateMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # SDK Information. - # @!attribute [rw] language - # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo::Language] - # Required. The SDK Language. - # @!attribute [rw] version - # @return [::String] - # Optional. The SDK version. - class SDKInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # SDK Language. - module Language - # UNKNOWN Language. - UNKNOWN = 0 - - # Java. - JAVA = 1 - - # Python. - PYTHON = 2 - - # Go. - GO = 3 - - # YAML. - YAML = 4 - end - end - - # RuntimeMetadata describing a runtime environment. - # @!attribute [rw] sdk_info - # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] - # SDK Info for the template. - # @!attribute [rw] parameters - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] - # The parameters for the template. - class RuntimeMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A request to create a Cloud Dataflow job from a template. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job_name - # @return [::String] - # Required. The job name to use for the created job. - # @!attribute [rw] gcs_path - # @return [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] parameters - # @return [::Google::Protobuf::Map{::String => ::String}] - # The runtime parameters to pass to the job. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] - # The runtime environment for the job. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - class CreateJobFromTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ParametersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A request to retrieve a Cloud Dataflow job template. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] gcs_path - # @return [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] - # The view to retrieve. Defaults to METADATA_ONLY. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - class GetTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various views of a template that may be retrieved. - module TemplateView - # Template view that retrieves only the metadata associated with the - # template. - METADATA_ONLY = 0 - end - end - - # The response to a GetTemplate request. - # @!attribute [rw] status - # @return [::Google::Rpc::Status] - # The status of the get template request. Any problems with the - # request will be indicated in the error_details. - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] - # The template metadata describing the template name, available - # parameters, etc. - # @!attribute [rw] template_type - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse::TemplateType] - # Template Type. - # @!attribute [rw] runtime_metadata - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeMetadata] - # Describes the runtime metadata with SDKInfo and available parameters. - class GetTemplateResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Template Type. - module TemplateType - # Unknown Template Type. - UNKNOWN = 0 - - # Legacy Template. - LEGACY = 1 - - # Flex Template. - FLEX = 2 - end - end - - # Parameters to provide to the template being launched. Note that the - # [metadata in the pipeline code] - # (https://cloud.google.com/dataflow/docs/guides/templates/creating-templates#metadata) - # determines which runtime parameters are valid. - # @!attribute [rw] job_name - # @return [::String] - # Required. The job name to use for the created job. - # - # The name must match the regular expression - # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - # @!attribute [rw] parameters - # @return [::Google::Protobuf::Map{::String => ::String}] - # The runtime parameters to pass to the job. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] - # The runtime environment for the job. - # @!attribute [rw] update - # @return [::Boolean] - # If set, replace the existing pipeline with the name specified by jobName - # with this pipeline, preserving state. - # @!attribute [rw] transform_name_mapping - # @return [::Google::Protobuf::Map{::String => ::String}] - # Only applicable when updating a pipeline. Map of transform name prefixes of - # the job to be replaced to the corresponding name prefixes of the new job. - class LaunchTemplateParameters - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ParametersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TransformNameMappingEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A request to launch a template. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @!attribute [rw] gcs_path - # @return [::String] - # A Cloud Storage path to the template to use to create - # the job. - # Must be valid Cloud Storage URL, beginning with `gs://`. - # - # Note: The following fields are mutually exclusive: `gcs_path`, `dynamic_template`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dynamic_template - # @return [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams] - # Parameters for launching a dynamic template. - # - # Note: The following fields are mutually exclusive: `dynamic_template`, `gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] launch_parameters - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters] - # The parameters of the template to launch. Part of the - # body of the POST request. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - class LaunchTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response to the request to launch a template. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The job that was launched, if the request was not a dry run and - # the job was successfully launched. - class LaunchTemplateResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Used in the error_details field of a google.rpc.Status message, this - # indicates problems with the template parameter. - # @!attribute [rw] parameter_violations - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::InvalidTemplateParameters::ParameterViolation>] - # Describes all parameter violations in a template request. - class InvalidTemplateParameters - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A specific template-parameter violation. - # @!attribute [rw] parameter - # @return [::String] - # The parameter that failed to validate. - # @!attribute [rw] description - # @return [::String] - # A description of why the parameter failed to validate. - class ParameterViolation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Parameters to pass when launching a dynamic template. - # @!attribute [rw] gcs_path - # @return [::String] - # Path to the dynamic template specification file on Cloud Storage. - # The file must be a JSON serialized `DynamicTemplateFileSpec` object. - # @!attribute [rw] staging_location - # @return [::String] - # Cloud Storage path for staging dependencies. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - class DynamicTemplateLaunchParams - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # ParameterType specifies what kind of input we need for this parameter. - module ParameterType - # Default input type. - DEFAULT = 0 - - # The parameter specifies generic text input. - TEXT = 1 - - # The parameter specifies a Cloud Storage Bucket to read from. - GCS_READ_BUCKET = 2 - - # The parameter specifies a Cloud Storage Bucket to write to. - GCS_WRITE_BUCKET = 3 - - # The parameter specifies a Cloud Storage file path to read from. - GCS_READ_FILE = 4 - - # The parameter specifies a Cloud Storage file path to write to. - GCS_WRITE_FILE = 5 - - # The parameter specifies a Cloud Storage folder path to read from. - GCS_READ_FOLDER = 6 - - # The parameter specifies a Cloud Storage folder to write to. - GCS_WRITE_FOLDER = 7 - - # The parameter specifies a Pub/Sub Topic. - PUBSUB_TOPIC = 8 - - # The parameter specifies a Pub/Sub Subscription. - PUBSUB_SUBSCRIPTION = 9 - - # The parameter specifies a BigQuery table. - BIGQUERY_TABLE = 10 - - # The parameter specifies a JavaScript UDF in Cloud Storage. - JAVASCRIPT_UDF_FILE = 11 - - # The parameter specifies a Service Account email. - SERVICE_ACCOUNT = 12 - - # The parameter specifies a Machine Type. - MACHINE_TYPE = 13 - - # The parameter specifies a KMS Key name. - KMS_KEY_NAME = 14 - - # The parameter specifies a Worker Region. - WORKER_REGION = 15 - - # The parameter specifies a Worker Zone. - WORKER_ZONE = 16 - - # The parameter specifies a boolean input. - BOOLEAN = 17 - - # The parameter specifies an enum input. - ENUM = 18 - - # The parameter specifies a number input. - NUMBER = 19 - - # Deprecated. Please use KAFKA_READ_TOPIC instead. - KAFKA_TOPIC = 20 - - # The parameter specifies the fully-qualified name of an Apache Kafka topic. - # This can be either a Google Managed Kafka topic or a non-managed Kafka - # topic. - KAFKA_READ_TOPIC = 21 - - # The parameter specifies the fully-qualified name of an Apache Kafka topic. - # This can be an existing Google Managed Kafka topic, the name for a new - # Google Managed Kafka topic, or an existing non-managed Kafka topic. - KAFKA_WRITE_TOPIC = 22 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb deleted file mode 100644 index 39e1aca868d2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb +++ /dev/null @@ -1,108 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Struct` represents a structured data value, consisting of fields - # which map to dynamically typed values. In some languages, `Struct` - # might be supported by a native representation. For example, in - # scripting languages like JS a struct is represented as an - # object. The details of that representation are described together - # with the proto support for the language. - # - # The JSON representation for `Struct` is JSON object. - # @!attribute [rw] fields - # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] - # Unordered map of dynamically typed values. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Protobuf::Value] - class FieldsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `Value` represents a dynamically typed value which can be either - # null, a number, a string, a boolean, a recursive struct value, or a - # list of values. A producer of value is expected to set one of these - # variants. Absence of any variant indicates an error. - # - # The JSON representation for `Value` is JSON value. - # @!attribute [rw] null_value - # @return [::Google::Protobuf::NullValue] - # Represents a null value. - # - # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] number_value - # @return [::Float] - # Represents a double value. - # - # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_value - # @return [::String] - # Represents a string value. - # - # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_value - # @return [::Boolean] - # Represents a boolean value. - # - # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_value - # @return [::Google::Protobuf::Struct] - # Represents a structured value. - # - # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] list_value - # @return [::Google::Protobuf::ListValue] - # Represents a repeated `Value`. - # - # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListValue` is a wrapper around a repeated field of values. - # - # The JSON representation for `ListValue` is JSON array. - # @!attribute [rw] values - # @return [::Array<::Google::Protobuf::Value>] - # Repeated field of dynamically typed values. - class ListValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `NullValue` is a singleton enumeration to represent the null value for the - # `Value` type union. - # - # The JSON representation for `NullValue` is JSON `null`. - module NullValue - # Null value. - NULL_VALUE = 0 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile deleted file mode 100644 index 01167825a42e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-dataflow-v1beta3", path: "../" -else - gem "google-cloud-dataflow-v1beta3" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb deleted file mode 100644 index c35bc1a9c0d8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the launch_flex_template call in the FlexTemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template. -# -def launch_flex_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new - - # Call the launch_flex_template method. - result = client.launch_flex_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. - p result -end -# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb deleted file mode 100644 index 350fd7267981..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the aggregated_list_jobs call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs. -# -def aggregated_list_jobs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - - # Call the aggregated_list_jobs method. - result = client.aggregated_list_jobs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - p item - end -end -# [END dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb deleted file mode 100644 index 63db36fb5f30..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the check_active_jobs call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs. -# -def check_active_jobs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new - - # Call the check_active_jobs method. - result = client.check_active_jobs request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. - p result -end -# [END dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb deleted file mode 100644 index 0146cf807873..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_CreateJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the create_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job. -# -def create_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new - - # Call the create_job method. - result = client.create_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_Jobs_CreateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb deleted file mode 100644 index 3ef8f929a9a3..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_GetJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job. -# -def get_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new - - # Call the get_job method. - result = client.get_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_Jobs_GetJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb deleted file mode 100644 index f162cd9f38bb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_ListJobs_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the list_jobs call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs. -# -def list_jobs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - - # Call the list_jobs method. - result = client.list_jobs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - p item - end -end -# [END dataflow_v1beta3_generated_Jobs_ListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb deleted file mode 100644 index 3977d863c903..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the snapshot_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job. -# -def snapshot_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - - # Call the snapshot_job method. - result = client.snapshot_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - p result -end -# [END dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb deleted file mode 100644 index 48a87bd69ab6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_UpdateJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the update_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job. -# -def update_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new - - # Call the update_job method. - result = client.update_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_Jobs_UpdateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb deleted file mode 100644 index 08252fdfefb9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Messages_ListJobMessages_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the list_job_messages call in the Messages service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages. -# -def list_job_messages - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new - - # Call the list_job_messages method. - result = client.list_job_messages request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. - p item - end -end -# [END dataflow_v1beta3_generated_Messages_ListJobMessages_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb deleted file mode 100644 index 3a9fe8c49ae6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_job_execution_details call in the Metrics service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details. -# -def get_job_execution_details - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new - - # Call the get_job_execution_details method. - result = client.get_job_execution_details request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. - p item - end -end -# [END dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb deleted file mode 100644 index f1e36d3c56cf..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_job_metrics call in the Metrics service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics. -# -def get_job_metrics - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new - - # Call the get_job_metrics method. - result = client.get_job_metrics request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. - p result -end -# [END dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb deleted file mode 100644 index f2e1803d1483..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_stage_execution_details call in the Metrics service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details. -# -def get_stage_execution_details - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new - - # Call the get_stage_execution_details method. - result = client.get_stage_execution_details request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. - p item - end -end -# [END dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb deleted file mode 100644 index a16cafd731d2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the delete_snapshot call in the Snapshots service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot. -# -def delete_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new - - # Call the delete_snapshot method. - result = client.delete_snapshot request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. - p result -end -# [END dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb deleted file mode 100644 index e6f4de5a2ddb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_snapshot call in the Snapshots service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot. -# -def get_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new - - # Call the get_snapshot method. - result = client.get_snapshot request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - p result -end -# [END dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb deleted file mode 100644 index a724bf4f121b..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the list_snapshots call in the Snapshots service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots. -# -def list_snapshots - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new - - # Call the list_snapshots method. - result = client.list_snapshots request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. - p result -end -# [END dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json deleted file mode 100644 index 9760df90c641..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json +++ /dev/null @@ -1,735 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataflow-v1beta3", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.dataflow.v1beta3", - "version": "v1beta3" - } - ] - }, - "snippets": [ - { - "region_tag": "dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync", - "title": "Snippet for the get_snapshot call in the Snapshots service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot.", - "file": "snapshots/get_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_snapshot", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", - "client": { - "short_name": "Snapshots::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" - }, - "method": { - "short_name": "GetSnapshot", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", - "service": { - "short_name": "Snapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync", - "title": "Snippet for the delete_snapshot call in the Snapshots service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot.", - "file": "snapshots/delete_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_snapshot", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse", - "client": { - "short_name": "Snapshots::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" - }, - "method": { - "short_name": "DeleteSnapshot", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "service": { - "short_name": "Snapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync", - "title": "Snippet for the list_snapshots call in the Snapshots service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots.", - "file": "snapshots/list_snapshots.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_snapshots", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse", - "client": { - "short_name": "Snapshots::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" - }, - "method": { - "short_name": "ListSnapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", - "service": { - "short_name": "Snapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_CreateJob_sync", - "title": "Snippet for the create_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job.", - "file": "jobs/create_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "CreateJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_GetJob_sync", - "title": "Snippet for the get_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job.", - "file": "jobs/get_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "GetJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_UpdateJob_sync", - "title": "Snippet for the update_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job.", - "file": "jobs/update_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "UpdateJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_ListJobs_sync", - "title": "Snippet for the list_jobs call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs.", - "file": "jobs/list_jobs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_jobs", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "ListJobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync", - "title": "Snippet for the aggregated_list_jobs call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs.", - "file": "jobs/aggregated_list_jobs.rb", - "language": "RUBY", - "client_method": { - "short_name": "aggregated_list_jobs", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "AggregatedListJobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync", - "title": "Snippet for the check_active_jobs call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs.", - "file": "jobs/check_active_jobs.rb", - "language": "RUBY", - "client_method": { - "short_name": "check_active_jobs", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "CheckActiveJobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_SnapshotJob_sync", - "title": "Snippet for the snapshot_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job.", - "file": "jobs/snapshot_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "snapshot_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "SnapshotJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Messages_ListJobMessages_sync", - "title": "Snippet for the list_job_messages call in the Messages service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages.", - "file": "messages/list_job_messages.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_job_messages", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse", - "client": { - "short_name": "Messages::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client" - }, - "method": { - "short_name": "ListJobMessages", - "full_name": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "service": { - "short_name": "Messages", - "full_name": "google.dataflow.v1beta3.MessagesV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync", - "title": "Snippet for the get_job_metrics call in the Metrics service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics.", - "file": "metrics/get_job_metrics.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_job_metrics", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::JobMetrics", - "client": { - "short_name": "Metrics::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" - }, - "method": { - "short_name": "GetJobMetrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "service": { - "short_name": "Metrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync", - "title": "Snippet for the get_job_execution_details call in the Metrics service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details.", - "file": "metrics/get_job_execution_details.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_job_execution_details", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails", - "client": { - "short_name": "Metrics::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" - }, - "method": { - "short_name": "GetJobExecutionDetails", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "service": { - "short_name": "Metrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync", - "title": "Snippet for the get_stage_execution_details call in the Metrics service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details.", - "file": "metrics/get_stage_execution_details.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_stage_execution_details", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails", - "client": { - "short_name": "Metrics::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" - }, - "method": { - "short_name": "GetStageExecutionDetails", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "service": { - "short_name": "Metrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", - "title": "Snippet for the create_job_from_template call in the TemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template.", - "file": "templates_service/create_job_from_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_job_from_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "TemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" - }, - "method": { - "short_name": "CreateJobFromTemplate", - "full_name": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", - "service": { - "short_name": "TemplatesService", - "full_name": "google.dataflow.v1beta3.TemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync", - "title": "Snippet for the launch_template call in the TemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template.", - "file": "templates_service/launch_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "launch_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse", - "client": { - "short_name": "TemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" - }, - "method": { - "short_name": "LaunchTemplate", - "full_name": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", - "service": { - "short_name": "TemplatesService", - "full_name": "google.dataflow.v1beta3.TemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", - "title": "Snippet for the get_template call in the TemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template.", - "file": "templates_service/get_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse", - "client": { - "short_name": "TemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" - }, - "method": { - "short_name": "GetTemplate", - "full_name": "google.dataflow.v1beta3.TemplatesService.GetTemplate", - "service": { - "short_name": "TemplatesService", - "full_name": "google.dataflow.v1beta3.TemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync", - "title": "Snippet for the launch_flex_template call in the FlexTemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template.", - "file": "flex_templates_service/launch_flex_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "launch_flex_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse", - "client": { - "short_name": "FlexTemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client" - }, - "method": { - "short_name": "LaunchFlexTemplate", - "full_name": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", - "service": { - "short_name": "FlexTemplatesService", - "full_name": "google.dataflow.v1beta3.FlexTemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb deleted file mode 100644 index 26f922f93b7a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the create_job_from_template call in the TemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template. -# -def create_job_from_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new - - # Call the create_job_from_template method. - result = client.create_job_from_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb deleted file mode 100644 index c7b6af16bd9f..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_template call in the TemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template. -# -def get_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new - - # Call the get_template method. - result = client.get_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. - p result -end -# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb deleted file mode 100644 index 4ae948746683..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the launch_template call in the TemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template. -# -def launch_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new - - # Call the launch_template method. - result = client.launch_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. - p result -end -# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb deleted file mode 100644 index 600598d57b37..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb +++ /dev/null @@ -1,156 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_launch_flex_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - launch_parameter = {} - location = "hello world" - validate_only = true - - launch_flex_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.stub :transcode_launch_flex_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, launch_flex_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, launch_flex_template_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb deleted file mode 100644 index eea77dd3921e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb +++ /dev/null @@ -1,168 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/flex_templates_service" - -class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_launch_flex_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - launch_parameter = {} - location = "hello world" - validate_only = true - - launch_flex_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :launch_flex_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter), request["launch_parameter"] - assert_equal "hello world", request["location"] - assert_equal true, request["validate_only"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, launch_flex_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, launch_flex_template_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb deleted file mode 100644 index f3581d57744c..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb +++ /dev/null @@ -1,451 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/jobs_pb" -require "google/cloud/dataflow/v1beta3/jobs/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job = {} - view = :JOB_VIEW_UNKNOWN - replace_job_id = "hello world" - location = "hello world" - - create_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_create_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_job_client_stub.call_count - end - end - end - - def test_get_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - view = :JOB_VIEW_UNKNOWN - location = "hello world" - - get_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_get_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_job_client_stub.call_count - end - end - end - - def test_update_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - job = {} - location = "hello world" - update_mask = {} - - update_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_update_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_job_client_stub.call_count - end - end - end - - def test_list_jobs - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_list_jobs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_jobs_client_stub.call_count - end - end - end - - def test_aggregated_list_jobs - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - aggregated_list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_aggregated_list_jobs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, aggregated_list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, aggregated_list_jobs_client_stub.call_count - end - end - end - - def test_snapshot_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - ttl = {} - location = "hello world" - snapshot_sources = true - description = "hello world" - - snapshot_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_snapshot_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, snapshot_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, snapshot_job_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb deleted file mode 100644 index e34decfc428d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb +++ /dev/null @@ -1,579 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/jobs_pb" -require "google/cloud/dataflow/v1beta3/jobs" - -class ::Google::Cloud::Dataflow::V1beta3::Jobs::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job = {} - view = :JOB_VIEW_UNKNOWN - replace_job_id = "hello world" - location = "hello world" - - create_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal "hello world", request["replace_job_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_job_client_stub.call_rpc_count - end - end - - def test_get_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - view = :JOB_VIEW_UNKNOWN - location = "hello world" - - get_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_job_client_stub.call_rpc_count - end - end - - def test_update_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - job = {} - location = "hello world" - update_mask = {} - - update_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] - assert_equal "hello world", request["location"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert request.has_update_mask? - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_job_client_stub.call_rpc_count - end - end - - def test_list_jobs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_jobs, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request - assert_equal :UNKNOWN, request["filter"] - assert_equal "hello world", request["project_id"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["location"] - assert_equal "hello world", request["name"] - assert request.has_name? - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_jobs_client_stub.call_rpc_count - end - end - - def test_aggregated_list_jobs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - aggregated_list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :aggregated_list_jobs, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request - assert_equal :UNKNOWN, request["filter"] - assert_equal "hello world", request["project_id"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["location"] - assert_equal "hello world", request["name"] - assert request.has_name? - refute_nil options - end - - Gapic::ServiceStub.stub :new, aggregated_list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, aggregated_list_jobs_client_stub.call_rpc_count - end - end - - def test_check_active_jobs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - - check_active_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :check_active_jobs, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, request - assert_equal "hello world", request["project_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, check_active_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.check_active_jobs({ project_id: project_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.check_active_jobs project_id: project_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.check_active_jobs ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.check_active_jobs({ project_id: project_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.check_active_jobs(::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, check_active_jobs_client_stub.call_rpc_count - end - end - - def test_snapshot_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - ttl = {} - location = "hello world" - snapshot_sources = true - description = "hello world" - - snapshot_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :snapshot_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] - assert_equal "hello world", request["location"] - assert_equal true, request["snapshot_sources"] - assert_equal "hello world", request["description"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, snapshot_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, snapshot_job_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb deleted file mode 100644 index 9d98fbddafb4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb +++ /dev/null @@ -1,160 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/messages_pb" -require "google/cloud/dataflow/v1beta3/messages/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_job_messages - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - location = "hello world" - - list_job_messages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.stub :transcode_list_job_messages_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_job_messages_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_job_messages_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb deleted file mode 100644 index fc61069e09ce..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb +++ /dev/null @@ -1,181 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/messages_pb" -require "google/cloud/dataflow/v1beta3/messages" - -class ::Google::Cloud::Dataflow::V1beta3::Messages::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_job_messages - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - location = "hello world" - - list_job_messages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_job_messages, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal :JOB_MESSAGE_IMPORTANCE_UNKNOWN, request["minimum_importance"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_job_messages_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_job_messages_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb deleted file mode 100644 index 16beba2b9d68..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb +++ /dev/null @@ -1,275 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/metrics_pb" -require "google/cloud/dataflow/v1beta3/metrics/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_job_metrics - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - start_time = {} - location = "hello world" - - get_job_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_metrics_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_job_metrics_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_job_metrics_client_stub.call_count - end - end - end - - def test_get_job_execution_details - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - page_size = 42 - page_token = "hello world" - - get_job_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_execution_details_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_job_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_job_execution_details_client_stub.call_count - end - end - end - - def test_get_stage_execution_details - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - stage_id = "hello world" - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - - get_stage_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_stage_execution_details_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_stage_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_stage_execution_details_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb deleted file mode 100644 index f50377f49643..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb +++ /dev/null @@ -1,316 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/metrics_pb" -require "google/cloud/dataflow/v1beta3/metrics" - -class ::Google::Cloud::Dataflow::V1beta3::Metrics::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_job_metrics - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - start_time = {} - location = "hello world" - - get_job_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_job_metrics, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_job_metrics_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_job_metrics_client_stub.call_rpc_count - end - end - - def test_get_job_execution_details - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - page_size = 42 - page_token = "hello world" - - get_job_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_job_execution_details, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_job_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_job_execution_details_client_stub.call_rpc_count - end - end - - def test_get_stage_execution_details - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - stage_id = "hello world" - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - - get_stage_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_stage_execution_details, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal "hello world", request["location"] - assert_equal "hello world", request["stage_id"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_stage_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_stage_execution_details_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb deleted file mode 100644 index 2cb7d22a9fc3..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb +++ /dev/null @@ -1,267 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/snapshots_pb" -require "google/cloud/dataflow/v1beta3/snapshots/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_snapshot - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - get_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_get_snapshot_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_count - end - end - end - - def test_delete_snapshot - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - delete_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_delete_snapshot_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_count - end - end - end - - def test_list_snapshots - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - - list_snapshots_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_list_snapshots_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_snapshots project_id: project_id, job_id: job_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb deleted file mode 100644 index e7cd1d6620f5..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb +++ /dev/null @@ -1,290 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/snapshots_pb" -require "google/cloud/dataflow/v1beta3/snapshots" - -class ::Google::Cloud::Dataflow::V1beta3::Snapshots::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_snapshot, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["snapshot_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_rpc_count - end - end - - def test_delete_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_snapshot, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["snapshot_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_rpc_count - end - end - - def test_list_snapshots - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - - list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_snapshots, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_snapshots project_id: project_id, job_id: job_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb deleted file mode 100644 index 5cada9799f44..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb +++ /dev/null @@ -1,273 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/templates_service/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job_from_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_name = "hello world" - gcs_path = "hello world" - parameters = {} - environment = {} - location = "hello world" - - create_job_from_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_create_job_from_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_job_from_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_job_from_template_client_stub.call_count - end - end - end - - def test_launch_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - validate_only = true - gcs_path = "hello world" - launch_parameters = {} - location = "hello world" - - launch_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_launch_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, launch_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, launch_template_client_stub.call_count - end - end - end - - def test_get_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - gcs_path = "hello world" - view = :METADATA_ONLY - location = "hello world" - - get_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_get_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_template_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb deleted file mode 100644 index 84507da8e8ce..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb +++ /dev/null @@ -1,305 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/templates_service" - -class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job_from_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_name = "hello world" - gcs_path = "hello world" - parameters = {} - environment = {} - location = "hello world" - - create_job_from_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_job_from_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_name"] - assert_equal "hello world", request["gcs_path"] - assert_equal :gcs_path, request.template - assert_equal({}, request["parameters"].to_h) - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment), request["environment"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_job_from_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_job_from_template_client_stub.call_rpc_count - end - end - - def test_launch_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - validate_only = true - gcs_path = "hello world" - launch_parameters = {} - location = "hello world" - - launch_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :launch_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["gcs_path"] - assert_equal :gcs_path, request.template - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters), request["launch_parameters"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, launch_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, launch_template_client_stub.call_rpc_count - end - end - - def test_get_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - gcs_path = "hello world" - view = :METADATA_ONLY - location = "hello world" - - get_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["gcs_path"] - assert_equal :gcs_path, request.template - assert_equal :METADATA_ONLY, request["view"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_template_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct" From 3f02bcc08c48be47892881b39820ba6a555e724a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 31 Mar 2026 00:03:12 +0000 Subject: [PATCH 3/4] feat: add sha256 field to Package proto PiperOrigin-RevId: 891887357 Source-Link: https://github.com/googleapis/googleapis/commit/54ba514760e90ad1d3180e28b61d5f998420bc1d Source-Link: https://github.com/googleapis/googleapis-gen/commit/54b07e8a20f58156b042f6b06df3bad728924d30 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmbG93LXYxYmV0YTMvLk93bEJvdC55YW1sIiwiaCI6IjU0YjA3ZThhMjBmNTgxNTZiMDQyZjZiMDZkZjNiYWQ3Mjg5MjRkMzAifQ== --- .../google-cloud-dataflow-v1beta3/.gitignore | 22 + .../.repo-metadata.json | 19 + .../.rubocop.yml | 33 + .../google-cloud-dataflow-v1beta3/.toys.rb | 28 + .../google-cloud-dataflow-v1beta3/.yardopts | 12 + .../AUTHENTICATION.md | 122 ++ .../CHANGELOG.md | 2 + .../google-cloud-dataflow-v1beta3/Gemfile | 14 + .../google-cloud-dataflow-v1beta3/LICENSE.md | 201 +++ .../google-cloud-dataflow-v1beta3/README.md | 154 +++ .../google-cloud-dataflow-v1beta3/Rakefile | 169 +++ .../gapic_metadata.json | 153 +++ .../google-cloud-dataflow-v1beta3.gemspec | 28 + .../lib/google-cloud-dataflow-v1beta3.rb | 21 + .../lib/google/cloud/dataflow/v1beta3.rb | 50 + .../v1beta3/flex_templates_service.rb | 54 + .../v1beta3/flex_templates_service/client.rb | 484 +++++++ .../flex_templates_service/credentials.rb | 52 + .../v1beta3/flex_templates_service/rest.rb | 51 + .../flex_templates_service/rest/client.rb | 431 ++++++ .../rest/service_stub.rb | 144 ++ .../lib/google/cloud/dataflow/v1beta3/jobs.rb | 55 + .../cloud/dataflow/v1beta3/jobs/client.rb | 1170 +++++++++++++++++ .../dataflow/v1beta3/jobs/credentials.rb | 52 + .../cloud/dataflow/v1beta3/jobs/rest.rb | 52 + .../dataflow/v1beta3/jobs/rest/client.rb | 977 ++++++++++++++ .../v1beta3/jobs/rest/service_stub.rb | 499 +++++++ .../google/cloud/dataflow/v1beta3/messages.rb | 54 + .../cloud/dataflow/v1beta3/messages/client.rb | 514 ++++++++ .../dataflow/v1beta3/messages/credentials.rb | 52 + .../cloud/dataflow/v1beta3/messages/rest.rb | 51 + .../dataflow/v1beta3/messages/rest/client.rb | 458 +++++++ .../v1beta3/messages/rest/service_stub.rb | 152 +++ .../google/cloud/dataflow/v1beta3/metrics.rb | 54 + .../cloud/dataflow/v1beta3/metrics/client.rb | 745 +++++++++++ .../dataflow/v1beta3/metrics/credentials.rb | 52 + .../cloud/dataflow/v1beta3/metrics/rest.rb | 51 + .../dataflow/v1beta3/metrics/rest/client.rb | 660 ++++++++++ .../v1beta3/metrics/rest/service_stub.rb | 279 ++++ .../lib/google/cloud/dataflow/v1beta3/rest.rb | 42 + .../cloud/dataflow/v1beta3/snapshots.rb | 54 + .../dataflow/v1beta3/snapshots/client.rb | 688 ++++++++++ .../dataflow/v1beta3/snapshots/credentials.rb | 52 + .../cloud/dataflow/v1beta3/snapshots/rest.rb | 51 + .../dataflow/v1beta3/snapshots/rest/client.rb | 606 +++++++++ .../v1beta3/snapshots/rest/service_stub.rb | 300 +++++ .../dataflow/v1beta3/templates_service.rb | 54 + .../v1beta3/templates_service/client.rb | 730 ++++++++++ .../v1beta3/templates_service/credentials.rb | 52 + .../v1beta3/templates_service/rest.rb | 51 + .../v1beta3/templates_service/rest/client.rb | 657 +++++++++ .../templates_service/rest/service_stub.rb | 292 ++++ .../google/cloud/dataflow/v1beta3/version.rb | 28 + .../google/dataflow/v1beta3/environment_pb.rb | 43 + .../lib/google/dataflow/v1beta3/jobs_pb.rb | 69 + .../dataflow/v1beta3/jobs_services_pb.rb | 93 ++ .../google/dataflow/v1beta3/messages_pb.rb | 33 + .../dataflow/v1beta3/messages_services_pb.rb | 51 + .../lib/google/dataflow/v1beta3/metrics_pb.rb | 47 + .../dataflow/v1beta3/metrics_services_pb.rb | 60 + .../google/dataflow/v1beta3/snapshots_pb.rb | 33 + .../dataflow/v1beta3/snapshots_services_pb.rb | 49 + .../google/dataflow/v1beta3/streaming_pb.rb | 34 + .../google/dataflow/v1beta3/templates_pb.rb | 51 + .../dataflow/v1beta3/templates_services_pb.rb | 84 ++ .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 589 +++++++++ .../proto_docs/google/api/field_behavior.rb | 85 ++ .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 ++++ .../google/dataflow/v1beta3/environment.rb | 682 ++++++++++ .../google/dataflow/v1beta3/jobs.rb | 1100 ++++++++++++++++ .../google/dataflow/v1beta3/messages.rb | 225 ++++ .../google/dataflow/v1beta3/metrics.rb | 517 ++++++++ .../google/dataflow/v1beta3/snapshots.rb | 160 +++ .../google/dataflow/v1beta3/streaming.rb | 292 ++++ .../google/dataflow/v1beta3/templates.rb | 856 ++++++++++++ .../proto_docs/google/protobuf/any.rb | 145 ++ .../proto_docs/google/protobuf/duration.rb | 98 ++ .../proto_docs/google/protobuf/field_mask.rb | 229 ++++ .../proto_docs/google/protobuf/struct.rb | 108 ++ .../proto_docs/google/protobuf/timestamp.rb | 127 ++ .../proto_docs/google/rpc/status.rb | 48 + .../snippets/Gemfile | 32 + .../launch_flex_template.rb | 47 + .../snippets/jobs/aggregated_list_jobs.rb | 51 + .../snippets/jobs/check_active_jobs.rb | 47 + .../snippets/jobs/create_job.rb | 47 + .../snippets/jobs/get_job.rb | 47 + .../snippets/jobs/list_jobs.rb | 51 + .../snippets/jobs/snapshot_job.rb | 47 + .../snippets/jobs/update_job.rb | 47 + .../snippets/messages/list_job_messages.rb | 51 + .../metrics/get_job_execution_details.rb | 51 + .../snippets/metrics/get_job_metrics.rb | 47 + .../metrics/get_stage_execution_details.rb | 51 + .../snippets/snapshots/delete_snapshot.rb | 47 + .../snippets/snapshots/get_snapshot.rb | 47 + .../snippets/snapshots/list_snapshots.rb | 47 + ...ppet_metadata_google.dataflow.v1beta3.json | 735 +++++++++++ .../create_job_from_template.rb | 47 + .../templates_service/get_template.rb | 47 + .../templates_service/launch_template.rb | 47 + .../flex_templates_service_rest_test.rb | 156 +++ .../v1beta3/flex_templates_service_test.rb | 168 +++ .../cloud/dataflow/v1beta3/jobs_rest_test.rb | 451 +++++++ .../cloud/dataflow/v1beta3/jobs_test.rb | 579 ++++++++ .../dataflow/v1beta3/messages_rest_test.rb | 160 +++ .../cloud/dataflow/v1beta3/messages_test.rb | 181 +++ .../dataflow/v1beta3/metrics_rest_test.rb | 275 ++++ .../cloud/dataflow/v1beta3/metrics_test.rb | 316 +++++ .../dataflow/v1beta3/snapshots_rest_test.rb | 267 ++++ .../cloud/dataflow/v1beta3/snapshots_test.rb | 290 ++++ .../v1beta3/templates_service_rest_test.rb | 273 ++++ .../v1beta3/templates_service_test.rb | 305 +++++ .../test/helper.rb | 26 + 116 files changed, 23118 insertions(+) create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/README.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb create mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore b/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json new file mode 100644 index 000000000000..01533f5ff2d7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json @@ -0,0 +1,19 @@ +{ + "api_id": "dataflow.googleapis.com", + "api_shortname": "dataflow", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest", + "distribution_name": "google-cloud-dataflow-v1beta3", + "is_cloud": true, + "language": "ruby", + "name": "dataflow", + "name_pretty": "Dataflow V1beta3 API", + "product_documentation": "https://cloud.google.com/dataflow", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details.", + "ruby-cloud-env-prefix": "DATAFLOW", + "ruby-cloud-product-url": "https://cloud.google.com/dataflow", + "ruby-cloud-service-override": "JobsV1Beta3=Jobs;MessagesV1Beta3=Messages;MetricsV1Beta3=Metrics;SnapshotsV1Beta3=Snapshots", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml b/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml new file mode 100644 index 000000000000..4c6e4d8dc75b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-dataflow-v1beta3.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-dataflow-v1beta3.rb" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts b/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts new file mode 100644 index 000000000000..13c1196b1b73 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Dataflow V1beta3 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md new file mode 100644 index 000000000000..0f4275c66d02 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-dataflow-v1beta3 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-dataflow-v1beta3 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/dataflow/v1beta3" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/dataflow/v1beta3" + +::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-dataflow-v1beta3 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/dataflow/v1beta3" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md new file mode 100644 index 000000000000..68ecd2146243 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Dataflow V1beta3 API + +Manages Google Cloud Dataflow projects on Google Cloud Platform. + +Dataflow is a managed service for executing a wide variety of data processing patterns. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Dataflow V1beta3 API. Most users should consider using +the main client gem, +[google-cloud-dataflow](https://rubygems.org/gems/google-cloud-dataflow). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-dataflow-v1beta3 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/dataflow.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/dataflow/v1beta3" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new +request = ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new # (request fields as keyword arguments...) +response = client.get_snapshot request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/dataflow) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/dataflow/v1beta3" +require "logger" + +client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-dataflow`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-dataflow-v1beta3`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-dataflow`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-dataflow-v1beta3`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile new file mode 100644 index 000000000000..a659823f1fc9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-dataflow-v1beta3 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["DATAFLOW_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["DATAFLOW_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["DATAFLOW_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or DATAFLOW_TEST_PROJECT=test123 DATAFLOW_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/dataflow/v1beta3/snapshots/credentials" + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["DATAFLOW_PROJECT"] = project + ENV["DATAFLOW_TEST_PROJECT"] = project + ENV["DATAFLOW_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-dataflow-v1beta3 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-dataflow-v1beta3 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-dataflow-v1beta3" + header "google-cloud-dataflow-v1beta3 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-dataflow-v1beta3 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-dataflow-v1beta3 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-dataflow-v1beta3 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-dataflow-v1beta3 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json new file mode 100644 index 000000000000..f1f58ae8185e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json @@ -0,0 +1,153 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.dataflow.v1beta3", + "libraryPackage": "::Google::Cloud::Dataflow::V1beta3", + "services": { + "SnapshotsV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client", + "rpcs": { + "GetSnapshot": { + "methods": [ + "get_snapshot" + ] + }, + "DeleteSnapshot": { + "methods": [ + "delete_snapshot" + ] + }, + "ListSnapshots": { + "methods": [ + "list_snapshots" + ] + } + } + } + } + }, + "JobsV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client", + "rpcs": { + "CreateJob": { + "methods": [ + "create_job" + ] + }, + "GetJob": { + "methods": [ + "get_job" + ] + }, + "UpdateJob": { + "methods": [ + "update_job" + ] + }, + "ListJobs": { + "methods": [ + "list_jobs" + ] + }, + "AggregatedListJobs": { + "methods": [ + "aggregated_list_jobs" + ] + }, + "CheckActiveJobs": { + "methods": [ + "check_active_jobs" + ] + }, + "SnapshotJob": { + "methods": [ + "snapshot_job" + ] + } + } + } + } + }, + "MessagesV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Messages::Client", + "rpcs": { + "ListJobMessages": { + "methods": [ + "list_job_messages" + ] + } + } + } + } + }, + "MetricsV1Beta3": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client", + "rpcs": { + "GetJobMetrics": { + "methods": [ + "get_job_metrics" + ] + }, + "GetJobExecutionDetails": { + "methods": [ + "get_job_execution_details" + ] + }, + "GetStageExecutionDetails": { + "methods": [ + "get_stage_execution_details" + ] + } + } + } + } + }, + "TemplatesService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client", + "rpcs": { + "CreateJobFromTemplate": { + "methods": [ + "create_job_from_template" + ] + }, + "LaunchTemplate": { + "methods": [ + "launch_template" + ] + }, + "GetTemplate": { + "methods": [ + "get_template" + ] + } + } + } + } + }, + "FlexTemplatesService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client", + "rpcs": { + "LaunchFlexTemplate": { + "methods": [ + "launch_flex_template" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec b/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec new file mode 100644 index 000000000000..db5ea1646266 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec @@ -0,0 +1,28 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/dataflow/v1beta3/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-dataflow-v1beta3" + gem.version = Google::Cloud::Dataflow::V1beta3::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details." + gem.summary = "Manages Google Cloud Dataflow projects on Google Cloud Platform." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb new file mode 100644 index 000000000000..aa5266cf801f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/dataflow/v1beta3" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb new file mode 100644 index 000000000000..b7d17030dc2c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb @@ -0,0 +1,50 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataflow/v1beta3/snapshots" +require "google/cloud/dataflow/v1beta3/jobs" +require "google/cloud/dataflow/v1beta3/messages" +require "google/cloud/dataflow/v1beta3/metrics" +require "google/cloud/dataflow/v1beta3/templates_service" +require "google/cloud/dataflow/v1beta3/flex_templates_service" +require "google/cloud/dataflow/v1beta3/version" + +module Google + module Cloud + module Dataflow + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module V1beta3 + end + end + end +end + +helper_path = ::File.join __dir__, "v1beta3", "_helpers.rb" +require "google/cloud/dataflow/v1beta3/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb new file mode 100644 index 000000000000..f8e1d85debf6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" +require "google/cloud/dataflow/v1beta3/flex_templates_service/client" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a service for Flex templates. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/flex_templates_service" + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + module FlexTemplatesService + end + end + end + end +end + +helper_path = ::File.join __dir__, "flex_templates_service", "helpers.rb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb new file mode 100644 index 000000000000..61043b858993 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb @@ -0,0 +1,484 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + ## + # Client for the FlexTemplatesService service. + # + # Provides a service for Flex templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :flex_templates_service_stub + + ## + # Configure the FlexTemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FlexTemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FlexTemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @flex_templates_service_stub.universe_domain + end + + ## + # Create a new FlexTemplatesService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FlexTemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/templates_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @flex_templates_service_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @flex_templates_service_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @flex_templates_service_stub.logger + end + + # Service calls + + ## + # Launch a job with a FlexTemplate. + # + # @overload launch_flex_template(request, options = nil) + # Pass arguments to `launch_flex_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) + # Pass arguments to `launch_flex_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] + # Required. Parameter to launch a job form Flex Template. + # @param location [::String] + # Required. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. E.g., us-central1, us-west1. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new + # + # # Call the launch_flex_template method. + # result = client.launch_flex_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + # p result + # + def launch_flex_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.launch_flex_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.launch_flex_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @flex_templates_service_stub.call_rpc :launch_flex_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the FlexTemplatesService API. + # + # This class represents the configuration for FlexTemplatesService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # launch_flex_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the FlexTemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `launch_flex_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_flex_template + + # @private + def initialize parent_rpcs = nil + launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template + @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb new file mode 100644 index 000000000000..a524500610ca --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + # Credentials for the FlexTemplatesService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb new file mode 100644 index 000000000000..3aadfffacf19 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a service for Flex templates. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + module FlexTemplatesService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb new file mode 100644 index 000000000000..6cf8063060b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb @@ -0,0 +1,431 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + module Rest + ## + # REST client for the FlexTemplatesService service. + # + # Provides a service for Flex templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :flex_templates_service_stub + + ## + # Configure the FlexTemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all FlexTemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the FlexTemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @flex_templates_service_stub.universe_domain + end + + ## + # Create a new FlexTemplatesService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the FlexTemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @flex_templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @flex_templates_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @flex_templates_service_stub.logger + end + + # Service calls + + ## + # Launch a job with a FlexTemplate. + # + # @overload launch_flex_template(request, options = nil) + # Pass arguments to `launch_flex_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) + # Pass arguments to `launch_flex_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] + # Required. Parameter to launch a job form Flex Template. + # @param location [::String] + # Required. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. E.g., us-central1, us-west1. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new + # + # # Call the launch_flex_template method. + # result = client.launch_flex_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + # p result + # + def launch_flex_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.launch_flex_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.launch_flex_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @flex_templates_service_stub.launch_flex_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the FlexTemplatesService REST API. + # + # This class represents the configuration for FlexTemplatesService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # launch_flex_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.launch_flex_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the FlexTemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `launch_flex_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_flex_template + + # @private + def initialize parent_rpcs = nil + launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template + @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb new file mode 100644 index 000000000000..a7f2edb4872a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb @@ -0,0 +1,144 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module FlexTemplatesService + module Rest + ## + # REST service stub for the FlexTemplatesService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the launch_flex_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] + # A result object deserialized from the server's reply + def launch_flex_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_launch_flex_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "launch_flex_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the launch_flex_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_launch_flex_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb new file mode 100644 index 000000000000..c0cacf23c900 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/jobs/credentials" +require "google/cloud/dataflow/v1beta3/jobs/client" +require "google/cloud/dataflow/v1beta3/jobs/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/jobs" + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/jobs/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + module Jobs + end + end + end + end +end + +helper_path = ::File.join __dir__, "jobs", "helpers.rb" +require "google/cloud/dataflow/v1beta3/jobs/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb new file mode 100644 index 000000000000..4cb43685a643 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb @@ -0,0 +1,1170 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/jobs_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + ## + # Client for the Jobs service. + # + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :jobs_stub + + ## + # Configure the Jobs Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Jobs clients + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Jobs Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @jobs_stub.universe_domain + end + + ## + # Create a new Jobs client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Jobs client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/jobs_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @jobs_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::JobsV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @jobs_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @jobs_stub.logger + end + + # Service calls + + ## + # Creates a Dataflow job. + # + # To create a job, we recommend using `projects.locations.jobs.create` with a + # [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.create` is not recommended, as your job will always start + # in `us-central1`. + # + # Do not enter confidential information when you supply string values using + # the API. + # + # @overload create_job(request, options = nil) + # Pass arguments to `create_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) + # Pass arguments to `create_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The job to create. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param replace_job_id [::String] + # Deprecated. This field is now in the Job message. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new + # + # # Call the create_job method. + # result = client.create_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :create_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the state of the specified Cloud Dataflow job. + # + # To get the state of a job, we recommend using `projects.locations.jobs.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.get` is not recommended, as you can only get the state of + # jobs that are running in `us-central1`. + # + # @overload get_job(request, options = nil) + # Pass arguments to `get_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) + # Pass arguments to `get_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new + # + # # Call the get_job method. + # result = client.get_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def get_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :get_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the state of an existing Cloud Dataflow job. + # + # To update the state of an existing job, we recommend using + # `projects.locations.jobs.update` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.update` is not recommended, as you can only update the state + # of jobs that are running in `us-central1`. + # + # @overload update_job(request, options = nil) + # Pass arguments to `update_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) + # Pass arguments to `update_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The updated job. + # Only the job state is updatable; other fields will be ignored. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # The list of fields to update relative to Job. If empty, only + # RequestedJobState will be considered for update. If the FieldMask is not + # empty and RequestedJobState is none/empty, The fields specified in the + # update mask will be the only ones considered for update. If both + # RequestedJobState and update_mask are specified, an error will be returned + # as we cannot update both state and mask. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new + # + # # Call the update_job method. + # result = client.update_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def update_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :update_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project. + # + # To list the jobs of a project in a region, we recommend using + # `projects.locations.jobs.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To + # list the all jobs across all regions, use `projects.jobs.aggregated`. Using + # `projects.jobs.list` is not recommended, because you can only get the list + # of jobs that are running in `us-central1`. + # + # `projects.locations.jobs.list` and `projects.jobs.list` support filtering + # the list of jobs by name. Filtering by name isn't supported by + # `projects.jobs.aggregated`. + # + # @overload list_jobs(request, options = nil) + # Pass arguments to `list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the list_jobs method. + # result = client.list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :list_jobs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @jobs_stub, :list_jobs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project across all regions. + # + # **Note:** This method doesn't support filtering the list of + # jobs by name. + # + # @overload aggregated_list_jobs(request, options = nil) + # Pass arguments to `aggregated_list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the aggregated_list_jobs method. + # result = client.aggregated_list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def aggregated_list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :aggregated_list_jobs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Check for existence of active jobs in the given project across all regions. + # + # @overload check_active_jobs(request, options = nil) + # Pass arguments to `check_active_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload check_active_jobs(project_id: nil) + # Pass arguments to `check_active_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project which owns the jobs. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new + # + # # Call the check_active_jobs method. + # result = client.check_active_jobs request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. + # p result + # + def check_active_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.check_active_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.check_active_jobs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.check_active_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :check_active_jobs, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Snapshot the state of a streaming job. + # + # @overload snapshot_job(request, options = nil) + # Pass arguments to `snapshot_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) + # Pass arguments to `snapshot_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project which owns the job to be snapshotted. + # @param job_id [::String] + # The job to be snapshotted. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # TTL for the snapshot. + # @param location [::String] + # The location that contains this job. + # @param snapshot_sources [::Boolean] + # If true, perform snapshots for sources which support this. + # @param description [::String] + # User specified description of the snapshot. Maybe empty. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new + # + # # Call the snapshot_job method. + # result = client.snapshot_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def snapshot_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.snapshot_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, + metadata: metadata, + retry_policy: @config.rpcs.snapshot_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.call_rpc :snapshot_job, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Jobs API. + # + # This class represents the configuration for Jobs, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Jobs API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job + ## + # RPC-specific configuration for `get_job` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job + ## + # RPC-specific configuration for `update_job` + # @return [::Gapic::Config::Method] + # + attr_reader :update_job + ## + # RPC-specific configuration for `list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_jobs + ## + # RPC-specific configuration for `aggregated_list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregated_list_jobs + ## + # RPC-specific configuration for `check_active_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :check_active_jobs + ## + # RPC-specific configuration for `snapshot_job` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_job + + # @private + def initialize parent_rpcs = nil + create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job + @create_job = ::Gapic::Config::Method.new create_job_config + get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job + @get_job = ::Gapic::Config::Method.new get_job_config + update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job + @update_job = ::Gapic::Config::Method.new update_job_config + list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs + @list_jobs = ::Gapic::Config::Method.new list_jobs_config + aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs + @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config + check_active_jobs_config = parent_rpcs.check_active_jobs if parent_rpcs.respond_to? :check_active_jobs + @check_active_jobs = ::Gapic::Config::Method.new check_active_jobs_config + snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job + @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb new file mode 100644 index 000000000000..f99e81697289 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + # Credentials for the Jobs API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb new file mode 100644 index 000000000000..b2134dbdc152 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/jobs/credentials" +require "google/cloud/dataflow/v1beta3/jobs/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/jobs/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + module Jobs + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/jobs/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb new file mode 100644 index 000000000000..d38727616da7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb @@ -0,0 +1,977 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/jobs_pb" +require "google/cloud/dataflow/v1beta3/jobs/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + module Rest + ## + # REST client for the Jobs service. + # + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :jobs_stub + + ## + # Configure the Jobs Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Jobs clients + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Jobs Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @jobs_stub.universe_domain + end + + ## + # Create a new Jobs REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Jobs client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @jobs_stub = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @jobs_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @jobs_stub.logger + end + + # Service calls + + ## + # Creates a Dataflow job. + # + # To create a job, we recommend using `projects.locations.jobs.create` with a + # [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.create` is not recommended, as your job will always start + # in `us-central1`. + # + # Do not enter confidential information when you supply string values using + # the API. + # + # @overload create_job(request, options = nil) + # Pass arguments to `create_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) + # Pass arguments to `create_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The job to create. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param replace_job_id [::String] + # Deprecated. This field is now in the Job message. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new + # + # # Call the create_job method. + # result = client.create_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.create_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the state of the specified Cloud Dataflow job. + # + # To get the state of a job, we recommend using `projects.locations.jobs.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.get` is not recommended, as you can only get the state of + # jobs that are running in `us-central1`. + # + # @overload get_job(request, options = nil) + # Pass arguments to `get_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) + # Pass arguments to `get_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new + # + # # Call the get_job method. + # result = client.get_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def get_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.get_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the state of an existing Cloud Dataflow job. + # + # To update the state of an existing job, we recommend using + # `projects.locations.jobs.update` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.update` is not recommended, as you can only update the state + # of jobs that are running in `us-central1`. + # + # @overload update_job(request, options = nil) + # Pass arguments to `update_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) + # Pass arguments to `update_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @param job_id [::String] + # The job ID. + # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] + # The updated job. + # Only the job state is updatable; other fields will be ignored. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # The list of fields to update relative to Job. If empty, only + # RequestedJobState will be considered for update. If the FieldMask is not + # empty and RequestedJobState is none/empty, The fields specified in the + # update mask will be the only ones considered for update. If both + # RequestedJobState and update_mask are specified, an error will be returned + # as we cannot update both state and mask. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new + # + # # Call the update_job method. + # result = client.update_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def update_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.update_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project. + # + # To list the jobs of a project in a region, we recommend using + # `projects.locations.jobs.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To + # list the all jobs across all regions, use `projects.jobs.aggregated`. Using + # `projects.jobs.list` is not recommended, because you can only get the list + # of jobs that are running in `us-central1`. + # + # `projects.locations.jobs.list` and `projects.jobs.list` support filtering + # the list of jobs by name. Filtering by name isn't supported by + # `projects.jobs.aggregated`. + # + # @overload list_jobs(request, options = nil) + # Pass arguments to `list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the list_jobs method. + # result = client.list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.list_jobs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :list_jobs, "jobs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List the jobs of a project across all regions. + # + # **Note:** This method doesn't support filtering the list of + # jobs by name. + # + # @overload aggregated_list_jobs(request, options = nil) + # Pass arguments to `aggregated_list_jobs` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) + # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @param project_id [::String] + # The project which owns the jobs. + # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @param page_size [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @param page_token [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @param name [::String] + # Optional. The job name. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + # + # # Call the aggregated_list_jobs method. + # result = client.aggregated_list_jobs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + # p item + # end + # + def aggregated_list_jobs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.aggregated_list_jobs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, "jobs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Snapshot the state of a streaming job. + # + # @overload snapshot_job(request, options = nil) + # Pass arguments to `snapshot_job` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) + # Pass arguments to `snapshot_job` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project which owns the job to be snapshotted. + # @param job_id [::String] + # The job to be snapshotted. + # @param ttl [::Google::Protobuf::Duration, ::Hash] + # TTL for the snapshot. + # @param location [::String] + # The location that contains this job. + # @param snapshot_sources [::Boolean] + # If true, perform snapshots for sources which support this. + # @param description [::String] + # User specified description of the snapshot. Maybe empty. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new + # + # # Call the snapshot_job method. + # result = client.snapshot_job request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def snapshot_job request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.snapshot_job.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.snapshot_job.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @jobs_stub.snapshot_job request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Jobs REST API. + # + # This class represents the configuration for Jobs REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Jobs API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job + ## + # RPC-specific configuration for `get_job` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job + ## + # RPC-specific configuration for `update_job` + # @return [::Gapic::Config::Method] + # + attr_reader :update_job + ## + # RPC-specific configuration for `list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_jobs + ## + # RPC-specific configuration for `aggregated_list_jobs` + # @return [::Gapic::Config::Method] + # + attr_reader :aggregated_list_jobs + ## + # RPC-specific configuration for `snapshot_job` + # @return [::Gapic::Config::Method] + # + attr_reader :snapshot_job + + # @private + def initialize parent_rpcs = nil + create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job + @create_job = ::Gapic::Config::Method.new create_job_config + get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job + @get_job = ::Gapic::Config::Method.new get_job_config + update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job + @update_job = ::Gapic::Config::Method.new update_job_config + list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs + @list_jobs = ::Gapic::Config::Method.new list_jobs_config + aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs + @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config + snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job + @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb new file mode 100644 index 000000000000..1e94a9ea3e84 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb @@ -0,0 +1,499 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/jobs_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Jobs + module Rest + ## + # REST service stub for the Jobs service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the create_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def create_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def get_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def update_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # A result object deserialized from the server's reply + def list_jobs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_jobs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the aggregated_list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] + # A result object deserialized from the server's reply + def aggregated_list_jobs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_jobs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "aggregated_list_jobs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the snapshot_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # A result object deserialized from the server's reply + def snapshot_job request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_snapshot_job_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "snapshot_job", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the create_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/jobs", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :put, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :put, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", + body: "job", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_jobs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the aggregated_list_jobs REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_aggregated_list_jobs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs:aggregated", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the snapshot_job REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_snapshot_job_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}:snapshot", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb new file mode 100644 index 000000000000..c1d10e975449 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/messages/credentials" +require "google/cloud/dataflow/v1beta3/messages/client" +require "google/cloud/dataflow/v1beta3/messages/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/messages" + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/messages/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + module Messages + end + end + end + end +end + +helper_path = ::File.join __dir__, "messages", "helpers.rb" +require "google/cloud/dataflow/v1beta3/messages/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb new file mode 100644 index 000000000000..a596f0e47f11 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb @@ -0,0 +1,514 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/messages_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + ## + # Client for the Messages service. + # + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :messages_stub + + ## + # Configure the Messages Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Messages clients + # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Messages Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @messages_stub.universe_domain + end + + ## + # Create a new Messages client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Messages client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/messages_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @messages_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::MessagesV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @messages_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @messages_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.messages.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.messages.list` is not recommended, as you can only request + # the status of jobs that are running in `us-central1`. + # + # @overload list_job_messages(request, options = nil) + # Pass arguments to `list_job_messages` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) + # Pass arguments to `list_job_messages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get messages about. + # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Filter to only get messages with importance >= level + # @param page_size [::Integer] + # If specified, determines the maximum number of messages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # If specified, return only messages with timestamps >= start_time. + # The default is the job creation time (i.e. beginning of messages). + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new + # + # # Call the list_job_messages method. + # result = client.list_job_messages request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. + # p item + # end + # + def list_job_messages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_job_messages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_job_messages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @messages_stub.call_rpc :list_job_messages, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @messages_stub, :list_job_messages, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Messages API. + # + # This class represents the configuration for Messages, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_job_messages to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Messages API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_job_messages` + # @return [::Gapic::Config::Method] + # + attr_reader :list_job_messages + + # @private + def initialize parent_rpcs = nil + list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages + @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb new file mode 100644 index 000000000000..5fb0a8534756 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + # Credentials for the Messages API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb new file mode 100644 index 000000000000..fea909c88cf0 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/messages/credentials" +require "google/cloud/dataflow/v1beta3/messages/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/messages/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + module Messages + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/messages/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb new file mode 100644 index 000000000000..b20337aec0f9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb @@ -0,0 +1,458 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/messages_pb" +require "google/cloud/dataflow/v1beta3/messages/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + module Rest + ## + # REST client for the Messages service. + # + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :messages_stub + + ## + # Configure the Messages Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Messages clients + # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Messages Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @messages_stub.universe_domain + end + + ## + # Create a new Messages REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Messages client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @messages_stub = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @messages_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @messages_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.messages.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.messages.list` is not recommended, as you can only request + # the status of jobs that are running in `us-central1`. + # + # @overload list_job_messages(request, options = nil) + # Pass arguments to `list_job_messages` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) + # Pass arguments to `list_job_messages` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get messages about. + # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Filter to only get messages with importance >= level + # @param page_size [::Integer] + # If specified, determines the maximum number of messages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # If specified, return only messages with timestamps >= start_time. + # The default is the job creation time (i.e. beginning of messages). + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new + # + # # Call the list_job_messages method. + # result = client.list_job_messages request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. + # p item + # end + # + def list_job_messages request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_job_messages.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_job_messages.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @messages_stub.list_job_messages request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @messages_stub, :list_job_messages, "job_messages", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Messages REST API. + # + # This class represents the configuration for Messages REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_job_messages to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_job_messages.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Messages API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_job_messages` + # @return [::Gapic::Config::Method] + # + attr_reader :list_job_messages + + # @private + def initialize parent_rpcs = nil + list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages + @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb new file mode 100644 index 000000000000..9c7b964ec66d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb @@ -0,0 +1,152 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/messages_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Messages + module Rest + ## + # REST service stub for the Messages service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_job_messages REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] + # A result object deserialized from the server's reply + def list_job_messages request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_job_messages_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_job_messages", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_job_messages REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_job_messages_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messages", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/messages", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb new file mode 100644 index 000000000000..8d12328c2c2e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/metrics/credentials" +require "google/cloud/dataflow/v1beta3/metrics/client" +require "google/cloud/dataflow/v1beta3/metrics/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/metrics" + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/metrics/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + module Metrics + end + end + end + end +end + +helper_path = ::File.join __dir__, "metrics", "helpers.rb" +require "google/cloud/dataflow/v1beta3/metrics/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb new file mode 100644 index 000000000000..712da86c1f98 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb @@ -0,0 +1,745 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/metrics_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + ## + # Client for the Metrics service. + # + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :metrics_stub + + ## + # Configure the Metrics Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Metrics clients + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Metrics Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @metrics_stub.universe_domain + end + + ## + # Create a new Metrics client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Metrics client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/metrics_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @metrics_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::MetricsV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @metrics_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @metrics_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.getMetrics` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.getMetrics` is not recommended, as you can only request the + # status of jobs that are running in `us-central1`. + # + # @overload get_job_metrics(request, options = nil) + # Pass arguments to `get_job_metrics` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) + # Pass arguments to `get_job_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get metrics for. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new + # + # # Call the get_job_metrics method. + # result = client.get_job_metrics request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. + # p result + # + def get_job_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_job_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_job_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.call_rpc :get_job_metrics, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of the job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_job_execution_details(request, options = nil) + # Pass arguments to `get_job_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) + # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param page_size [::Integer] + # If specified, determines the maximum number of stages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new + # + # # Call the get_job_execution_details method. + # result = client.get_job_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. + # p item + # end + # + def get_job_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_job_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_job_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.call_rpc :get_job_execution_details, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_job_execution_details, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of a stage of the + # job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_stage_execution_details(request, options = nil) + # Pass arguments to `get_stage_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) + # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param stage_id [::String] + # The stage for which to fetch information. + # @param page_size [::Integer] + # If specified, determines the maximum number of work items to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Lower time bound of work items to include, by start time. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Upper time bound of work items to include, by start time. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new + # + # # Call the get_stage_execution_details method. + # result = client.get_stage_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. + # p item + # end + # + def get_stage_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_stage_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + if request.stage_id + header_params["stage_id"] = request.stage_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_stage_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.call_rpc :get_stage_execution_details, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Metrics API. + # + # This class represents the configuration for Metrics, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_job_metrics to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Metrics API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_job_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_metrics + ## + # RPC-specific configuration for `get_job_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_execution_details + ## + # RPC-specific configuration for `get_stage_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_stage_execution_details + + # @private + def initialize parent_rpcs = nil + get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics + @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config + get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details + @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config + get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details + @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb new file mode 100644 index 000000000000..2bcfd26f1f2a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + # Credentials for the Metrics API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb new file mode 100644 index 000000000000..6e6edc9e99d4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/metrics/credentials" +require "google/cloud/dataflow/v1beta3/metrics/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/metrics/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + module Metrics + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/metrics/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb new file mode 100644 index 000000000000..be5f27b90cb1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb @@ -0,0 +1,660 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/metrics_pb" +require "google/cloud/dataflow/v1beta3/metrics/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + module Rest + ## + # REST client for the Metrics service. + # + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :metrics_stub + + ## + # Configure the Metrics Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Metrics clients + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Metrics Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @metrics_stub.universe_domain + end + + ## + # Create a new Metrics REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Metrics client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @metrics_stub = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @metrics_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @metrics_stub.logger + end + + # Service calls + + ## + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.getMetrics` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.getMetrics` is not recommended, as you can only request the + # status of jobs that are running in `us-central1`. + # + # @overload get_job_metrics(request, options = nil) + # Pass arguments to `get_job_metrics` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) + # Pass arguments to `get_job_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get metrics for. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new + # + # # Call the get_job_metrics method. + # result = client.get_job_metrics request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. + # p result + # + def get_job_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_job_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_job_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.get_job_metrics request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of the job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_job_execution_details(request, options = nil) + # Pass arguments to `get_job_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) + # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param page_size [::Integer] + # If specified, determines the maximum number of stages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new + # + # # Call the get_job_execution_details method. + # result = client.get_job_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. + # p item + # end + # + def get_job_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_job_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_job_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.get_job_execution_details request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_job_execution_details, "stages", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Request detailed information about the execution status of a stage of the + # job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + # + # @overload get_stage_execution_details(request, options = nil) + # Pass arguments to `get_stage_execution_details` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) + # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # A project id. + # @param job_id [::String] + # The job to get execution details for. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @param stage_id [::String] + # The stage for which to fetch information. + # @param page_size [::Integer] + # If specified, determines the maximum number of work items to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @param page_token [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @param start_time [::Google::Protobuf::Timestamp, ::Hash] + # Lower time bound of work items to include, by start time. + # @param end_time [::Google::Protobuf::Timestamp, ::Hash] + # Upper time bound of work items to include, by start time. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new + # + # # Call the get_stage_execution_details method. + # result = client.get_stage_execution_details request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. + # p item + # end + # + def get_stage_execution_details request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_stage_execution_details.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_stage_execution_details.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @metrics_stub.get_stage_execution_details request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, "workers", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Metrics REST API. + # + # This class represents the configuration for Metrics REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_job_metrics to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_job_metrics.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Metrics API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_job_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_metrics + ## + # RPC-specific configuration for `get_job_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_job_execution_details + ## + # RPC-specific configuration for `get_stage_execution_details` + # @return [::Gapic::Config::Method] + # + attr_reader :get_stage_execution_details + + # @private + def initialize parent_rpcs = nil + get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics + @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config + get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details + @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config + get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details + @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb new file mode 100644 index 000000000000..b9a5c226a709 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb @@ -0,0 +1,279 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/metrics_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Metrics + module Rest + ## + # REST service stub for the Metrics service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_job_metrics REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] + # A result object deserialized from the server's reply + def get_job_metrics request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_job_metrics_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_job_metrics", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_job_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] + # A result object deserialized from the server's reply + def get_job_execution_details request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_job_execution_details_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_job_execution_details", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_stage_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] + # A result object deserialized from the server's reply + def get_stage_execution_details request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_stage_execution_details_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_stage_execution_details", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_job_metrics REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_job_metrics_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metrics", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/metrics", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_job_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_job_execution_details_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_stage_execution_details REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_stage_execution_details_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false], + ["stage_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb new file mode 100644 index 000000000000..4878d2288fd4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/dataflow/v1beta3/snapshots/rest" +require "google/cloud/dataflow/v1beta3/jobs/rest" +require "google/cloud/dataflow/v1beta3/messages/rest" +require "google/cloud/dataflow/v1beta3/metrics/rest" +require "google/cloud/dataflow/v1beta3/templates_service/rest" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" +require "google/cloud/dataflow/v1beta3/version" + +module Google + module Cloud + module Dataflow + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/cloud/dataflow/v1beta3/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module V1beta3 + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb new file mode 100644 index 000000000000..b2632eb9c226 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/snapshots/credentials" +require "google/cloud/dataflow/v1beta3/snapshots/client" +require "google/cloud/dataflow/v1beta3/snapshots/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/snapshots" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/snapshots/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module Snapshots + end + end + end + end +end + +helper_path = ::File.join __dir__, "snapshots", "helpers.rb" +require "google/cloud/dataflow/v1beta3/snapshots/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb new file mode 100644 index 000000000000..a06a5acf5545 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb @@ -0,0 +1,688 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/snapshots_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + ## + # Client for the Snapshots service. + # + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :snapshots_stub + + ## + # Configure the Snapshots Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Snapshots clients + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Snapshots Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @snapshots_stub.universe_domain + end + + ## + # Create a new Snapshots client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Snapshots client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/snapshots_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @snapshots_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::SnapshotsV1Beta3::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @snapshots_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @snapshots_stub.logger + end + + # Service calls + + ## + # Gets information about a snapshot. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.snapshot_id + header_params["snapshot_id"] = request.snapshot_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.call_rpc :get_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a snapshot. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.snapshot_id + header_params["snapshot_id"] = request.snapshot_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists snapshots. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project ID to list snapshots for. + # @param job_id [::String] + # If specified, list snapshots created from this job. + # @param location [::String] + # The location to list snapshots in. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. + # p result + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + if request.job_id + header_params["job_id"] = request.job_id + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.call_rpc :list_snapshots, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Snapshots API. + # + # This class represents the configuration for Snapshots, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_snapshot to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Snapshots API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + + # @private + def initialize parent_rpcs = nil + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb new file mode 100644 index 000000000000..d08946d2bd72 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + # Credentials for the Snapshots API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb new file mode 100644 index 000000000000..c188b21f1ceb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/snapshots/credentials" +require "google/cloud/dataflow/v1beta3/snapshots/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/snapshots/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + module Snapshots + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/snapshots/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb new file mode 100644 index 000000000000..494c212b5efb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb @@ -0,0 +1,606 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/snapshots_pb" +require "google/cloud/dataflow/v1beta3/snapshots/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + module Rest + ## + # REST client for the Snapshots service. + # + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :snapshots_stub + + ## + # Configure the Snapshots Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all Snapshots clients + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the Snapshots Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @snapshots_stub.universe_domain + end + + ## + # Create a new Snapshots REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Snapshots client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @snapshots_stub = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @snapshots_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @snapshots_stub.logger + end + + # Service calls + + ## + # Gets information about a snapshot. + # + # @overload get_snapshot(request, options = nil) + # Pass arguments to `get_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `get_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new + # + # # Call the get_snapshot method. + # result = client.get_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + # p result + # + def get_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.get_snapshot request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a snapshot. + # + # @overload delete_snapshot(request, options = nil) + # Pass arguments to `delete_snapshot` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) + # Pass arguments to `delete_snapshot` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @param snapshot_id [::String] + # The ID of the snapshot. + # @param location [::String] + # The location that contains this snapshot. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new + # + # # Call the delete_snapshot method. + # result = client.delete_snapshot request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. + # p result + # + def delete_snapshot request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_snapshot.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_snapshot.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.delete_snapshot request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists snapshots. + # + # @overload list_snapshots(request, options = nil) + # Pass arguments to `list_snapshots` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) + # Pass arguments to `list_snapshots` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # The project ID to list snapshots for. + # @param job_id [::String] + # If specified, list snapshots created from this job. + # @param location [::String] + # The location to list snapshots in. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new + # + # # Call the list_snapshots method. + # result = client.list_snapshots request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. + # p result + # + def list_snapshots request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_snapshots.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_snapshots.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @snapshots_stub.list_snapshots request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Snapshots REST API. + # + # This class represents the configuration for Snapshots REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_snapshot to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_snapshot.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Snapshots API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :get_snapshot + ## + # RPC-specific configuration for `delete_snapshot` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_snapshot + ## + # RPC-specific configuration for `list_snapshots` + # @return [::Gapic::Config::Method] + # + attr_reader :list_snapshots + + # @private + def initialize parent_rpcs = nil + get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot + @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config + delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot + @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config + list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots + @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb new file mode 100644 index 000000000000..7b9f03ac3dab --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb @@ -0,0 +1,300 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/snapshots_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module Snapshots + module Rest + ## + # REST service stub for the Snapshots service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] + # A result object deserialized from the server's reply + def get_snapshot request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_snapshot", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] + # A result object deserialized from the server's reply + def delete_snapshot request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_snapshot", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_snapshots REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] + # A result object deserialized from the server's reply + def list_snapshots request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_snapshots", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_snapshot_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["snapshot_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/snapshots/{snapshot_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["snapshot_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_snapshot REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_snapshot_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["snapshot_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1b3/projects/{project_id}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_snapshots REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_snapshots_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false], + ["job_id", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/snapshots", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb new file mode 100644 index 000000000000..984f76abec78 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/templates_service/credentials" +require "google/cloud/dataflow/v1beta3/templates_service/client" +require "google/cloud/dataflow/v1beta3/templates_service/rest" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create Cloud Dataflow jobs from templates. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/dataflow/v1beta3/templates_service" + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/dataflow/v1beta3/templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + module TemplatesService + end + end + end + end +end + +helper_path = ::File.join __dir__, "templates_service", "helpers.rb" +require "google/cloud/dataflow/v1beta3/templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb new file mode 100644 index 000000000000..8720c371b9f8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb @@ -0,0 +1,730 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + ## + # Client for the TemplatesService service. + # + # Provides a method to create Cloud Dataflow jobs from templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :templates_service_stub + + ## + # Configure the TemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all TemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the TemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @templates_service_stub.universe_domain + end + + ## + # Create a new TemplatesService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the TemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/dataflow/v1beta3/templates_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @templates_service_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @templates_service_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @templates_service_stub.logger + end + + # Service calls + + ## + # Creates a Cloud Dataflow job from a template. Do not enter confidential + # information when you supply string values using the API. + # + # To create a job, we recommend using `projects.locations.templates.create` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.create` is not recommended, because your job will + # always start in `us-central1`. + # + # @overload create_job_from_template(request, options = nil) + # Pass arguments to `create_job_from_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) + # Pass arguments to `create_job_from_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param job_name [::String] + # Required. The job name to use for the created job. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @param parameters [::Hash{::String => ::String}] + # The runtime parameters to pass to the job. + # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] + # The runtime environment for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new + # + # # Call the create_job_from_template method. + # result = client.create_job_from_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job_from_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_job_from_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_job_from_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.call_rpc :create_job_from_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Launches a template. + # + # To launch a template, we recommend using + # `projects.locations.templates.launch` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.launch` is not recommended, because jobs launched + # from the template will always start in `us-central1`. + # + # @overload launch_template(request, options = nil) + # Pass arguments to `launch_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) + # Pass arguments to `launch_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @param gcs_path [::String] + # A Cloud Storage path to the template to use to create + # the job. + # Must be valid Cloud Storage URL, beginning with `gs://`. + # + # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] + # Parameters for launching a dynamic template. + # + # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] + # The parameters of the template to launch. Part of the + # body of the POST request. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new + # + # # Call the launch_template method. + # result = client.launch_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. + # p result + # + def launch_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.launch_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.launch_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.launch_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.call_rpc :launch_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get the template associated with a template. + # + # To get the template, we recommend using `projects.locations.templates.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.get` is not recommended, because only + # templates that are running in `us-central1` are retrieved. + # + # @overload get_template(request, options = nil) + # Pass arguments to `get_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) + # Pass arguments to `get_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] + # The view to retrieve. Defaults to METADATA_ONLY. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new + # + # # Call the get_template method. + # result = client.get_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. + # p result + # + def get_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.project_id + header_params["project_id"] = request.project_id + end + if request.location + header_params["location"] = request.location + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_template.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.call_rpc :get_template, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the TemplatesService API. + # + # This class represents the configuration for TemplatesService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job_from_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the TemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job_from_template` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job_from_template + ## + # RPC-specific configuration for `launch_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_template + ## + # RPC-specific configuration for `get_template` + # @return [::Gapic::Config::Method] + # + attr_reader :get_template + + # @private + def initialize parent_rpcs = nil + create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template + @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config + launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template + @launch_template = ::Gapic::Config::Method.new launch_template_config + get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template + @get_template = ::Gapic::Config::Method.new get_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb new file mode 100644 index 000000000000..8b457121f54e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + # Credentials for the TemplatesService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + self.env_vars = [ + "DATAFLOW_CREDENTIALS", + "DATAFLOW_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "DATAFLOW_CREDENTIALS_JSON", + "DATAFLOW_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb new file mode 100644 index 000000000000..9ae874ae87bc --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/dataflow/v1beta3/version" + +require "google/cloud/dataflow/v1beta3/templates_service/credentials" +require "google/cloud/dataflow/v1beta3/templates_service/rest/client" + +module Google + module Cloud + module Dataflow + module V1beta3 + ## + # Provides a method to create Cloud Dataflow jobs from templates. + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/dataflow/v1beta3/templates_service/rest" + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + module TemplatesService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/dataflow/v1beta3/templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb new file mode 100644 index 000000000000..fb47d4349562 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb @@ -0,0 +1,657 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/templates_service/rest/service_stub" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + module Rest + ## + # REST client for the TemplatesService service. + # + # Provides a method to create Cloud Dataflow jobs from templates. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :templates_service_stub + + ## + # Configure the TemplatesService Client class. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all TemplatesService clients + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the TemplatesService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @templates_service_stub.universe_domain + end + + ## + # Create a new TemplatesService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the TemplatesService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @templates_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @templates_service_stub.logger + end + + # Service calls + + ## + # Creates a Cloud Dataflow job from a template. Do not enter confidential + # information when you supply string values using the API. + # + # To create a job, we recommend using `projects.locations.templates.create` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.create` is not recommended, because your job will + # always start in `us-central1`. + # + # @overload create_job_from_template(request, options = nil) + # Pass arguments to `create_job_from_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) + # Pass arguments to `create_job_from_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param job_name [::String] + # Required. The job name to use for the created job. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @param parameters [::Hash{::String => ::String}] + # The runtime parameters to pass to the job. + # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] + # The runtime environment for the job. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new + # + # # Call the create_job_from_template method. + # result = client.create_job_from_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + # p result + # + def create_job_from_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_job_from_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_job_from_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.create_job_from_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Launches a template. + # + # To launch a template, we recommend using + # `projects.locations.templates.launch` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.launch` is not recommended, because jobs launched + # from the template will always start in `us-central1`. + # + # @overload launch_template(request, options = nil) + # Pass arguments to `launch_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) + # Pass arguments to `launch_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param validate_only [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @param gcs_path [::String] + # A Cloud Storage path to the template to use to create + # the job. + # Must be valid Cloud Storage URL, beginning with `gs://`. + # + # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] + # Parameters for launching a dynamic template. + # + # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] + # The parameters of the template to launch. Part of the + # body of the POST request. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new + # + # # Call the launch_template method. + # result = client.launch_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. + # p result + # + def launch_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.launch_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.launch_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.launch_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.launch_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get the template associated with a template. + # + # To get the template, we recommend using `projects.locations.templates.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.get` is not recommended, because only + # templates that are running in `us-central1` are retrieved. + # + # @overload get_template(request, options = nil) + # Pass arguments to `get_template` via a request object, either of type + # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) + # Pass arguments to `get_template` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param project_id [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @param gcs_path [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] + # The view to retrieve. Defaults to METADATA_ONLY. + # @param location [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/dataflow/v1beta3" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new + # + # # Call the get_template method. + # result = client.get_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. + # p result + # + def get_template request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_template.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_template.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_template.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @templates_service_stub.get_template request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the TemplatesService REST API. + # + # This class represents the configuration for TemplatesService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # create_job_from_template to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.create_job_from_template.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "dataflow.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the TemplatesService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `create_job_from_template` + # @return [::Gapic::Config::Method] + # + attr_reader :create_job_from_template + ## + # RPC-specific configuration for `launch_template` + # @return [::Gapic::Config::Method] + # + attr_reader :launch_template + ## + # RPC-specific configuration for `get_template` + # @return [::Gapic::Config::Method] + # + attr_reader :get_template + + # @private + def initialize parent_rpcs = nil + create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template + @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config + launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template + @launch_template = ::Gapic::Config::Method.new launch_template_config + get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template + @get_template = ::Gapic::Config::Method.new get_template_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb new file mode 100644 index 000000000000..42dde9541e62 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb @@ -0,0 +1,292 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/dataflow/v1beta3/templates_pb" + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + module Rest + ## + # REST service stub for the TemplatesService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the create_job_from_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # A result object deserialized from the server's reply + def create_job_from_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_job_from_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_job_from_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the launch_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] + # A result object deserialized from the server's reply + def launch_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_launch_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "launch_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] + # A result object deserialized from the server's reply + def get_template request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_template_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_template", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the create_job_from_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_job_from_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/templates", + body: "*", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the launch_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_launch_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:launch", + body: "launch_parameters", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1b3/projects/{project_id}/templates:launch", + body: "launch_parameters", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_template REST call + # + # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_template_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:get", + matches: [ + ["project_id", %r{^[^/]+/?$}, false], + ["location", %r{^[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1b3/projects/{project_id}/templates:get", + matches: [ + ["project_id", %r{^[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb new file mode 100644 index 000000000000..b6b5c1af211d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + VERSION = "0.0.1" + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb new file mode 100644 index 000000000000..45c93d17eaa1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb @@ -0,0 +1,43 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/environment.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/protobuf/any_pb' +require 'google/protobuf/struct_pb' + + +descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\">\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x13\n\x06sha256\x18\x03 \x01(\tB\x03\xe0\x41\x01\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Environment").msgclass + Package = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Package").msgclass + Disk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Disk").msgclass + WorkerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerSettings").msgclass + TaskRunnerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TaskRunnerSettings").msgclass + AutoscalingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingSettings").msgclass + SdkHarnessContainerImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkHarnessContainerImage").msgclass + WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerPool").msgclass + DataSamplingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig").msgclass + DataSamplingConfig::DataSamplingBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior").enummodule + DebugOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DebugOptions").msgclass + JobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobType").enummodule + FlexResourceSchedulingGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexResourceSchedulingGoal").enummodule + TeardownPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TeardownPolicy").enummodule + DefaultPackageSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DefaultPackageSet").enummodule + AutoscalingAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingAlgorithm").enummodule + WorkerIPAddressConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerIPAddressConfiguration").enummodule + ShuffleMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ShuffleMode").enummodule + StreamingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingMode").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb new file mode 100644 index 000000000000..16e222ef97e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb @@ -0,0 +1,69 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/jobs.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/dataflow/v1beta3/environment_pb' +require 'google/dataflow/v1beta3/snapshots_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/struct_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n\"google/dataflow/v1beta3/jobs.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\'google/dataflow/v1beta3/snapshots.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x0b\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x04type\x18\x04 \x01(\x0e\x32 .google.dataflow.v1beta3.JobTypeB\x03\xe0\x41\x01\x12>\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32$.google.dataflow.v1beta3.EnvironmentB\x03\xe0\x41\x01\x12,\n\x05steps\x18\x06 \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Step\x12\x16\n\x0esteps_location\x18\x18 \x01(\t\x12\x38\n\rcurrent_state\x18\x07 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0frequested_state\x18\t \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x41\n\x0e\x65xecution_info\x18\n \x01(\x0b\x32).google.dataflow.v1beta3.JobExecutionInfo\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0ereplace_job_id\x18\x0c \x01(\t\x12[\n\x16transform_name_mapping\x18\r \x03(\x0b\x32\x36.google.dataflow.v1beta3.Job.TransformNameMappingEntryB\x03\xe0\x41\x01\x12\x19\n\x11\x63lient_request_id\x18\x0e \x01(\t\x12\x1a\n\x12replaced_by_job_id\x18\x0f \x01(\t\x12\x12\n\ntemp_files\x18\x10 \x03(\t\x12\x38\n\x06labels\x18\x11 \x03(\x0b\x32(.google.dataflow.v1beta3.Job.LabelsEntry\x12\x15\n\x08location\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12J\n\x14pipeline_description\x18\x13 \x01(\x0b\x32,.google.dataflow.v1beta3.PipelineDescription\x12\x42\n\x0cstage_states\x18\x14 \x03(\x0b\x32,.google.dataflow.v1beta3.ExecutionStageState\x12:\n\x0cjob_metadata\x18\x15 \x01(\x0b\x32$.google.dataflow.v1beta3.JobMetadata\x12.\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18\x63reated_from_snapshot_id\x18\x17 \x01(\t\x12\x15\n\rsatisfies_pzs\x18\x19 \x01(\x08\x12V\n\x18runtime_updatable_params\x18\x1a \x01(\x0b\x32/.google.dataflow.v1beta3.RuntimeUpdatableParamsH\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12N\n\x11service_resources\x18\x1c \x01(\x0b\x32).google.dataflow.v1beta3.ServiceResourcesB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x15\n\x08pausable\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_runtime_updatable_paramsB\x10\n\x0e_satisfies_pziB\x14\n\x12_service_resources\"&\n\x10ServiceResources\x12\x12\n\x05zones\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xe3\x02\n\x16RuntimeUpdatableParams\x12\x1c\n\x0fmax_num_workers\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmin_num_workers\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12$\n\x17worker_utilization_hint\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12J\n\x1b\x61\x63\x63\x65ptable_backlog_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x05\x18\x01\xe0\x41\x01H\x03\x88\x01\x01\x12\"\n\x10\x61utoscaling_tier\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x42\x12\n\x10_max_num_workersB\x12\n\x10_min_num_workersB\x1a\n\x18_worker_utilization_hintB\x1e\n\x1c_acceptable_backlog_durationB\x13\n\x11_autoscaling_tier\";\n\x12\x44\x61tastoreIODetails\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\"6\n\x0fPubSubIODetails\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"%\n\rFileIODetails\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x01(\t\"N\n\x11\x42igTableIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"V\n\x11\x42igQueryIODetails\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12\r\n\x05query\x18\x04 \x01(\t\"P\n\x10SpannerIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\"\x9d\x02\n\nSdkVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1c\n\x14version_display_name\x18\x02 \x01(\t\x12P\n\x12sdk_support_status\x18\x03 \x01(\x0e\x32\x34.google.dataflow.v1beta3.SdkVersion.SdkSupportStatus\x12\x32\n\x04\x62ugs\x18\x04 \x03(\x0b\x32\x1f.google.dataflow.v1beta3.SdkBugB\x03\xe0\x41\x03\"Z\n\x10SdkSupportStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tSUPPORTED\x10\x01\x12\t\n\x05STALE\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0f\n\x0bUNSUPPORTED\x10\x04\"\xa9\x02\n\x06SdkBug\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32$.google.dataflow.v1beta3.SdkBug.TypeB\x03\xe0\x41\x03\x12?\n\x08severity\x18\x02 \x01(\x0e\x32(.google.dataflow.v1beta3.SdkBug.SeverityB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"H\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERAL\x10\x01\x12\x0f\n\x0bPERFORMANCE\x10\x02\x12\x0c\n\x08\x44\x41TALOSS\x10\x03\"I\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\n\n\x06NOTICE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\n\n\x06SEVERE\x10\x03\"\x80\x05\n\x0bJobMetadata\x12\x38\n\x0bsdk_version\x18\x01 \x01(\x0b\x32#.google.dataflow.v1beta3.SdkVersion\x12\x42\n\x0fspanner_details\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.SpannerIODetails\x12\x44\n\x10\x62igquery_details\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.BigQueryIODetails\x12\x45\n\x11\x62ig_table_details\x18\x04 \x03(\x0b\x32*.google.dataflow.v1beta3.BigTableIODetails\x12@\n\x0epubsub_details\x18\x05 \x03(\x0b\x32(.google.dataflow.v1beta3.PubSubIODetails\x12<\n\x0c\x66ile_details\x18\x06 \x03(\x0b\x32&.google.dataflow.v1beta3.FileIODetails\x12\x46\n\x11\x64\x61tastore_details\x18\x07 \x03(\x0b\x32+.google.dataflow.v1beta3.DatastoreIODetails\x12`\n\x17user_display_properties\x18\x08 \x03(\x0b\x32?.google.dataflow.v1beta3.JobMetadata.UserDisplayPropertiesEntry\x1a<\n\x1aUserDisplayPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x45xecutionStageState\x12\x1c\n\x14\x65xecution_stage_name\x18\x01 \x01(\t\x12@\n\x15\x65xecution_stage_state\x18\x02 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x13PipelineDescription\x12N\n\x1boriginal_pipeline_transform\x18\x01 \x03(\x0b\x32).google.dataflow.v1beta3.TransformSummary\x12P\n\x18\x65xecution_pipeline_stage\x18\x02 \x03(\x0b\x32..google.dataflow.v1beta3.ExecutionStageSummary\x12:\n\x0c\x64isplay_data\x18\x03 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x17\n\x0fstep_names_hash\x18\x04 \x01(\t\"\xd8\x01\n\x10TransformSummary\x12/\n\x04kind\x18\x01 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x0c\x64isplay_data\x18\x04 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x1e\n\x16output_collection_name\x18\x05 \x03(\t\x12\x1d\n\x15input_collection_name\x18\x06 \x03(\t\"\xfc\x05\n\x15\x45xecutionStageSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12/\n\x04kind\x18\x03 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12P\n\x0cinput_source\x18\x04 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12Q\n\routput_source\x18\x05 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12\x1a\n\x12prerequisite_stage\x18\x08 \x03(\t\x12^\n\x13\x63omponent_transform\x18\x06 \x03(\x0b\x32\x41.google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform\x12X\n\x10\x63omponent_source\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource\x1al\n\x0bStageSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\x12\x12\n\nsize_bytes\x18\x04 \x01(\x03\x1aQ\n\x12\x43omponentTransform\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12original_transform\x18\x03 \x01(\t\x1a\\\n\x0f\x43omponentSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\"\xcc\x02\n\x0b\x44isplayData\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\tstr_value\x18\x04 \x01(\tH\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x1a\n\x10java_class_value\x18\x07 \x01(\tH\x00\x12\x35\n\x0ftimestamp_value\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x33\n\x0e\x64uration_value\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x17\n\x0fshort_str_value\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\x12\r\n\x05label\x18\r \x01(\tB\x07\n\x05Value\"O\n\x04Step\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb8\x01\n\x10JobExecutionInfo\x12\x45\n\x06stages\x18\x01 \x03(\x0b\x32\x35.google.dataflow.v1beta3.JobExecutionInfo.StagesEntry\x1a]\n\x0bStagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.dataflow.v1beta3.JobExecutionStageInfo:\x02\x38\x01\"*\n\x15JobExecutionStageInfo\x12\x11\n\tstep_name\x18\x01 \x03(\t\"\xab\x01\n\x10\x43reateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12)\n\x03job\x18\x02 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x16\n\x0ereplace_job_id\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\"u\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb9\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12)\n\x03job\x18\x03 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskH\x00\x88\x01\x01\x42\x0e\n\x0c_update_mask\"\xb0\x02\n\x0fListJobsRequest\x12?\n\x06\x66ilter\x18\x05 \x01(\x0e\x32/.google.dataflow.v1beta3.ListJobsRequest.Filter\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32 .google.dataflow.v1beta3.JobViewB\x02\x18\x01\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x11 \x01(\t\x12\x16\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\":\n\x06\x46ilter\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x42\x07\n\x05_name\"\x1e\n\x0e\x46\x61iledLocation\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x99\x01\n\x10ListJobsResponse\x12*\n\x04jobs\x18\x01 \x03(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12@\n\x0f\x66\x61iled_location\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.FailedLocation\"\xa1\x01\n\x12SnapshotJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12&\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x18\n\x10snapshot_sources\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\",\n\x16\x43heckActiveJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"4\n\x17\x43heckActiveJobsResponse\x12\x19\n\x11\x61\x63tive_jobs_exist\x18\x01 \x01(\x08*\xae\x01\n\x08KindType\x12\x10\n\x0cUNKNOWN_KIND\x10\x00\x12\x0f\n\x0bPAR_DO_KIND\x10\x01\x12\x15\n\x11GROUP_BY_KEY_KIND\x10\x02\x12\x10\n\x0c\x46LATTEN_KIND\x10\x03\x12\r\n\tREAD_KIND\x10\x04\x12\x0e\n\nWRITE_KIND\x10\x05\x12\x11\n\rCONSTANT_KIND\x10\x06\x12\x12\n\x0eSINGLETON_KIND\x10\x07\x12\x10\n\x0cSHUFFLE_KIND\x10\x08*\xf0\x02\n\x08JobState\x12\x15\n\x11JOB_STATE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_STATE_STOPPED\x10\x01\x12\x15\n\x11JOB_STATE_RUNNING\x10\x02\x12\x12\n\x0eJOB_STATE_DONE\x10\x03\x12\x14\n\x10JOB_STATE_FAILED\x10\x04\x12\x17\n\x13JOB_STATE_CANCELLED\x10\x05\x12\x15\n\x11JOB_STATE_UPDATED\x10\x06\x12\x16\n\x12JOB_STATE_DRAINING\x10\x07\x12\x15\n\x11JOB_STATE_DRAINED\x10\x08\x12\x15\n\x11JOB_STATE_PENDING\x10\t\x12\x18\n\x14JOB_STATE_CANCELLING\x10\n\x12\x14\n\x10JOB_STATE_QUEUED\x10\x0b\x12\"\n\x1eJOB_STATE_RESOURCE_CLEANING_UP\x10\x0c\x12\x15\n\x11JOB_STATE_PAUSING\x10\r\x12\x14\n\x10JOB_STATE_PAUSED\x10\x0e*a\n\x07JobView\x12\x14\n\x10JOB_VIEW_UNKNOWN\x10\x00\x12\x14\n\x10JOB_VIEW_SUMMARY\x10\x01\x12\x10\n\x0cJOB_VIEW_ALL\x10\x02\x12\x18\n\x14JOB_VIEW_DESCRIPTION\x10\x03\x32\xaf\x0b\n\x0bJobsV1Beta3\x12\xc1\x01\n\tCreateJob\x12).google.dataflow.v1beta3.CreateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"k\x82\xd3\xe4\x93\x02\x65\"5/v1b3/projects/{project_id}/locations/{location}/jobs:\x03jobZ\'\" /v1b3/projects/{project_id}/jobs:\x03job\x12\xc3\x01\n\x06GetJob\x12&.google.dataflow.v1beta3.GetJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}Z+\x12)/v1b3/projects/{project_id}/jobs/{job_id}\x12\xd3\x01\n\tUpdateJob\x12).google.dataflow.v1beta3.UpdateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"}\x82\xd3\xe4\x93\x02w\x1a>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:\x03jobZ0\x1a)/v1b3/projects/{project_id}/jobs/{job_id}:\x03job\x12\xc2\x01\n\x08ListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"a\x82\xd3\xe4\x93\x02[\x12\x35/v1b3/projects/{project_id}/locations/{location}/jobsZ\"\x12 /v1b3/projects/{project_id}/jobs\x12\x9e\x01\n\x12\x41ggregatedListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1b3/projects/{project_id}/jobs:aggregated\x12v\n\x0f\x43heckActiveJobs\x12/.google.dataflow.v1beta3.CheckActiveJobsRequest\x1a\x30.google.dataflow.v1beta3.CheckActiveJobsResponse\"\x00\x12\xec\x01\n\x0bSnapshotJob\x12+.google.dataflow.v1beta3.SnapshotJobRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\"G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot:\x01*Z7\"2/v1b3/projects/{project_id}/jobs/{job_id}:snapshot:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcc\x01\n\x1b\x63om.google.dataflow.v1beta3B\tJobsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Job").msgclass + ServiceResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ServiceResources").msgclass + RuntimeUpdatableParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeUpdatableParams").msgclass + DatastoreIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DatastoreIODetails").msgclass + PubSubIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubSubIODetails").msgclass + FileIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FileIODetails").msgclass + BigTableIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigTableIODetails").msgclass + BigQueryIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigQueryIODetails").msgclass + SpannerIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SpannerIODetails").msgclass + SdkVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion").msgclass + SdkVersion::SdkSupportStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion.SdkSupportStatus").enummodule + SdkBug = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug").msgclass + SdkBug::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Type").enummodule + SdkBug::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Severity").enummodule + JobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetadata").msgclass + ExecutionStageState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageState").msgclass + PipelineDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PipelineDescription").msgclass + TransformSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TransformSummary").msgclass + ExecutionStageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary").msgclass + ExecutionStageSummary::StageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.StageSource").msgclass + ExecutionStageSummary::ComponentTransform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform").msgclass + ExecutionStageSummary::ComponentSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource").msgclass + DisplayData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DisplayData").msgclass + Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Step").msgclass + JobExecutionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionInfo").msgclass + JobExecutionStageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionStageInfo").msgclass + CreateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobRequest").msgclass + GetJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobRequest").msgclass + UpdateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.UpdateJobRequest").msgclass + ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest").msgclass + ListJobsRequest::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest.Filter").enummodule + FailedLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FailedLocation").msgclass + ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsResponse").msgclass + SnapshotJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotJobRequest").msgclass + CheckActiveJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsRequest").msgclass + CheckActiveJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsResponse").msgclass + KindType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KindType").enummodule + JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobState").enummodule + JobView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobView").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb new file mode 100644 index 000000000000..1d285f980ae8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb @@ -0,0 +1,93 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/jobs.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/jobs_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module JobsV1Beta3 + # Provides a method to create and modify Dataflow jobs. + # A Job is a multi-stage computation graph run by the Dataflow service. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.JobsV1Beta3' + + # Creates a Dataflow job. + # + # To create a job, we recommend using `projects.locations.jobs.create` with a + # [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.create` is not recommended, as your job will always start + # in `us-central1`. + # + # Do not enter confidential information when you supply string values using + # the API. + rpc :CreateJob, ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # Gets the state of the specified Cloud Dataflow job. + # + # To get the state of a job, we recommend using `projects.locations.jobs.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.get` is not recommended, as you can only get the state of + # jobs that are running in `us-central1`. + rpc :GetJob, ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # Updates the state of an existing Cloud Dataflow job. + # + # To update the state of an existing job, we recommend using + # `projects.locations.jobs.update` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.update` is not recommended, as you can only update the state + # of jobs that are running in `us-central1`. + rpc :UpdateJob, ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # List the jobs of a project. + # + # To list the jobs of a project in a region, we recommend using + # `projects.locations.jobs.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To + # list the all jobs across all regions, use `projects.jobs.aggregated`. Using + # `projects.jobs.list` is not recommended, because you can only get the list + # of jobs that are running in `us-central1`. + # + # `projects.locations.jobs.list` and `projects.jobs.list` support filtering + # the list of jobs by name. Filtering by name isn't supported by + # `projects.jobs.aggregated`. + rpc :ListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse + # List the jobs of a project across all regions. + # + # **Note:** This method doesn't support filtering the list of + # jobs by name. + rpc :AggregatedListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse + # Check for existence of active jobs in the given project across all regions. + rpc :CheckActiveJobs, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse + # Snapshot the state of a streaming job. + rpc :SnapshotJob, ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb new file mode 100644 index 000000000000..ff480b37c746 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/messages.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/protobuf/struct_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n&google/dataflow/v1beta3/messages.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x01\n\nJobMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t\x12I\n\x12message_importance\x18\x04 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\"\xc9\x01\n\x11StructuredMessage\x12\x14\n\x0cmessage_text\x18\x01 \x01(\t\x12\x13\n\x0bmessage_key\x18\x02 \x01(\t\x12H\n\nparameters\x18\x03 \x03(\x0b\x32\x34.google.dataflow.v1beta3.StructuredMessage.Parameter\x1a?\n\tParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\xb1\x03\n\x10\x41utoscalingEvent\x12\x1b\n\x13\x63urrent_num_workers\x18\x01 \x01(\x03\x12\x1a\n\x12target_num_workers\x18\x02 \x01(\x03\x12R\n\nevent_type\x18\x03 \x01(\x0e\x32>.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType\x12?\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32*.google.dataflow.v1beta3.StructuredMessage\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_pool\x18\x07 \x01(\t\"\x8f\x01\n\x14\x41utoscalingEventType\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x1e\n\x1aTARGET_NUM_WORKERS_CHANGED\x10\x01\x12\x1f\n\x1b\x43URRENT_NUM_WORKERS_CHANGED\x10\x02\x12\x15\n\x11\x41\x43TUATION_FAILURE\x10\x03\x12\r\n\tNO_CHANGE\x10\x04\"\x9e\x02\n\x16ListJobMessagesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12I\n\x12minimum_importance\x18\x03 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x08 \x01(\t\"\xb4\x01\n\x17ListJobMessagesResponse\x12\x39\n\x0cjob_messages\x18\x01 \x03(\x0b\x32#.google.dataflow.v1beta3.JobMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x45\n\x12\x61utoscaling_events\x18\x03 \x03(\x0b\x32).google.dataflow.v1beta3.AutoscalingEvent*\xb2\x01\n\x14JobMessageImportance\x12\"\n\x1eJOB_MESSAGE_IMPORTANCE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_MESSAGE_DEBUG\x10\x01\x12\x18\n\x14JOB_MESSAGE_DETAILED\x10\x02\x12\x15\n\x11JOB_MESSAGE_BASIC\x10\x05\x12\x17\n\x13JOB_MESSAGE_WARNING\x10\x03\x12\x15\n\x11JOB_MESSAGE_ERROR\x10\x04\x32\x85\x03\n\x0fMessagesV1Beta3\x12\xfc\x01\n\x0fListJobMessages\x12/.google.dataflow.v1beta3.ListJobMessagesRequest\x1a\x30.google.dataflow.v1beta3.ListJobMessagesResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messagesZ4\x12\x32/v1b3/projects/{project_id}/jobs/{job_id}/messages\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd0\x01\n\x1b\x63om.google.dataflow.v1beta3B\rMessagesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + JobMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessage").msgclass + StructuredMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage").msgclass + StructuredMessage::Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage.Parameter").msgclass + AutoscalingEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent").msgclass + AutoscalingEvent::AutoscalingEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType").enummodule + ListJobMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesRequest").msgclass + ListJobMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesResponse").msgclass + JobMessageImportance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessageImportance").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb new file mode 100644 index 000000000000..7e765d1339f9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb @@ -0,0 +1,51 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/messages.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/messages_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module MessagesV1Beta3 + # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.MessagesV1Beta3' + + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.messages.list` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.messages.list` is not recommended, as you can only request + # the status of jobs that are running in `us-central1`. + rpc :ListJobMessages, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb new file mode 100644 index 000000000000..e1bad2b6d432 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/metrics.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/struct_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n%google/dataflow/v1beta3/metrics.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x14MetricStructuredName\x12\x0e\n\x06origin\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12K\n\x07\x63ontext\x18\x03 \x03(\x0b\x32:.google.dataflow.v1beta3.MetricStructuredName.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x04\n\x0cMetricUpdate\x12;\n\x04name\x18\x01 \x01(\x0b\x32-.google.dataflow.v1beta3.MetricStructuredName\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x12\n\ncumulative\x18\x03 \x01(\x08\x12&\n\x06scalar\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08mean_sum\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x12*\n\nmean_count\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12#\n\x03set\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12$\n\x04trie\x18\r \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x62ounded_trie\x18\x0e \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x64istribution\x18\x0b \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05gauge\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08internal\x18\x08 \x01(\x0b\x32\x16.google.protobuf.Value\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"|\n\x14GetJobMetricsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x04 \x01(\t\"u\n\nJobMetrics\x12/\n\x0bmetric_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x07metrics\x18\x02 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\"|\n\x1dGetJobExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\xb8\x01\n\x12ProgressTimeseries\x12\x18\n\x10\x63urrent_progress\x18\x01 \x01(\x01\x12\x46\n\x0b\x64\x61ta_points\x18\x02 \x03(\x0b\x32\x31.google.dataflow.v1beta3.ProgressTimeseries.Point\x1a@\n\x05Point\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xee\x02\n\rStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06\x63\x61uses\x18\x02 \x03(\x0b\x32\x32.google.dataflow.v1beta3.StragglerInfo.CausesEntry\x1a{\n\x16StragglerDebuggingInfo\x12?\n\x07hot_key\x18\x01 \x01(\x0b\x32,.google.dataflow.v1beta3.HotKeyDebuggingInfoH\x00\x42 \n\x1estraggler_debugging_info_value\x1al\n\x0b\x43\x61usesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo:\x02\x38\x01\"\xfb\x01\n\x16StreamingStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_name\x18\x03 \x01(\t\x12\x35\n\x12\x64\x61ta_watermark_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14system_watermark_lag\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb0\x01\n\tStraggler\x12\x41\n\x0f\x62\x61tch_straggler\x18\x01 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfoH\x00\x12N\n\x13streaming_straggler\x18\x02 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStragglerInfoH\x00\x42\x10\n\x0estraggler_info\"\xc6\x02\n\x13HotKeyDebuggingInfo\x12\\\n\x11\x64\x65tected_hot_keys\x18\x01 \x03(\x0b\x32\x41.google.dataflow.v1beta3.HotKeyDebuggingInfo.DetectedHotKeysEntry\x1a`\n\nHotKeyInfo\x12.\n\x0bhot_key_age\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\rkey_truncated\x18\x03 \x01(\x08\x1ao\n\x14\x44\x65tectedHotKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo:\x02\x38\x01\"\x8f\x02\n\x10StragglerSummary\x12\x1d\n\x15total_straggler_count\x18\x01 \x01(\x03\x12\x61\n\x15straggler_cause_count\x18\x02 \x03(\x0b\x32\x42.google.dataflow.v1beta3.StragglerSummary.StragglerCauseCountEntry\x12=\n\x11recent_stragglers\x18\x03 \x03(\x0b\x32\".google.dataflow.v1beta3.Straggler\x1a:\n\x18StragglerCauseCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xf3\x02\n\x0cStageSummary\x12\x10\n\x08stage_id\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x06 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12\x44\n\x11straggler_summary\x18\x07 \x01(\x0b\x32).google.dataflow.v1beta3.StragglerSummary\"e\n\x13JobExecutionDetails\x12\x35\n\x06stages\x18\x01 \x03(\x0b\x32%.google.dataflow.v1beta3.StageSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xee\x01\n\x1fGetStageExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x10\n\x08stage_id\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x03\n\x0fWorkItemDetails\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x05state\x18\x05 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12=\n\x08progress\x18\x06 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x07 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12>\n\x0estraggler_info\x18\x08 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfo\"b\n\rWorkerDetails\x12\x13\n\x0bworker_name\x18\x01 \x01(\t\x12<\n\nwork_items\x18\x02 \x03(\x0b\x32(.google.dataflow.v1beta3.WorkItemDetails\"i\n\x15StageExecutionDetails\x12\x37\n\x07workers\x18\x01 \x03(\x0b\x32&.google.dataflow.v1beta3.WorkerDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*\xc5\x01\n\x0e\x45xecutionState\x12\x1b\n\x17\x45XECUTION_STATE_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTION_STATE_NOT_STARTED\x10\x01\x12\x1b\n\x17\x45XECUTION_STATE_RUNNING\x10\x02\x12\x1d\n\x19\x45XECUTION_STATE_SUCCEEDED\x10\x03\x12\x1a\n\x16\x45XECUTION_STATE_FAILED\x10\x04\x12\x1d\n\x19\x45XECUTION_STATE_CANCELLED\x10\x05\x32\xbd\x06\n\x0eMetricsV1Beta3\x12\xe9\x01\n\rGetJobMetrics\x12-.google.dataflow.v1beta3.GetJobMetricsRequest\x1a#.google.dataflow.v1beta3.JobMetrics\"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x46/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metricsZ3\x12\x31/v1b3/projects/{project_id}/jobs/{job_id}/metrics\x12\xd7\x01\n\x16GetJobExecutionDetails\x12\x36.google.dataflow.v1beta3.GetJobExecutionDetailsRequest\x1a,.google.dataflow.v1beta3.JobExecutionDetails\"W\x82\xd3\xe4\x93\x02Q\x12O/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails\x12\xef\x01\n\x18GetStageExecutionDetails\x12\x38.google.dataflow.v1beta3.GetStageExecutionDetailsRequest\x1a..google.dataflow.v1beta3.StageExecutionDetails\"i\x82\xd3\xe4\x93\x02\x63\x12\x61/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcf\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0cMetricsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + MetricStructuredName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricStructuredName").msgclass + MetricUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricUpdate").msgclass + GetJobMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobMetricsRequest").msgclass + JobMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetrics").msgclass + GetJobExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobExecutionDetailsRequest").msgclass + ProgressTimeseries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries").msgclass + ProgressTimeseries::Point = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries.Point").msgclass + StragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo").msgclass + StragglerInfo::StragglerDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo").msgclass + StreamingStragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStragglerInfo").msgclass + Straggler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Straggler").msgclass + HotKeyDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo").msgclass + HotKeyDebuggingInfo::HotKeyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo").msgclass + StragglerSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerSummary").msgclass + StageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageSummary").msgclass + JobExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionDetails").msgclass + GetStageExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetStageExecutionDetailsRequest").msgclass + WorkItemDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkItemDetails").msgclass + WorkerDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerDetails").msgclass + StageExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageExecutionDetails").msgclass + ExecutionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionState").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb new file mode 100644 index 000000000000..37678edc27d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb @@ -0,0 +1,60 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/metrics.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/metrics_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module MetricsV1Beta3 + # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.MetricsV1Beta3' + + # Request the job status. + # + # To request the status of a job, we recommend using + # `projects.locations.jobs.getMetrics` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.jobs.getMetrics` is not recommended, as you can only request the + # status of jobs that are running in `us-central1`. + rpc :GetJobMetrics, ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Google::Cloud::Dataflow::V1beta3::JobMetrics + # Request detailed information about the execution status of the job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + rpc :GetJobExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails + # Request detailed information about the execution status of a stage of the + # job. + # + # EXPERIMENTAL. This API is subject to change or removal without notice. + rpc :GetStageExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb new file mode 100644 index 000000000000..bba6c31a5430 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/snapshots.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n\'google/dataflow/v1beta3/snapshots.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x16PubsubSnapshotMetadata\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x15\n\rsnapshot_name\x18\x02 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdb\x02\n\x08Snapshot\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x15\n\rsource_job_id\x18\x03 \x01(\t\x12\x31\n\rcreation_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x03ttl\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x05state\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.SnapshotState\x12H\n\x0fpubsub_metadata\x18\x07 \x03(\x0b\x32/.google.dataflow.v1beta3.PubsubSnapshotMetadata\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12\x17\n\x0f\x64isk_size_bytes\x18\t \x01(\x03\x12\x0e\n\x06region\x18\n \x01(\t\"O\n\x12GetSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"R\n\x15\x44\x65leteSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteSnapshotResponse\"L\n\x14ListSnapshotsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"M\n\x15ListSnapshotsResponse\x12\x34\n\tsnapshots\x18\x01 \x03(\x0b\x32!.google.dataflow.v1beta3.Snapshot*i\n\rSnapshotState\x12\x1a\n\x16UNKNOWN_SNAPSHOT_STATE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x32\x8d\x07\n\x10SnapshotsV1Beta3\x12\xe8\x01\n\x0bGetSnapshot\x12+.google.dataflow.v1beta3.GetSnapshotRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01\x12H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z5\x12\x33/v1b3/projects/{project_id}/snapshots/{snapshot_id}\x12\xec\x01\n\x0e\x44\x65leteSnapshot\x12..google.dataflow.v1beta3.DeleteSnapshotRequest\x1a/.google.dataflow.v1beta3.DeleteSnapshotResponse\"y\x82\xd3\xe4\x93\x02s*H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z\'*%/v1b3/projects/{project_id}/snapshots\x12\xa9\x02\n\rListSnapshots\x12-.google.dataflow.v1beta3.ListSnapshotsRequest\x1a..google.dataflow.v1beta3.ListSnapshotsResponse\"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01\x12H/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshotsZ<\x12:/v1b3/projects/{project_id}/locations/{location}/snapshotsZ\'\x12%/v1b3/projects/{project_id}/snapshots\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eSnapshotsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + PubsubSnapshotMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubSnapshotMetadata").msgclass + Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Snapshot").msgclass + GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetSnapshotRequest").msgclass + DeleteSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotRequest").msgclass + DeleteSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotResponse").msgclass + ListSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsRequest").msgclass + ListSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsResponse").msgclass + SnapshotState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotState").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb new file mode 100644 index 000000000000..203fdccc8bc2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb @@ -0,0 +1,49 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/snapshots.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/snapshots_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module SnapshotsV1Beta3 + # Provides methods to manage snapshots of Google Cloud Dataflow jobs. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.SnapshotsV1Beta3' + + # Gets information about a snapshot. + rpc :GetSnapshot, ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot + # Deletes a snapshot. + rpc :DeleteSnapshot, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse + # Lists snapshots. + rpc :ListSnapshots, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb new file mode 100644 index 000000000000..0b21c1fea7c4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/streaming.proto + +require 'google/protobuf' + + +descriptor_data = "\n\'google/dataflow/v1beta3/streaming.proto\x12\x17google.dataflow.v1beta3\"\x9d\x03\n\x0eTopologyConfig\x12\x42\n\x0c\x63omputations\x18\x01 \x03(\x0b\x32,.google.dataflow.v1beta3.ComputationTopology\x12J\n\x15\x64\x61ta_disk_assignments\x18\x02 \x03(\x0b\x32+.google.dataflow.v1beta3.DataDiskAssignment\x12v\n\"user_stage_to_computation_name_map\x18\x03 \x03(\x0b\x32J.google.dataflow.v1beta3.TopologyConfig.UserStageToComputationNameMapEntry\x12\x1b\n\x13\x66orwarding_key_bits\x18\x04 \x01(\x05\x12 \n\x18persistent_state_version\x18\x05 \x01(\x05\x1a\x44\n\"UserStageToComputationNameMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xce\x01\n\x0ePubsubLocation\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\x12\x17\n\x0ftimestamp_label\x18\x03 \x01(\t\x12\x10\n\x08id_label\x18\x04 \x01(\t\x12\x16\n\x0e\x64rop_late_data\x18\x05 \x01(\x08\x12\x1d\n\x15tracking_subscription\x18\x06 \x01(\t\x12\x17\n\x0fwith_attributes\x18\x07 \x01(\x08\x12\x1c\n\x14\x64ynamic_destinations\x18\x08 \x01(\x08\"+\n\x16StreamingStageLocation\x12\x11\n\tstream_id\x18\x01 \x01(\t\"?\n\x1aStreamingSideInputLocation\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x14\n\x0cstate_family\x18\x02 \x01(\t\"(\n\x14\x43ustomSourceLocation\x12\x10\n\x08stateful\x18\x01 \x01(\x08\"\xda\x02\n\x0eStreamLocation\x12S\n\x18streaming_stage_location\x18\x01 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStageLocationH\x00\x12\x42\n\x0fpubsub_location\x18\x02 \x01(\x0b\x32\'.google.dataflow.v1beta3.PubsubLocationH\x00\x12R\n\x13side_input_location\x18\x03 \x01(\x0b\x32\x33.google.dataflow.v1beta3.StreamingSideInputLocationH\x00\x12O\n\x16\x63ustom_source_location\x18\x04 \x01(\x0b\x32-.google.dataflow.v1beta3.CustomSourceLocationH\x00\x42\n\n\x08location\":\n\x11StateFamilyConfig\x12\x14\n\x0cstate_family\x18\x01 \x01(\t\x12\x0f\n\x07is_read\x18\x02 \x01(\x08\"\xbe\x02\n\x13\x43omputationTopology\x12\x19\n\x11system_stage_name\x18\x01 \x01(\t\x12\x16\n\x0e\x63omputation_id\x18\x05 \x01(\t\x12=\n\nkey_ranges\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.KeyRangeLocation\x12\x37\n\x06inputs\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x38\n\x07outputs\x18\x04 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x42\n\x0estate_families\x18\x07 \x03(\x0b\x32*.google.dataflow.v1beta3.StateFamilyConfig\"\x89\x01\n\x10KeyRangeLocation\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x19\n\x11\x64\x65livery_endpoint\x18\x03 \x01(\t\x12\x11\n\tdata_disk\x18\x05 \x01(\t\x12+\n\x1f\x64\x65precated_persistent_directory\x18\x04 \x01(\tB\x02\x18\x01\"$\n\x0fMountedDataDisk\x12\x11\n\tdata_disk\x18\x01 \x01(\t\"=\n\x12\x44\x61taDiskAssignment\x12\x13\n\x0bvm_instance\x18\x01 \x01(\t\x12\x12\n\ndata_disks\x18\x02 \x03(\t\"K\n\x1aKeyRangeDataDiskAssignment\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x11\n\tdata_disk\x18\x03 \x01(\t\"\x84\x01\n\x1aStreamingComputationRanges\x12\x16\n\x0e\x63omputation_id\x18\x01 \x01(\t\x12N\n\x11range_assignments\x18\x02 \x03(\x0b\x32\x33.google.dataflow.v1beta3.KeyRangeDataDiskAssignment\"V\n StreamingApplianceSnapshotConfig\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x1d\n\x15import_state_endpoint\x18\x02 \x01(\tB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eStreamingProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + TopologyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TopologyConfig").msgclass + PubsubLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubLocation").msgclass + StreamingStageLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStageLocation").msgclass + StreamingSideInputLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingSideInputLocation").msgclass + CustomSourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CustomSourceLocation").msgclass + StreamLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamLocation").msgclass + StateFamilyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StateFamilyConfig").msgclass + ComputationTopology = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ComputationTopology").msgclass + KeyRangeLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeLocation").msgclass + MountedDataDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MountedDataDisk").msgclass + DataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataDiskAssignment").msgclass + KeyRangeDataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeDataDiskAssignment").msgclass + StreamingComputationRanges = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingComputationRanges").msgclass + StreamingApplianceSnapshotConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingApplianceSnapshotConfig").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb new file mode 100644 index 000000000000..ee47d7a44b6f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/dataflow/v1beta3/templates.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/dataflow/v1beta3/environment_pb' +require 'google/dataflow/v1beta3/jobs_pb' +require 'google/rpc/status_pb' + + +descriptor_data = "\n\'google/dataflow/v1beta3/templates.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\"google/dataflow/v1beta3/jobs.proto\x1a\x17google/rpc/status.proto\"G\n\x1aLaunchFlexTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xe3\x02\n\rContainerSpec\x12\r\n\x05image\x18\x01 \x01(\t\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12\x32\n\x08sdk_info\x18\x03 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12T\n\x13\x64\x65\x66\x61ult_environment\x18\x04 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12+\n#image_repository_username_secret_id\x18\x05 \x01(\t\x12+\n#image_repository_password_secret_id\x18\x06 \x01(\t\x12\"\n\x1aimage_repository_cert_path\x18\x07 \x01(\t\"\xd2\x05\n\x1bLaunchFlexTemplateParameter\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12@\n\x0e\x63ontainer_spec\x18\x04 \x01(\x0b\x32&.google.dataflow.v1beta3.ContainerSpecH\x00\x12!\n\x17\x63ontainer_spec_gcs_path\x18\x05 \x01(\tH\x00\x12X\n\nparameters\x18\x02 \x03(\x0b\x32\x44.google.dataflow.v1beta3.LaunchFlexTemplateParameter.ParametersEntry\x12_\n\x0elaunch_options\x18\x06 \x03(\x0b\x32G.google.dataflow.v1beta3.LaunchFlexTemplateParameter.LaunchOptionsEntry\x12L\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12\x0e\n\x06update\x18\x08 \x01(\x08\x12p\n\x17transform_name_mappings\x18\t \x03(\x0b\x32O.google.dataflow.v1beta3.LaunchFlexTemplateParameter.TransformNameMappingsEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12LaunchOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTransformNameMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc7\x08\n\x1e\x46lexTemplateRuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_workers\x18\x02 \x01(\x05\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x1d\n\x15service_account_email\x18\x04 \x01(\t\x12\x15\n\rtemp_location\x18\x05 \x01(\t\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12q\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32Q.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0b \x01(\t\x12O\n\x10ip_configuration\x18\x0c \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\r \x01(\t\x12\x13\n\x0bworker_zone\x18\x0e \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x0f \x01(\x08\x12H\n\x0b\x66lexrs_goal\x18\x10 \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoal\x12\x18\n\x10staging_location\x18\x11 \x01(\t\x12\x1b\n\x13sdk_container_image\x18\x12 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x14 \x01(\x05\x12L\n\x15\x61utoscaling_algorithm\x18\x15 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x18\n\x10\x64ump_heap_on_oom\x18\x16 \x01(\x08\x12#\n\x1bsave_heap_dumps_to_gcs_path\x18\x17 \x01(\t\x12\x1d\n\x15launcher_machine_type\x18\x18 \x01(\t\x12.\n&enable_launcher_vm_serial_port_logging\x18\x19 \x01(\x08\x12H\n\x0estreaming_mode\x18\x1a \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x1b \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"\xa8\x01\n\x19LaunchFlexTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12N\n\x10launch_parameter\x18\x02 \x01(\x0b\x32\x34.google.dataflow.v1beta3.LaunchFlexTemplateParameter\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x05\n\x12RuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x0b \x01(\x05\x12\x13\n\x0bmax_workers\x18\x01 \x01(\x05\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x15\n\rtemp_location\x18\x04 \x01(\t\x12\"\n\x1a\x62ypass_temp_dir_validation\x18\x05 \x01(\x08\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12\x65\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32\x45.google.dataflow.v1beta3.RuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0c \x01(\t\x12O\n\x10ip_configuration\x18\x0e \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\x0f \x01(\t\x12\x13\n\x0bworker_zone\x18\x10 \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x11 \x01(\x08\x12\x14\n\x0c\x64isk_size_gb\x18\x12 \x01(\x05\x12H\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x14 \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"_\n\x1bParameterMetadataEnumOption\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf3\x03\n\x11ParameterMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thelp_text\x18\x03 \x01(\t\x12\x13\n\x0bis_optional\x18\x04 \x01(\x08\x12\x0f\n\x07regexes\x18\x05 \x03(\t\x12:\n\nparam_type\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.ParameterType\x12W\n\x0f\x63ustom_metadata\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ParameterMetadata.CustomMetadataEntry\x12\x12\n\ngroup_name\x18\x08 \x01(\t\x12\x13\n\x0bparent_name\x18\t \x01(\t\x12\x1d\n\x15parent_trigger_values\x18\n \x03(\t\x12J\n\x0c\x65num_options\x18\x0b \x03(\x0b\x32\x34.google.dataflow.v1beta3.ParameterMetadataEnumOption\x12\x15\n\rdefault_value\x18\x0c \x01(\t\x12\x11\n\thidden_ui\x18\r \x01(\x08\x1a\x35\n\x13\x43ustomMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x01\n\x10TemplateMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12>\n\nparameters\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\x12\x11\n\tstreaming\x18\x05 \x01(\x08\x12\x1e\n\x16supports_at_least_once\x18\x06 \x01(\x08\x12\x1d\n\x15supports_exactly_once\x18\x07 \x01(\x08\x12\x1e\n\x16\x64\x65\x66\x61ult_streaming_mode\x18\x08 \x01(\t\"\x98\x01\n\x07SDKInfo\x12;\n\x08language\x18\x01 \x01(\x0e\x32).google.dataflow.v1beta3.SDKInfo.Language\x12\x0f\n\x07version\x18\x02 \x01(\t\"?\n\x08Language\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x06\n\x02GO\x10\x03\x12\x08\n\x04YAML\x10\x04\"\x85\x01\n\x0fRuntimeMetadata\x12\x32\n\x08sdk_info\x18\x01 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12>\n\nparameters\x18\x02 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\"\xc6\x02\n\x1c\x43reateJobFromTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x04 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12Y\n\nparameters\x18\x03 \x03(\x0b\x32\x45.google.dataflow.v1beta3.CreateJobFromTemplateRequest.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x10\n\x08location\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc5\x01\n\x12GetTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12\x46\n\x04view\x18\x03 \x01(\x0e\x32\x38.google.dataflow.v1beta3.GetTemplateRequest.TemplateView\x12\x10\n\x08location\x18\x04 \x01(\t\"!\n\x0cTemplateView\x12\x11\n\rMETADATA_ONLY\x10\x00\x42\n\n\x08template\"\xbf\x02\n\x13GetTemplateResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12P\n\rtemplate_type\x18\x03 \x01(\x0e\x32\x39.google.dataflow.v1beta3.GetTemplateResponse.TemplateType\x12\x42\n\x10runtime_metadata\x18\x04 \x01(\x0b\x32(.google.dataflow.v1beta3.RuntimeMetadata\"1\n\x0cTemplateType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\"\xb2\x03\n\x18LaunchTemplateParameters\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12U\n\nparameters\x18\x02 \x03(\x0b\x32\x41.google.dataflow.v1beta3.LaunchTemplateParameters.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x0e\n\x06update\x18\x04 \x01(\x08\x12k\n\x16transform_name_mapping\x18\x05 \x03(\x0b\x32K.google.dataflow.v1beta3.LaunchTemplateParameters.TransformNameMappingEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x02\n\x15LaunchTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x00\x12P\n\x10\x64ynamic_template\x18\x06 \x01(\x0b\x32\x34.google.dataflow.v1beta3.DynamicTemplateLaunchParamsH\x00\x12L\n\x11launch_parameters\x18\x04 \x01(\x0b\x32\x31.google.dataflow.v1beta3.LaunchTemplateParameters\x12\x10\n\x08location\x18\x05 \x01(\tB\n\n\x08template\"C\n\x16LaunchTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xbe\x01\n\x19InvalidTemplateParameters\x12\x63\n\x14parameter_violations\x18\x01 \x03(\x0b\x32\x45.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation\x1a<\n\x12ParameterViolation\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"I\n\x1b\x44ynamicTemplateLaunchParams\x12\x10\n\x08gcs_path\x18\x01 \x01(\t\x12\x18\n\x10staging_location\x18\x02 \x01(\t*\xbd\x03\n\rParameterType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\x13\n\x0fGCS_READ_BUCKET\x10\x02\x12\x14\n\x10GCS_WRITE_BUCKET\x10\x03\x12\x11\n\rGCS_READ_FILE\x10\x04\x12\x12\n\x0eGCS_WRITE_FILE\x10\x05\x12\x13\n\x0fGCS_READ_FOLDER\x10\x06\x12\x14\n\x10GCS_WRITE_FOLDER\x10\x07\x12\x10\n\x0cPUBSUB_TOPIC\x10\x08\x12\x17\n\x13PUBSUB_SUBSCRIPTION\x10\t\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\n\x12\x17\n\x13JAVASCRIPT_UDF_FILE\x10\x0b\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x0c\x12\x10\n\x0cMACHINE_TYPE\x10\r\x12\x10\n\x0cKMS_KEY_NAME\x10\x0e\x12\x11\n\rWORKER_REGION\x10\x0f\x12\x0f\n\x0bWORKER_ZONE\x10\x10\x12\x0b\n\x07\x42OOLEAN\x10\x11\x12\x08\n\x04\x45NUM\x10\x12\x12\n\n\x06NUMBER\x10\x13\x12\x13\n\x0bKAFKA_TOPIC\x10\x14\x1a\x02\x08\x01\x12\x14\n\x10KAFKA_READ_TOPIC\x10\x15\x12\x15\n\x11KAFKA_WRITE_TOPIC\x10\x16\x32\xe0\x06\n\x10TemplatesService\x12\xdf\x01\n\x15\x43reateJobFromTemplate\x12\x35.google.dataflow.v1beta3.CreateJobFromTemplateRequest\x1a\x1c.google.dataflow.v1beta3.Job\"q\x82\xd3\xe4\x93\x02k\":/v1b3/projects/{project_id}/locations/{location}/templates:\x01*Z*\"%/v1b3/projects/{project_id}/templates:\x01*\x12\x94\x02\n\x0eLaunchTemplate\x12..google.dataflow.v1beta3.LaunchTemplateRequest\x1a/.google.dataflow.v1beta3.LaunchTemplateResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01\"A/v1b3/projects/{project_id}/locations/{location}/templates:launch:\x11launch_parametersZA\",/v1b3/projects/{project_id}/templates:launch:\x11launch_parameters\x12\xdd\x01\n\x0bGetTemplate\x12+.google.dataflow.v1beta3.GetTemplateRequest\x1a,.google.dataflow.v1beta3.GetTemplateResponse\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/templates:getZ+\x12)/v1b3/projects/{project_id}/templates:get\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute2\xdd\x02\n\x14\x46lexTemplatesService\x12\xcf\x01\n\x12LaunchFlexTemplate\x12\x32.google.dataflow.v1beta3.LaunchFlexTemplateRequest\x1a\x33.google.dataflow.v1beta3.LaunchFlexTemplateResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eTemplatesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module Dataflow + module V1beta3 + LaunchFlexTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateResponse").msgclass + ContainerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ContainerSpec").msgclass + LaunchFlexTemplateParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateParameter").msgclass + FlexTemplateRuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment").msgclass + LaunchFlexTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateRequest").msgclass + RuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeEnvironment").msgclass + ParameterMetadataEnumOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadataEnumOption").msgclass + ParameterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadata").msgclass + TemplateMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TemplateMetadata").msgclass + SDKInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo").msgclass + SDKInfo::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo.Language").enummodule + RuntimeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeMetadata").msgclass + CreateJobFromTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobFromTemplateRequest").msgclass + GetTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest").msgclass + GetTemplateRequest::TemplateView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest.TemplateView").enummodule + GetTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse").msgclass + GetTemplateResponse::TemplateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse.TemplateType").enummodule + LaunchTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateParameters").msgclass + LaunchTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateRequest").msgclass + LaunchTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateResponse").msgclass + InvalidTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters").msgclass + InvalidTemplateParameters::ParameterViolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation").msgclass + DynamicTemplateLaunchParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DynamicTemplateLaunchParams").msgclass + ParameterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb new file mode 100644 index 000000000000..64389dcd989d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb @@ -0,0 +1,84 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/dataflow/v1beta3/templates.proto for package 'Google.Cloud.Dataflow.V1beta3' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/dataflow/v1beta3/templates_pb' + +module Google + module Cloud + module Dataflow + module V1beta3 + module TemplatesService + # Provides a method to create Cloud Dataflow jobs from templates. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.TemplatesService' + + # Creates a Cloud Dataflow job from a template. Do not enter confidential + # information when you supply string values using the API. + # + # To create a job, we recommend using `projects.locations.templates.create` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.create` is not recommended, because your job will + # always start in `us-central1`. + rpc :CreateJobFromTemplate, ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::Job + # Launches a template. + # + # To launch a template, we recommend using + # `projects.locations.templates.launch` with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.launch` is not recommended, because jobs launched + # from the template will always start in `us-central1`. + rpc :LaunchTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse + # Get the template associated with a template. + # + # To get the template, we recommend using `projects.locations.templates.get` + # with a [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using + # `projects.templates.get` is not recommended, because only + # templates that are running in `us-central1` are retrieved. + rpc :GetTemplate, ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse + end + + Stub = Service.rpc_stub_class + end + module FlexTemplatesService + # Provides a service for Flex templates. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.dataflow.v1beta3.FlexTemplatesService' + + # Launch a job with a FlexTemplate. + rpc :LaunchFlexTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md new file mode 100644 index 000000000000..98e2b412b7d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md @@ -0,0 +1,4 @@ +# Dataflow V1beta3 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..5089551e9ea4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb @@ -0,0 +1,589 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb new file mode 100644 index 000000000000..feeeae1eab79 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb @@ -0,0 +1,682 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Describes the environment in which a Dataflow Job runs. + # @!attribute [rw] temp_storage_prefix + # @return [::String] + # The prefix of the resources the system should use for temporary + # storage. The system will append the suffix "/temp-\\{JOBNAME} to + # this resource prefix, where \\{JOBNAME} is the value of the + # job_name field. The resulting bucket and object prefix is used + # as the prefix of the resources used to store temporary data + # needed during the job execution. NOTE: This will override the + # value in taskrunner_settings. + # The supported resource type is: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] cluster_manager_api_service + # @return [::String] + # The type of cluster manager API to use. If unknown or + # unspecified, the service will attempt to choose a reasonable + # default. This should be in the form of the API service name, + # e.g. "compute.googleapis.com". + # @!attribute [rw] experiments + # @return [::Array<::String>] + # The list of experiments to enable. This field should be used for SDK + # related experiments and not for service related experiments. The proper + # field for service related experiments is service_options. + # @!attribute [rw] service_options + # @return [::Array<::String>] + # Optional. The list of service options to enable. This field should be used + # for service related experiments only. These experiments, when graduating to + # GA, should be replaced by dedicated fields or become default (i.e. always + # on). + # @!attribute [rw] service_kms_key_name + # @return [::String] + # Optional. If set, contains the Cloud KMS key identifier used to encrypt + # data at rest, AKA a Customer Managed Encryption Key (CMEK). + # + # Format: + # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY + # @!attribute [rw] worker_pools + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerPool>] + # The worker pools. At least one "harness" worker pool must be + # specified in order for the job to have workers. + # @!attribute [rw] user_agent + # @return [::Google::Protobuf::Struct] + # Optional. A description of the process that generated the request. + # @!attribute [rw] version + # @return [::Google::Protobuf::Struct] + # A structure describing which components and their versions of the service + # are required in order to run the job. + # @!attribute [rw] dataset + # @return [::String] + # Optional. The dataset for the current project where various workflow + # related tables are stored. + # + # The supported resource type is: + # + # Google BigQuery: + # bigquery.googleapis.com/\\{dataset} + # @!attribute [rw] sdk_pipeline_options + # @return [::Google::Protobuf::Struct] + # The Cloud Dataflow SDK pipeline options specified by the user. These + # options are passed through the service and are used to recreate the + # SDK pipeline options on the worker in a language agnostic and platform + # independent way. + # @!attribute [rw] internal_experiments + # @return [::Google::Protobuf::Any] + # Experimental settings. + # @!attribute [rw] service_account_email + # @return [::String] + # Optional. Identity to run virtual machines as. Defaults to the default + # account. + # @!attribute [rw] flex_resource_scheduling_goal + # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] + # Optional. Which Flexible Resource Scheduling mode to run in. + # @!attribute [rw] worker_region + # @return [::String] + # Optional. The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # @!attribute [rw] worker_zone + # @return [::String] + # Optional. The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # @!attribute [r] shuffle_mode + # @return [::Google::Cloud::Dataflow::V1beta3::ShuffleMode] + # Output only. The shuffle mode used for the job. + # @!attribute [rw] debug_options + # @return [::Google::Cloud::Dataflow::V1beta3::DebugOptions] + # Optional. Any debugging options to be supplied to the job. + # @!attribute [r] use_streaming_engine_resource_based_billing + # @return [::Boolean] + # Output only. Whether the job uses the Streaming Engine resource-based + # billing model. + # @!attribute [rw] streaming_mode + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] + # Optional. Specifies the Streaming Engine message processing guarantees. + # Reduces cost and latency but might result in duplicate messages committed + # to storage. Designed to run simple mapping streaming ETL jobs at the lowest + # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] use_public_ips + # @return [::Boolean] + # Optional. True when any worker pool that uses public IPs is present. + class Environment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The packages that must be installed in order for a worker to run the + # steps of the Cloud Dataflow job that will be assigned to its worker + # pool. + # + # This is the mechanism by which the Cloud Dataflow SDK causes code to + # be loaded onto the workers. For example, the Cloud Dataflow Java SDK + # might use this to install jars containing the user's code and all of the + # various dependencies (libraries, data files, etc.) required in order + # for that code to run. + # @!attribute [rw] name + # @return [::String] + # The name of the package. + # @!attribute [rw] location + # @return [::String] + # The resource to read the package from. The supported resource type is: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket} + # bucket.storage.googleapis.com/ + # @!attribute [rw] sha256 + # @return [::String] + # Optional. The hex-encoded SHA256 checksum of the package. + # If the checksum is provided, the worker will verify the checksum of the + # package before using it. If the checksum does not match, the worker will + # fail to start. + class Package + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes the data disk used by a workflow job. + # @!attribute [rw] size_gb + # @return [::Integer] + # Size of disk in GB. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] disk_type + # @return [::String] + # Disk storage type, as defined by Google Compute Engine. This + # must be a disk type appropriate to the project and zone in which + # the workers will run. If unknown or unspecified, the service + # will attempt to choose a reasonable default. + # + # For example, the standard persistent disk type is a resource name + # typically ending in "pd-standard". If SSD persistent disks are + # available, the resource name typically ends with "pd-ssd". The + # actual valid values are defined the Google Compute Engine API, + # not by the Cloud Dataflow API; consult the Google Compute Engine + # documentation for more information about determining the set of + # available disk types for a particular project and zone. + # + # Google Compute Engine Disk types are local to a particular + # project in a particular zone, and so the resource name will + # typically look something like this: + # + # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard + # @!attribute [rw] mount_point + # @return [::String] + # Directory in a VM where disk is mounted. + class Disk + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Provides data to pass through to the worker harness. + # @!attribute [rw] base_url + # @return [::String] + # The base URL for accessing Google Cloud APIs. + # + # When workers access Google Cloud APIs, they logically do so via + # relative URLs. If this field is specified, it supplies the base + # URL to use for resolving these relative URLs. The normative + # algorithm used is defined by RFC 1808, "Relative Uniform Resource + # Locators". + # + # If not specified, the default value is "http://www.googleapis.com/" + # @!attribute [rw] reporting_enabled + # @return [::Boolean] + # Whether to send work progress updates to the service. + # @!attribute [rw] service_path + # @return [::String] + # The Cloud Dataflow service path relative to the root URL, for example, + # "dataflow/v1b3/projects". + # @!attribute [rw] shuffle_service_path + # @return [::String] + # The Shuffle service path relative to the root URL, for example, + # "shuffle/v1beta1". + # @!attribute [rw] worker_id + # @return [::String] + # The ID of the worker running this pipeline. + # @!attribute [rw] temp_storage_prefix + # @return [::String] + # The prefix of the resources the system should use for temporary + # storage. + # + # The supported resource type is: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + class WorkerSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Taskrunner configuration settings. + # @!attribute [rw] task_user + # @return [::String] + # The UNIX user ID on the worker VM to use for tasks launched by + # taskrunner; e.g. "root". + # @!attribute [rw] task_group + # @return [::String] + # The UNIX group ID on the worker VM to use for tasks launched by + # taskrunner; e.g. "wheel". + # @!attribute [rw] oauth_scopes + # @return [::Array<::String>] + # The OAuth2 scopes to be requested by the taskrunner in order to + # access the Cloud Dataflow API. + # @!attribute [rw] base_url + # @return [::String] + # The base URL for the taskrunner to use when accessing Google Cloud APIs. + # + # When workers access Google Cloud APIs, they logically do so via + # relative URLs. If this field is specified, it supplies the base + # URL to use for resolving these relative URLs. The normative + # algorithm used is defined by RFC 1808, "Relative Uniform Resource + # Locators". + # + # If not specified, the default value is "http://www.googleapis.com/" + # @!attribute [rw] dataflow_api_version + # @return [::String] + # The API version of endpoint, e.g. "v1b3" + # @!attribute [rw] parallel_worker_settings + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerSettings] + # The settings to pass to the parallel worker harness. + # @!attribute [rw] base_task_dir + # @return [::String] + # The location on the worker for task-specific subdirectories. + # @!attribute [rw] continue_on_exception + # @return [::Boolean] + # Whether to continue taskrunner if an exception is hit. + # @!attribute [rw] log_to_serialconsole + # @return [::Boolean] + # Whether to send taskrunner log info to Google Compute Engine VM serial + # console. + # @!attribute [rw] alsologtostderr + # @return [::Boolean] + # Whether to also send taskrunner log info to stderr. + # @!attribute [rw] log_upload_location + # @return [::String] + # Indicates where to put logs. If this is not specified, the logs + # will not be uploaded. + # + # The supported resource type is: + # + # Google Cloud Storage: + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] log_dir + # @return [::String] + # The directory on the VM to store logs. + # @!attribute [rw] temp_storage_prefix + # @return [::String] + # The prefix of the resources the taskrunner should use for + # temporary storage. + # + # The supported resource type is: + # + # Google Cloud Storage: + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] harness_command + # @return [::String] + # The command to launch the worker harness. + # @!attribute [rw] workflow_file_name + # @return [::String] + # The file to store the workflow in. + # @!attribute [rw] commandlines_file_name + # @return [::String] + # The file to store preprocessing commands in. + # @!attribute [rw] vm_id + # @return [::String] + # The ID string of the VM. + # @!attribute [rw] language_hint + # @return [::String] + # The suggested backend language. + # @!attribute [rw] streaming_worker_main_class + # @return [::String] + # The streaming worker main class name. + class TaskRunnerSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for WorkerPool autoscaling. + # @!attribute [rw] algorithm + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] + # The algorithm to use for autoscaling. + # @!attribute [rw] max_num_workers + # @return [::Integer] + # The maximum number of workers to cap scaling at. + class AutoscalingSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines an SDK harness container for executing Dataflow pipelines. + # @!attribute [rw] container_image + # @return [::String] + # A docker container image that resides in Google Container Registry. + # @!attribute [rw] use_single_core_per_container + # @return [::Boolean] + # If true, recommends the Dataflow service to use only one core per SDK + # container instance with this image. If false (or unset) recommends using + # more than one core per SDK container instance with this image for + # efficiency. Note that Dataflow service may choose to override this property + # if needed. + # @!attribute [rw] environment_id + # @return [::String] + # Environment ID for the Beam runner API proto Environment that corresponds + # to the current SDK Harness. + # @!attribute [rw] capabilities + # @return [::Array<::String>] + # The set of capabilities enumerated in the above Environment proto. See also + # [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto) + class SdkHarnessContainerImage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes one particular pool of Cloud Dataflow workers to be + # instantiated by the Cloud Dataflow service in order to perform the + # computations required by a job. Note that a workflow job may use + # multiple pools, in order to match the various computational + # requirements of the various stages of the job. + # @!attribute [rw] kind + # @return [::String] + # The kind of the worker pool; currently only `harness` and `shuffle` + # are supported. + # @!attribute [rw] num_workers + # @return [::Integer] + # Number of Google Compute Engine workers in this pool needed to + # execute the job. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] packages + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Package>] + # Packages to be installed on workers. + # @!attribute [rw] default_package_set + # @return [::Google::Cloud::Dataflow::V1beta3::DefaultPackageSet] + # The default package set to install. This allows the service to + # select a default set of packages which are useful to worker + # harnesses written in a particular language. + # @!attribute [rw] machine_type + # @return [::String] + # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the + # service will attempt to choose a reasonable default. + # @!attribute [rw] teardown_policy + # @return [::Google::Cloud::Dataflow::V1beta3::TeardownPolicy] + # Sets the policy for determining when to turndown worker pool. + # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and + # `TEARDOWN_NEVER`. + # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether + # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down + # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn + # down. + # + # If the workers are not torn down by the service, they will + # continue to run and use Google Compute Engine VM resources in the + # user's project until they are explicitly terminated by the user. + # Because of this, Google recommends using the `TEARDOWN_ALWAYS` + # policy except for small, manually supervised test jobs. + # + # If unknown or unspecified, the service will attempt to choose a reasonable + # default. + # @!attribute [rw] disk_size_gb + # @return [::Integer] + # Size of root disk for VMs, in GB. If zero or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] disk_type + # @return [::String] + # Type of root disk for VMs. If empty or unspecified, the service will + # attempt to choose a reasonable default. + # @!attribute [rw] disk_provisioned_iops + # @return [::Integer] + # Optional. IOPS provisioned for the root disk for VMs. + # @!attribute [rw] disk_provisioned_throughput_mibps + # @return [::Integer] + # Optional. Throughput provisioned for the root disk for VMs. + # @!attribute [rw] disk_source_image + # @return [::String] + # Fully qualified source image for disks. + # @!attribute [rw] zone + # @return [::String] + # Zone to run the worker pools in. If empty or unspecified, the service + # will attempt to choose a reasonable default. + # @!attribute [rw] taskrunner_settings + # @return [::Google::Cloud::Dataflow::V1beta3::TaskRunnerSettings] + # Settings passed through to Google Compute Engine workers when + # using the standard Dataflow task runner. Users should ignore + # this field. + # @!attribute [rw] on_host_maintenance + # @return [::String] + # The action to take on host maintenance, as defined by the Google + # Compute Engine API. + # @!attribute [rw] data_disks + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Disk>] + # Data disks that are used by a VM in this workflow. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Map{::String => ::String}] + # Metadata to set on the Google Compute Engine VMs. + # @!attribute [rw] autoscaling_settings + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingSettings] + # Settings for autoscaling of this WorkerPool. + # @!attribute [rw] pool_args + # @return [::Google::Protobuf::Any] + # Extra arguments for this worker pool. + # @!attribute [rw] network + # @return [::String] + # Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # @!attribute [rw] subnetwork + # @return [::String] + # Subnetwork to which VMs will be assigned, if desired. Expected to be of + # the form "regions/REGION/subnetworks/SUBNETWORK". + # @!attribute [rw] worker_harness_container_image + # @return [::String] + # Required. Docker container image that executes the Cloud Dataflow worker + # harness, residing in Google Container Registry. + # + # Deprecated for the Fn API path. Use sdk_harness_container_images instead. + # @!attribute [rw] num_threads_per_worker + # @return [::Integer] + # The number of threads per worker harness. If empty or unspecified, the + # service will choose a number of threads (according to the number of cores + # on the selected machine type for batch, or 1 by convention for streaming). + # @!attribute [rw] ip_configuration + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] + # Configuration for VM IPs. + # @!attribute [rw] sdk_harness_container_images + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkHarnessContainerImage>] + # Set of SDK harness containers needed to execute this pipeline. This will + # only be set in the Fn API path. For non-cross-language pipelines this + # should have only one entry. Cross-language pipelines will have two or more + # entries. + class WorkerPool + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class MetadataEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Configuration options for sampling elements. + # @!attribute [rw] behaviors + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior>] + # List of given sampling behaviors to enable. For example, specifying + # behaviors = [ALWAYS_ON] samples in-flight elements but does not sample + # exceptions. Can be used to specify multiple behaviors like, + # behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and + # exception sampling. + # + # If DISABLED is in the list, then sampling will be disabled and ignore the + # other given behaviors. + # + # Ordering does not matter. + class DataSamplingConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The following enum defines what to sample for a running job. + module DataSamplingBehavior + # If given, has no effect on sampling behavior. Used as an unknown or unset + # sentinel value. + DATA_SAMPLING_BEHAVIOR_UNSPECIFIED = 0 + + # When given, disables element sampling. Has same behavior as not setting + # the behavior. + DISABLED = 1 + + # When given, enables sampling in-flight from all PCollections. + ALWAYS_ON = 2 + + # When given, enables sampling input elements when a user-defined DoFn + # causes an exception. + EXCEPTIONS = 3 + end + end + + # Describes any options that have an effect on the debugging of pipelines. + # @!attribute [rw] enable_hot_key_logging + # @return [::Boolean] + # Optional. When true, enables the logging of the literal hot key to the + # user's Cloud Logging. + # @!attribute [rw] data_sampling + # @return [::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig] + # Configuration options for sampling elements from a running pipeline. + class DebugOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Specifies the processing model used by a + # [google.dataflow.v1beta3.Job], which determines the way the Job is + # managed by the Cloud Dataflow service (how workers are scheduled, how + # inputs are sharded, etc). + module JobType + # The type of the job is unspecified, or unknown. + JOB_TYPE_UNKNOWN = 0 + + # A batch job with a well-defined end point: data is read, data is + # processed, data is written, and the job is done. + JOB_TYPE_BATCH = 1 + + # A continuously streaming job with no end: data is read, + # processed, and written continuously. + JOB_TYPE_STREAMING = 2 + end + + # Specifies the resource to optimize for in Flexible Resource Scheduling. + module FlexResourceSchedulingGoal + # Run in the default mode. + FLEXRS_UNSPECIFIED = 0 + + # Optimize for lower execution time. + FLEXRS_SPEED_OPTIMIZED = 1 + + # Optimize for lower cost. + FLEXRS_COST_OPTIMIZED = 2 + end + + # Specifies what happens to a resource when a Cloud Dataflow + # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job} has completed. + module TeardownPolicy + # The teardown policy isn't specified, or is unknown. + TEARDOWN_POLICY_UNKNOWN = 0 + + # Always teardown the resource. + TEARDOWN_ALWAYS = 1 + + # Teardown the resource on success. This is useful for debugging + # failures. + TEARDOWN_ON_SUCCESS = 2 + + # Never teardown the resource. This is useful for debugging and + # development. + TEARDOWN_NEVER = 3 + end + + # The default set of packages to be staged on a pool of workers. + module DefaultPackageSet + # The default set of packages to stage is unknown, or unspecified. + DEFAULT_PACKAGE_SET_UNKNOWN = 0 + + # Indicates that no packages should be staged at the worker unless + # explicitly specified by the job. + DEFAULT_PACKAGE_SET_NONE = 1 + + # Stage packages typically useful to workers written in Java. + DEFAULT_PACKAGE_SET_JAVA = 2 + + # Stage packages typically useful to workers written in Python. + DEFAULT_PACKAGE_SET_PYTHON = 3 + end + + # Specifies the algorithm used to determine the number of worker + # processes to run at any given point in time, based on the amount of + # data left to process, the number of workers, and how quickly + # existing workers are processing data. + module AutoscalingAlgorithm + # The algorithm is unknown, or unspecified. + AUTOSCALING_ALGORITHM_UNKNOWN = 0 + + # Disable autoscaling. + AUTOSCALING_ALGORITHM_NONE = 1 + + # Increase worker count over time to reduce job execution time. + AUTOSCALING_ALGORITHM_BASIC = 2 + end + + # Specifies how to allocate IP addresses to worker machines. You can also use + # [pipeline + # options](https://cloud.google.com/dataflow/docs/reference/pipeline-options#security_and_networking) + # to specify whether Dataflow workers use external IP addresses. + module WorkerIPAddressConfiguration + # The configuration is unknown, or unspecified. + WORKER_IP_UNSPECIFIED = 0 + + # Workers should have public IP addresses. + WORKER_IP_PUBLIC = 1 + + # Workers should have private IP addresses. + WORKER_IP_PRIVATE = 2 + end + + # Specifies the shuffle mode used by a + # [google.dataflow.v1beta3.Job], which determines the approach data is shuffled + # during processing. More details in: + # https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle + module ShuffleMode + # Shuffle mode information is not available. + SHUFFLE_MODE_UNSPECIFIED = 0 + + # Shuffle is done on the worker VMs. + VM_BASED = 1 + + # Shuffle is done on the service side. + SERVICE_BASED = 2 + end + + # Specifies the Streaming Engine message processing guarantees. Reduces cost + # and latency but might result in duplicate messages written to storage. + # Designed to run simple mapping streaming ETL jobs at the lowest cost. + # For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + module StreamingMode + # Run in the default mode. + STREAMING_MODE_UNSPECIFIED = 0 + + # In this mode, message deduplication is performed against persistent state + # to make sure each message is processed and committed to storage exactly + # once. + STREAMING_MODE_EXACTLY_ONCE = 1 + + # Message deduplication is not performed. Messages might be processed + # multiple times, and the results are applied multiple times. + # Note: Setting this value also enables Streaming Engine and + # Streaming Engine resource-based billing. + STREAMING_MODE_AT_LEAST_ONCE = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb new file mode 100644 index 000000000000..e9900a0a2b40 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb @@ -0,0 +1,1100 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Defines a job to be run by the Cloud Dataflow service. Do not enter + # confidential information when you supply string values using the API. + # @!attribute [rw] id + # @return [::String] + # The unique ID of this job. + # + # This field is set by the Dataflow service when the job is + # created, and is immutable for the life of the job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Google Cloud project that the job belongs to. + # @!attribute [rw] name + # @return [::String] + # Optional. The user-specified Dataflow job name. + # + # Only one active job with a given name can exist in a project within one + # region at + # any given time. Jobs in different regions can have the same name. + # If a caller attempts to create a job with the same + # name as an active job that already exists, the attempt returns the + # existing job. + # + # The name must match the regular expression + # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` + # @!attribute [rw] type + # @return [::Google::Cloud::Dataflow::V1beta3::JobType] + # Optional. The type of Dataflow job. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::Environment] + # Optional. The environment for the job. + # @!attribute [rw] steps + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Step>] + # Exactly one of step or steps_location should be specified. + # + # The top-level steps that constitute the entire job. Only retrieved with + # JOB_VIEW_ALL. + # @!attribute [rw] steps_location + # @return [::String] + # The Cloud Storage location where the steps are stored. + # @!attribute [rw] current_state + # @return [::Google::Cloud::Dataflow::V1beta3::JobState] + # The current state of the job. + # + # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise + # specified. + # + # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a + # terminal state. After a job has reached a terminal state, no + # further state updates may be made. + # + # This field might be mutated by the Dataflow service; + # callers cannot mutate it. + # @!attribute [rw] current_state_time + # @return [::Google::Protobuf::Timestamp] + # The timestamp associated with the current state. + # @!attribute [rw] requested_state + # @return [::Google::Cloud::Dataflow::V1beta3::JobState] + # The job's requested state. Applies to `UpdateJob` requests. + # + # Set `requested_state` with `UpdateJob` requests to switch between the + # states `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`. You can also use + # `UpdateJob` requests to change a job's + # state from `JOB_STATE_RUNNING` to `JOB_STATE_CANCELLED`, + # `JOB_STATE_DONE`, or `JOB_STATE_DRAINED`. These states irrevocably + # terminate the job if it hasn't already reached a terminal state. + # + # This field has no effect on `CreateJob` requests. + # @!attribute [rw] execution_info + # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionInfo] + # Deprecated. + # @!attribute [rw] create_time + # @return [::Google::Protobuf::Timestamp] + # The timestamp when the job was initially created. Immutable and set by the + # Cloud Dataflow service. + # @!attribute [rw] replace_job_id + # @return [::String] + # If this job is an update of an existing job, this field is the job ID + # of the job it replaced. + # + # When sending a `CreateJobRequest`, you can update a job by specifying it + # here. The job named here is stopped, and its intermediate state is + # transferred to this job. + # @!attribute [rw] transform_name_mapping + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The map of transform name prefixes of the job to be replaced to + # the corresponding name prefixes of the new job. + # @!attribute [rw] client_request_id + # @return [::String] + # The client's unique identifier of the job, re-used across retried attempts. + # If this field is set, the service will ensure its uniqueness. + # The request to create a job will fail if the service has knowledge of a + # previously submitted job with the same client's ID and job name. + # The caller may use this field to ensure idempotence of job + # creation across retried attempts to create a job. + # By default, the field is empty and, in that case, the service ignores it. + # @!attribute [rw] replaced_by_job_id + # @return [::String] + # If another job is an update of this job (and thus, this job is in + # `JOB_STATE_UPDATED`), this field contains the ID of that job. + # @!attribute [rw] temp_files + # @return [::Array<::String>] + # A set of files the system should be aware of that are used + # for temporary storage. These temporary files will be + # removed on job completion. + # No duplicates are allowed. + # No file patterns are supported. + # + # The supported files are: + # + # Google Cloud Storage: + # + # storage.googleapis.com/\\{bucket}/\\{object} + # bucket.storage.googleapis.com/\\{object} + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # User-defined labels for this job. + # + # The labels map can contain no more than 64 entries. Entries of the labels + # map are UTF8 strings that comply with the following restrictions: + # + # * Keys must conform to regexp: [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62} + # * Values must conform to regexp: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63} + # * Both keys and values are additionally constrained to be <= 128 bytes in + # size. + # @!attribute [rw] location + # @return [::String] + # Optional. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @!attribute [rw] pipeline_description + # @return [::Google::Cloud::Dataflow::V1beta3::PipelineDescription] + # Preliminary field: The format of this data may change at any time. + # A description of the user pipeline and stages through which it is executed. + # Created by Cloud Dataflow service. Only retrieved with + # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. + # @!attribute [rw] stage_states + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageState>] + # This field may be mutated by the Cloud Dataflow service; + # callers cannot mutate it. + # @!attribute [rw] job_metadata + # @return [::Google::Cloud::Dataflow::V1beta3::JobMetadata] + # This field is populated by the Dataflow service to support filtering jobs + # by the metadata values provided here. Populated for ListJobs and all GetJob + # views SUMMARY and higher. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). + # Flexible resource scheduling jobs are started with some delay after job + # creation, so start_time is unset before start and is updated when the + # job is started by the Cloud Dataflow service. For other jobs, start_time + # always equals to create_time and is immutable and set by the Cloud Dataflow + # service. + # @!attribute [rw] created_from_snapshot_id + # @return [::String] + # If this is specified, the job's initial state is populated from the given + # snapshot. + # @!attribute [rw] satisfies_pzs + # @return [::Boolean] + # Reserved for future use. This field is set only in responses from the + # server; it is ignored if it is set in any requests. + # @!attribute [rw] runtime_updatable_params + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeUpdatableParams] + # This field may ONLY be modified at runtime using the projects.jobs.update + # method to adjust job behavior. This field has no effect when specified at + # job creation. + # @!attribute [r] satisfies_pzi + # @return [::Boolean] + # Output only. Reserved for future use. This field is set only in responses + # from the server; it is ignored if it is set in any requests. + # @!attribute [r] service_resources + # @return [::Google::Cloud::Dataflow::V1beta3::ServiceResources] + # Output only. Resources used by the Dataflow Service to run the job. + # @!attribute [r] pausable + # @return [::Boolean] + # Output only. Indicates whether the job can be paused. + class Job + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TransformNameMappingEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Resources used by the Dataflow Service to run the job. + # @!attribute [r] zones + # @return [::Array<::String>] + # Output only. List of Cloud Zones being used by the Dataflow Service for + # this job. Example: us-central1-c + class ServiceResources + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Additional job parameters that can only be updated during runtime using the + # projects.jobs.update method. These fields have no effect when specified + # during job creation. + # @!attribute [rw] max_num_workers + # @return [::Integer] + # The maximum number of workers to cap autoscaling at. This field is + # currently only supported for Streaming Engine jobs. + # @!attribute [rw] min_num_workers + # @return [::Integer] + # The minimum number of workers to scale down to. This field is currently + # only supported for Streaming Engine jobs. + # @!attribute [rw] worker_utilization_hint + # @return [::Float] + # Target worker utilization, compared against the aggregate utilization of + # the worker pool by autoscaler, to determine upscaling and downscaling when + # absent other constraints such as backlog. + # For more information, see + # [Update an existing + # pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline). + # @!attribute [rw] acceptable_backlog_duration + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Protobuf::Duration] + # Optional. Deprecated: Use `autoscaling_tier` instead. + # The backlog threshold duration in seconds for autoscaling. Value must be + # non-negative. + # @!attribute [rw] autoscaling_tier + # @return [::String] + # Optional. The backlog threshold tier for autoscaling. Value must be one of + # "low-latency", "medium-latency", or "high-latency". + class RuntimeUpdatableParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Datastore connector used by the job. + # @!attribute [rw] namespace + # @return [::String] + # Namespace used in the connection. + # @!attribute [rw] project_id + # @return [::String] + # ProjectId accessed in the connection. + class DatastoreIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Pub/Sub connector used by the job. + # @!attribute [rw] topic + # @return [::String] + # Topic accessed in the connection. + # @!attribute [rw] subscription + # @return [::String] + # Subscription used in the connection. + class PubSubIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a File connector used by the job. + # @!attribute [rw] file_pattern + # @return [::String] + # File Pattern used to access files by the connector. + class FileIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Cloud Bigtable connector used by the job. + # @!attribute [rw] project_id + # @return [::String] + # ProjectId accessed in the connection. + # @!attribute [rw] instance_id + # @return [::String] + # InstanceId accessed in the connection. + # @!attribute [rw] table_id + # @return [::String] + # TableId accessed in the connection. + class BigTableIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a BigQuery connector used by the job. + # @!attribute [rw] table + # @return [::String] + # Table accessed in the connection. + # @!attribute [rw] dataset + # @return [::String] + # Dataset accessed in the connection. + # @!attribute [rw] project_id + # @return [::String] + # Project accessed in the connection. + # @!attribute [rw] query + # @return [::String] + # Query used to access data in the connection. + class BigQueryIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a Spanner connector used by the job. + # @!attribute [rw] project_id + # @return [::String] + # ProjectId accessed in the connection. + # @!attribute [rw] instance_id + # @return [::String] + # InstanceId accessed in the connection. + # @!attribute [rw] database_id + # @return [::String] + # DatabaseId accessed in the connection. + class SpannerIODetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The version of the SDK used to run the job. + # @!attribute [rw] version + # @return [::String] + # The version of the SDK used to run the job. + # @!attribute [rw] version_display_name + # @return [::String] + # A readable string describing the version of the SDK. + # @!attribute [rw] sdk_support_status + # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion::SdkSupportStatus] + # The support status for this SDK version. + # @!attribute [r] bugs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkBug>] + # Output only. Known bugs found in this SDK version. + class SdkVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The support status of the SDK used to run the job. + module SdkSupportStatus + # Cloud Dataflow is unaware of this version. + UNKNOWN = 0 + + # This is a known version of an SDK, and is supported. + SUPPORTED = 1 + + # A newer version of the SDK family exists, and an update is recommended. + STALE = 2 + + # This version of the SDK is deprecated and will eventually be + # unsupported. + DEPRECATED = 3 + + # Support for this SDK version has ended and it should no longer be used. + UNSUPPORTED = 4 + end + end + + # A bug found in the Dataflow SDK. + # @!attribute [r] type + # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Type] + # Output only. Describes the impact of this SDK bug. + # @!attribute [r] severity + # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Severity] + # Output only. How severe the SDK bug is. + # @!attribute [r] uri + # @return [::String] + # Output only. Link to more information on the bug. + class SdkBug + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Nature of the issue, ordered from least severe to most. Other bug types may + # be added to this list in the future. + module Type + # Unknown issue with this SDK. + TYPE_UNSPECIFIED = 0 + + # Catch-all for SDK bugs that don't fit in the below categories. + GENERAL = 1 + + # Using this version of the SDK may result in degraded performance. + PERFORMANCE = 2 + + # Using this version of the SDK may cause data loss. + DATALOSS = 3 + end + + # Indicates the severity of the bug. Other severities may be added to this + # list in the future. + module Severity + # A bug of unknown severity. + SEVERITY_UNSPECIFIED = 0 + + # A minor bug that that may reduce reliability or performance for some + # jobs. Impact will be minimal or non-existent for most jobs. + NOTICE = 1 + + # A bug that has some likelihood of causing performance degradation, data + # loss, or job failures. + WARNING = 2 + + # A bug with extremely significant impact. Jobs may fail erroneously, + # performance may be severely degraded, and data loss may be very likely. + SEVERE = 3 + end + end + + # Metadata available primarily for filtering jobs. Will be included in the + # ListJob response and Job SUMMARY view. + # @!attribute [rw] sdk_version + # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion] + # The SDK version used to run the job. + # @!attribute [rw] spanner_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SpannerIODetails>] + # Identification of a Spanner source used in the Dataflow job. + # @!attribute [rw] bigquery_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigQueryIODetails>] + # Identification of a BigQuery source used in the Dataflow job. + # @!attribute [rw] big_table_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigTableIODetails>] + # Identification of a Cloud Bigtable source used in the Dataflow job. + # @!attribute [rw] pubsub_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubSubIODetails>] + # Identification of a Pub/Sub source used in the Dataflow job. + # @!attribute [rw] file_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FileIODetails>] + # Identification of a File source used in the Dataflow job. + # @!attribute [rw] datastore_details + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DatastoreIODetails>] + # Identification of a Datastore source used in the Dataflow job. + # @!attribute [rw] user_display_properties + # @return [::Google::Protobuf::Map{::String => ::String}] + # List of display properties to help UI filter jobs. + class JobMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class UserDisplayPropertiesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A message describing the state of a particular execution stage. + # @!attribute [rw] execution_stage_name + # @return [::String] + # The name of the execution stage. + # @!attribute [rw] execution_stage_state + # @return [::Google::Cloud::Dataflow::V1beta3::JobState] + # Executions stage states allow the same set of values as JobState. + # @!attribute [rw] current_state_time + # @return [::Google::Protobuf::Timestamp] + # The time at which the stage transitioned to this state. + class ExecutionStageState + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A descriptive representation of submitted pipeline as well as the executed + # form. This data is provided by the Dataflow service for ease of visualizing + # the pipeline and interpreting Dataflow provided metrics. + # @!attribute [rw] original_pipeline_transform + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::TransformSummary>] + # Description of each transform in the pipeline and collections between them. + # @!attribute [rw] execution_pipeline_stage + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary>] + # Description of each stage of execution of the pipeline. + # @!attribute [rw] display_data + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] + # Pipeline level display data. + # @!attribute [rw] step_names_hash + # @return [::String] + # A hash value of the submitted pipeline portable graph step names if exists. + class PipelineDescription + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of the type, names/ids, and input/outputs for a transform. + # @!attribute [rw] kind + # @return [::Google::Cloud::Dataflow::V1beta3::KindType] + # Type of transform. + # @!attribute [rw] id + # @return [::String] + # SDK generated id of this transform instance. + # @!attribute [rw] name + # @return [::String] + # User provided name for this transform instance. + # @!attribute [rw] display_data + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] + # Transform-specific display data. + # @!attribute [rw] output_collection_name + # @return [::Array<::String>] + # User names for all collection outputs to this transform. + # @!attribute [rw] input_collection_name + # @return [::Array<::String>] + # User names for all collection inputs to this transform. + class TransformSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of the composing transforms, names/ids, and input/outputs of a + # stage of execution. Some composing transforms and sources may have been + # generated by the Dataflow service during execution planning. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this stage. + # @!attribute [rw] id + # @return [::String] + # Dataflow service generated id for this stage. + # @!attribute [rw] kind + # @return [::Google::Cloud::Dataflow::V1beta3::KindType] + # Type of transform this stage is executing. + # @!attribute [rw] input_source + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] + # Input sources for this stage. + # @!attribute [rw] output_source + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] + # Output sources for this stage. + # @!attribute [rw] prerequisite_stage + # @return [::Array<::String>] + # Other stages that must complete before this stage can run. + # @!attribute [rw] component_transform + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentTransform>] + # Transforms that comprise this execution stage. + # @!attribute [rw] component_source + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentSource>] + # Collections produced and consumed by component transforms of this stage. + class ExecutionStageSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Description of an input or output of an execution stage. + # @!attribute [rw] user_name + # @return [::String] + # Human-readable name for this source; may be user or system generated. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this source. + # @!attribute [rw] original_transform_or_collection + # @return [::String] + # User name for the original user transform or collection with which this + # source is most closely associated. + # @!attribute [rw] size_bytes + # @return [::Integer] + # Size of the source, if measurable. + class StageSource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of a transform executed as part of an execution stage. + # @!attribute [rw] user_name + # @return [::String] + # Human-readable name for this transform; may be user or system generated. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this source. + # @!attribute [rw] original_transform + # @return [::String] + # User name for the original user transform with which this transform is + # most closely associated. + class ComponentTransform + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Description of an interstitial value between transforms in an execution + # stage. + # @!attribute [rw] user_name + # @return [::String] + # Human-readable name for this transform; may be user or system generated. + # @!attribute [rw] name + # @return [::String] + # Dataflow service generated name for this source. + # @!attribute [rw] original_transform_or_collection + # @return [::String] + # User name for the original user transform or collection with which this + # source is most closely associated. + class ComponentSource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Data provided with a pipeline or transform to provide descriptive info. + # @!attribute [rw] key + # @return [::String] + # The key identifying the display data. + # This is intended to be used as a label for the display data + # when viewed in a dax monitoring system. + # @!attribute [rw] namespace + # @return [::String] + # The namespace for the key. This is usually a class name or programming + # language namespace (i.e. python module) which defines the display data. + # This allows a dax monitoring system to specially handle the data + # and perform custom rendering. + # @!attribute [rw] str_value + # @return [::String] + # Contains value if the data is of string type. + # + # Note: The following fields are mutually exclusive: `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] int64_value + # @return [::Integer] + # Contains value if the data is of int64 type. + # + # Note: The following fields are mutually exclusive: `int64_value`, `str_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] float_value + # @return [::Float] + # Contains value if the data is of float type. + # + # Note: The following fields are mutually exclusive: `float_value`, `str_value`, `int64_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] java_class_value + # @return [::String] + # Contains value if the data is of java class type. + # + # Note: The following fields are mutually exclusive: `java_class_value`, `str_value`, `int64_value`, `float_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] timestamp_value + # @return [::Google::Protobuf::Timestamp] + # Contains value if the data is of timestamp type. + # + # Note: The following fields are mutually exclusive: `timestamp_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] duration_value + # @return [::Google::Protobuf::Duration] + # Contains value if the data is of duration type. + # + # Note: The following fields are mutually exclusive: `duration_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_value + # @return [::Boolean] + # Contains value if the data is of a boolean type. + # + # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] short_str_value + # @return [::String] + # A possible additional shorter value to display. + # For example a java_class_name_value of com.mypackage.MyDoFn + # will be stored with MyDoFn as the short_str_value and + # com.mypackage.MyDoFn as the java_class_name value. + # short_str_value can be displayed and java_class_name_value + # will be displayed as a tooltip. + # @!attribute [rw] url + # @return [::String] + # An optional full URL. + # @!attribute [rw] label + # @return [::String] + # An optional label to display in a dax UI for the element. + class DisplayData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a particular step within a Cloud Dataflow job. + # + # A job consists of multiple steps, each of which performs some + # specific operation as part of the overall job. Data is typically + # passed from one step to another as part of the job. + # + # **Note:** The properties of this object are not stable and might change. + # + # Here's an example of a sequence of steps which together implement a + # Map-Reduce job: + # + # * Read a collection of data from some source, parsing the + # collection's elements. + # + # * Validate the elements. + # + # * Apply a user-defined function to map each element to some value + # and extract an element-specific key value. + # + # * Group elements with the same key into a single element with + # that key, transforming a multiply-keyed collection into a + # uniquely-keyed collection. + # + # * Write the elements out to some data sink. + # + # Note that the Cloud Dataflow service may be used to run many different + # types of jobs, not just Map-Reduce. + # @!attribute [rw] kind + # @return [::String] + # The kind of step in the Cloud Dataflow job. + # @!attribute [rw] name + # @return [::String] + # The name that identifies the step. This must be unique for each + # step with respect to all other steps in the Cloud Dataflow job. + # @!attribute [rw] properties + # @return [::Google::Protobuf::Struct] + # Named properties associated with the step. Each kind of + # predefined step has its own required set of properties. + # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. + class Step + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Additional information about how a Cloud Dataflow job will be executed that + # isn't contained in the submitted job. + # @!attribute [rw] stages + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo}] + # A mapping from each stage to the information about that stage. + class JobExecutionInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo] + class StagesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Contains information about how a particular + # {::Google::Cloud::Dataflow::V1beta3::Step google.dataflow.v1beta3.Step} will be + # executed. + # @!attribute [rw] step_name + # @return [::Array<::String>] + # The steps associated with the execution stage. + # Note that stages may have several steps, and that a given step + # might be run by more than one stage. + class JobExecutionStageInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to create a Cloud Dataflow job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The job to create. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @!attribute [rw] replace_job_id + # @return [::String] + # Deprecated. This field is now in the Job message. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + class CreateJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get the state of a Cloud Dataflow job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job_id + # @return [::String] + # The job ID. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataflow::V1beta3::JobView] + # The level of information requested in response. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + class GetJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to update a Cloud Dataflow job. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job_id + # @return [::String] + # The job ID. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The updated job. + # Only the job state is updatable; other fields will be ignored. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # The list of fields to update relative to Job. If empty, only + # RequestedJobState will be considered for update. If the FieldMask is not + # empty and RequestedJobState is none/empty, The fields specified in the + # update mask will be the only ones considered for update. If both + # RequestedJobState and update_mask are specified, an error will be returned + # as we cannot update both state and mask. + class UpdateJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to list Cloud Dataflow jobs. + # @!attribute [rw] filter + # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] + # The kind of filter to use. + # @!attribute [rw] project_id + # @return [::String] + # The project which owns the jobs. + # @!attribute [rw] view + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Google::Cloud::Dataflow::V1beta3::JobView] + # Deprecated. ListJobs always returns summaries now. + # Use GetJob for other JobViews. + # @!attribute [rw] page_size + # @return [::Integer] + # If there are many jobs, limit response to at most this many. + # The actual number of jobs returned will be the lesser of max_responses + # and an unspecified server-defined limit. + # @!attribute [rw] page_token + # @return [::String] + # Set this to the 'next_page_token' field of a previous response + # to request additional results in a long list. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains this job. + # @!attribute [rw] name + # @return [::String] + # Optional. The job name. + class ListJobsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # This field filters out and returns jobs in the specified job state. The + # order of data returned is determined by the filter used, and is subject to + # change. + module Filter + # The filter isn't specified, or is unknown. This returns all jobs ordered + # on descending `JobUuid`. + UNKNOWN = 0 + + # Returns all running jobs first ordered on creation timestamp, then + # returns all terminated jobs ordered on the termination timestamp. + ALL = 1 + + # Filters the jobs that have a terminated state, ordered on the + # termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, + # `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc. + TERMINATED = 2 + + # Filters the jobs that are running ordered on the creation timestamp. + ACTIVE = 3 + end + end + + # Indicates which [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed + # to respond to a request for data. + # @!attribute [rw] name + # @return [::String] + # The name of the [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # failed to respond. + class FailedLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to a request to list Cloud Dataflow jobs in a project. This might + # be a partial response, depending on the page size in the ListJobsRequest. + # However, if the project does not have any jobs, an instance of + # ListJobsResponse is not returned and the requests's response + # body is empty {}. + # @!attribute [rw] jobs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Job>] + # A subset of the requested job information. + # @!attribute [rw] next_page_token + # @return [::String] + # Set if there may be more results than fit in this response. + # @!attribute [rw] failed_location + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FailedLocation>] + # Zero or more messages describing the [regional endpoints] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # failed to respond. + class ListJobsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to create a snapshot of a job. + # @!attribute [rw] project_id + # @return [::String] + # The project which owns the job to be snapshotted. + # @!attribute [rw] job_id + # @return [::String] + # The job to be snapshotted. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # TTL for the snapshot. + # @!attribute [rw] location + # @return [::String] + # The location that contains this job. + # @!attribute [rw] snapshot_sources + # @return [::Boolean] + # If true, perform snapshots for sources which support this. + # @!attribute [rw] description + # @return [::String] + # User specified description of the snapshot. Maybe empty. + class SnapshotJobRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to check is active jobs exists for a project + # @!attribute [rw] project_id + # @return [::String] + # The project which owns the jobs. + class CheckActiveJobsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response for CheckActiveJobsRequest. + # @!attribute [rw] active_jobs_exist + # @return [::Boolean] + # If True, active jobs exists for project. False otherwise. + class CheckActiveJobsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Type of transform or stage operation. + module KindType + # Unrecognized transform type. + UNKNOWN_KIND = 0 + + # ParDo transform. + PAR_DO_KIND = 1 + + # Group By Key transform. + GROUP_BY_KEY_KIND = 2 + + # Flatten transform. + FLATTEN_KIND = 3 + + # Read transform. + READ_KIND = 4 + + # Write transform. + WRITE_KIND = 5 + + # Constructs from a constant value, such as with Create.of. + CONSTANT_KIND = 6 + + # Creates a Singleton view of a collection. + SINGLETON_KIND = 7 + + # Opening or closing a shuffle session, often as part of a GroupByKey. + SHUFFLE_KIND = 8 + end + + # Describes the overall state of a + # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job}. + module JobState + # The job's run state isn't specified. + JOB_STATE_UNKNOWN = 0 + + # `JOB_STATE_STOPPED` indicates that the job has not + # yet started to run. + JOB_STATE_STOPPED = 1 + + # `JOB_STATE_RUNNING` indicates that the job is currently running. + JOB_STATE_RUNNING = 2 + + # `JOB_STATE_DONE` indicates that the job has successfully completed. + # This is a terminal job state. This state may be set by the Cloud Dataflow + # service, as a transition from `JOB_STATE_RUNNING`. It may also be set via a + # Cloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal + # state. + JOB_STATE_DONE = 3 + + # `JOB_STATE_FAILED` indicates that the job has failed. This is a + # terminal job state. This state may only be set by the Cloud Dataflow + # service, and only as a transition from `JOB_STATE_RUNNING`. + JOB_STATE_FAILED = 4 + + # `JOB_STATE_CANCELLED` indicates that the job has been explicitly + # cancelled. This is a terminal job state. This state may only be + # set via a Cloud Dataflow `UpdateJob` call, and only if the job has not + # yet reached another terminal state. + JOB_STATE_CANCELLED = 5 + + # `JOB_STATE_UPDATED` indicates that the job was successfully updated, + # meaning that this job was stopped and another job was started, inheriting + # state from this one. This is a terminal job state. This state may only be + # set by the Cloud Dataflow service, and only as a transition from + # `JOB_STATE_RUNNING`. + JOB_STATE_UPDATED = 6 + + # `JOB_STATE_DRAINING` indicates that the job is in the process of draining. + # A draining job has stopped pulling from its input sources and is processing + # any data that remains in-flight. This state may be set via a Cloud Dataflow + # `UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs + # that are draining may only transition to `JOB_STATE_DRAINED`, + # `JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`. + JOB_STATE_DRAINING = 7 + + # `JOB_STATE_DRAINED` indicates that the job has been drained. + # A drained job terminated by stopping pulling from its input sources and + # processing any data that remained in-flight when draining was requested. + # This state is a terminal state, may only be set by the Cloud Dataflow + # service, and only as a transition from `JOB_STATE_DRAINING`. + JOB_STATE_DRAINED = 8 + + # `JOB_STATE_PENDING` indicates that the job has been created but is not yet + # running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, + # or `JOB_STATE_FAILED`. + JOB_STATE_PENDING = 9 + + # `JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled + # and is in the process of stopping. Jobs that are cancelling may only + # transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`. + JOB_STATE_CANCELLING = 10 + + # `JOB_STATE_QUEUED` indicates that the job has been created but is being + # delayed until launch. Jobs that are queued may only transition to + # `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`. + JOB_STATE_QUEUED = 11 + + # `JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated + # resources are currently being cleaned up after a successful run. + # Currently, this is an opt-in feature, please reach out to Cloud support + # team if you are interested. + JOB_STATE_RESOURCE_CLEANING_UP = 12 + + # `JOB_STATE_PAUSING` is not implemented yet. + JOB_STATE_PAUSING = 13 + + # `JOB_STATE_PAUSED` is not implemented yet. + JOB_STATE_PAUSED = 14 + end + + # Selector for how much information is returned in Job responses. + module JobView + # The job view to return isn't specified, or is unknown. + # Responses will contain at least the `JOB_VIEW_SUMMARY` information, + # and may contain additional information. + JOB_VIEW_UNKNOWN = 0 + + # Request summary information only: + # Project ID, Job ID, job name, job type, job status, start/end time, + # and Cloud SDK version details. + JOB_VIEW_SUMMARY = 1 + + # Request all information available for this job. When the job is in + # `JOB_STATE_PENDING`, the job has been created but is not yet running, and + # not all job information is available. For complete + # job information, wait until the job in is `JOB_STATE_RUNNING`. For more + # information, see + # [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate). + JOB_VIEW_ALL = 2 + + # Request summary info and limited job description data for steps, labels and + # environment. + JOB_VIEW_DESCRIPTION = 3 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb new file mode 100644 index 000000000000..726654a43823 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb @@ -0,0 +1,225 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # A particular message pertaining to a Dataflow job. + # @!attribute [rw] id + # @return [::String] + # Deprecated. + # @!attribute [rw] time + # @return [::Google::Protobuf::Timestamp] + # The timestamp of the message. + # @!attribute [rw] message_text + # @return [::String] + # The text of the message. + # @!attribute [rw] message_importance + # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Importance level of the message. + class JobMessage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A rich message format, including a human readable string, a key for + # identifying the message, and structured data associated with the message for + # programmatic consumption. + # @!attribute [rw] message_text + # @return [::String] + # Human-readable version of message. + # @!attribute [rw] message_key + # @return [::String] + # Identifier for this message type. Used by external systems to + # internationalize or personalize message. + # @!attribute [rw] parameters + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter>] + # The structured data associated with this message. + class StructuredMessage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Structured data associated with this message. + # @!attribute [rw] key + # @return [::String] + # Key or name for this parameter. + # @!attribute [rw] value + # @return [::Google::Protobuf::Value] + # Value for this parameter. + class Parameter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A structured message reporting an autoscaling decision made by the Dataflow + # service. + # @!attribute [rw] current_num_workers + # @return [::Integer] + # The current number of workers the job has. + # @!attribute [rw] target_num_workers + # @return [::Integer] + # The target number of workers the worker pool wants to resize to use. + # @!attribute [rw] event_type + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent::AutoscalingEventType] + # The type of autoscaling event to report. + # @!attribute [rw] description + # @return [::Google::Cloud::Dataflow::V1beta3::StructuredMessage] + # A message describing why the system decided to adjust the current + # number of workers, why it failed, or why the system decided to + # not make any changes to the number of workers. + # @!attribute [rw] time + # @return [::Google::Protobuf::Timestamp] + # The time this event was emitted to indicate a new target or current + # num_workers value. + # @!attribute [rw] worker_pool + # @return [::String] + # A short and friendly name for the worker pool this event refers to. + class AutoscalingEvent + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Indicates the type of autoscaling event. + module AutoscalingEventType + # Default type for the enum. Value should never be returned. + TYPE_UNKNOWN = 0 + + # The TARGET_NUM_WORKERS_CHANGED type should be used when the target + # worker pool size has changed at the start of an actuation. An event + # should always be specified as TARGET_NUM_WORKERS_CHANGED if it reflects + # a change in the target_num_workers. + TARGET_NUM_WORKERS_CHANGED = 1 + + # The CURRENT_NUM_WORKERS_CHANGED type should be used when actual worker + # pool size has been changed, but the target_num_workers has not changed. + CURRENT_NUM_WORKERS_CHANGED = 2 + + # The ACTUATION_FAILURE type should be used when we want to report + # an error to the user indicating why the current number of workers + # in the pool could not be changed. + # Displayed in the current status and history widgets. + ACTUATION_FAILURE = 3 + + # Used when we want to report to the user a reason why we are + # not currently adjusting the number of workers. + # Should specify both target_num_workers, current_num_workers and a + # decision_message. + NO_CHANGE = 4 + end + end + + # Request to list job messages. + # Up to max_results messages will be returned in the time range specified + # starting with the oldest messages first. If no time range is specified + # the results with start with the oldest message. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get messages about. + # @!attribute [rw] minimum_importance + # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] + # Filter to only get messages with importance >= level + # @!attribute [rw] page_size + # @return [::Integer] + # If specified, determines the maximum number of messages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @!attribute [rw] page_token + # @return [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # If specified, return only messages with timestamps >= start_time. + # The default is the job creation time (i.e. beginning of messages). + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Return only messages with timestamps < end_time. The default is now + # (i.e. return up to the latest messages available). + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + class ListJobMessagesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to a request to list job messages. + # @!attribute [rw] job_messages + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::JobMessage>] + # Messages in ascending timestamp order. + # @!attribute [rw] next_page_token + # @return [::String] + # The token to obtain the next page of results if there are more. + # @!attribute [rw] autoscaling_events + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent>] + # Autoscaling events in ascending timestamp order. + class ListJobMessagesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Indicates the importance of the message. + module JobMessageImportance + # The message importance isn't specified, or is unknown. + JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0 + + # The message is at the 'debug' level: typically only useful for + # software engineers working on the code the job is running. + # Typically, Dataflow pipeline runners do not display log messages + # at this level by default. + JOB_MESSAGE_DEBUG = 1 + + # The message is at the 'detailed' level: somewhat verbose, but + # potentially useful to users. Typically, Dataflow pipeline + # runners do not display log messages at this level by default. + # These messages are displayed by default in the Dataflow + # monitoring UI. + JOB_MESSAGE_DETAILED = 2 + + # The message is at the 'basic' level: useful for keeping + # track of the execution of a Dataflow pipeline. Typically, + # Dataflow pipeline runners display log messages at this level by + # default, and these messages are displayed by default in the + # Dataflow monitoring UI. + JOB_MESSAGE_BASIC = 5 + + # The message is at the 'warning' level: indicating a condition + # pertaining to a job which may require human intervention. + # Typically, Dataflow pipeline runners display log messages at this + # level by default, and these messages are displayed by default in + # the Dataflow monitoring UI. + JOB_MESSAGE_WARNING = 3 + + # The message is at the 'error' level: indicating a condition + # preventing a job from succeeding. Typically, Dataflow pipeline + # runners display log messages at this level by default, and these + # messages are displayed by default in the Dataflow monitoring UI. + JOB_MESSAGE_ERROR = 4 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb new file mode 100644 index 000000000000..48590e3d26f4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb @@ -0,0 +1,517 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Identifies a metric, by describing the source which generated the + # metric. + # @!attribute [rw] origin + # @return [::String] + # Origin (namespace) of metric name. May be blank for user-define metrics; + # will be "dataflow" for metrics defined by the Dataflow service or SDK. + # @!attribute [rw] name + # @return [::String] + # Worker-defined metric name. + # @!attribute [rw] context + # @return [::Google::Protobuf::Map{::String => ::String}] + # Zero or more labeled fields which identify the part of the job this + # metric is associated with, such as the name of a step or collection. + # + # For example, built-in counters associated with steps will have + # context['step'] = . Counters associated with PCollections + # in the SDK will have context['pcollection'] = . + class MetricStructuredName + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ContextEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the state of a metric. + # @!attribute [rw] name + # @return [::Google::Cloud::Dataflow::V1beta3::MetricStructuredName] + # Name of the metric. + # @!attribute [rw] kind + # @return [::String] + # Metric aggregation kind. The possible metric aggregation kinds are + # "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". + # The specified aggregation kind is case-insensitive. + # + # If omitted, this is not an aggregated value but instead + # a single metric sample value. + # @!attribute [rw] cumulative + # @return [::Boolean] + # True if this metric is reported as the total cumulative aggregate + # value accumulated since the worker started working on this WorkItem. + # By default this is false, indicating that this metric is reported + # as a delta that is not associated with any WorkItem. + # @!attribute [rw] scalar + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", + # "And", and "Or". The possible value types are Long, Double, and Boolean. + # @!attribute [rw] mean_sum + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Mean" aggregation kind. + # This holds the sum of the aggregated values and is used in combination + # with mean_count below to obtain the actual mean aggregate value. + # The only possible value types are Long and Double. + # @!attribute [rw] mean_count + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Mean" aggregation kind. + # This holds the count of the aggregated values and is used in combination + # with mean_sum above to obtain the actual mean aggregate value. + # The only possible value type is Long. + # @!attribute [rw] set + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Set" aggregation kind. The only + # possible value type is a list of Values whose type can be Long, Double, + # String, or BoundedTrie according to the metric's type. All Values in the + # list must be of the same type. + # @!attribute [rw] trie + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Trie" aggregation kind. The only + # possible value type is a BoundedTrieNode. + # @!attribute [rw] bounded_trie + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for the "Trie" aggregation kind. The only + # possible value type is a BoundedTrieNode. + # Introduced this field to avoid breaking older SDKs when Dataflow service + # starts to populate the `bounded_trie` field. + # @!attribute [rw] distribution + # @return [::Google::Protobuf::Value] + # A struct value describing properties of a distribution of numeric values. + # @!attribute [rw] gauge + # @return [::Google::Protobuf::Value] + # A struct value describing properties of a Gauge. + # Metrics of gauge type show the value of a metric across time, and is + # aggregated based on the newest value. + # @!attribute [rw] internal + # @return [::Google::Protobuf::Value] + # Worker-computed aggregate value for internal use by the Dataflow + # service. + # @!attribute [rw] update_time + # @return [::Google::Protobuf::Timestamp] + # Timestamp associated with the metric value. Optional when workers are + # reporting work progress; it will be filled in responses from the + # metrics API. + class MetricUpdate + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get job metrics. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get metrics for. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Return only metric data that has changed since this time. + # Default is to return all information about all metrics for the job. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + class GetJobMetricsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # JobMetrics contains a collection of metrics describing the detailed progress + # of a Dataflow job. Metrics correspond to user-defined and system-defined + # metrics in the job. For more information, see [Dataflow job metrics] + # (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf). + # + # This resource captures only the most recent values of each metric; + # time-series data can be queried for them (under the same metric names) + # from Cloud Monitoring. + # @!attribute [rw] metric_time + # @return [::Google::Protobuf::Timestamp] + # Timestamp as of which metric values are current. + # @!attribute [rw] metrics + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] + # All metrics for this job. + class JobMetrics + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get job execution details. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get execution details for. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @!attribute [rw] page_size + # @return [::Integer] + # If specified, determines the maximum number of stages to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @!attribute [rw] page_token + # @return [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + class GetJobExecutionDetailsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the progress of some component of job execution. + # @!attribute [rw] current_progress + # @return [::Float] + # The current progress of the component, in the range [0,1]. + # @!attribute [rw] data_points + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries::Point>] + # History of progress for the component. + # + # Points are sorted by time. + class ProgressTimeseries + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A point in the timeseries. + # @!attribute [rw] time + # @return [::Google::Protobuf::Timestamp] + # The timestamp of the point. + # @!attribute [rw] value + # @return [::Float] + # The value of the point. + class Point + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Information useful for straggler identification and debugging. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # The time when the work item attempt became a straggler. + # @!attribute [rw] causes + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo}] + # The straggler causes, keyed by the string representation of the + # StragglerCause enum and contains specialized debugging information for each + # straggler cause. + class StragglerInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Information useful for debugging a straggler. Each type will provide + # specialized debugging information relevant for a particular cause. + # The StragglerDebuggingInfo will be 1:1 mapping to the StragglerCause enum. + # @!attribute [rw] hot_key + # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo] + # Hot key debugging details. + class StragglerDebuggingInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo] + class CausesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Information useful for streaming straggler identification and debugging. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Start time of this straggler. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # End time of this straggler. + # @!attribute [rw] worker_name + # @return [::String] + # Name of the worker where the straggler was detected. + # @!attribute [rw] data_watermark_lag + # @return [::Google::Protobuf::Duration] + # The event-time watermark lag at the time of the straggler detection. + # @!attribute [rw] system_watermark_lag + # @return [::Google::Protobuf::Duration] + # The system watermark lag at the time of the straggler detection. + class StreamingStragglerInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information for a straggler. + # @!attribute [rw] batch_straggler + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] + # Batch straggler identification and debugging information. + # + # Note: The following fields are mutually exclusive: `batch_straggler`, `streaming_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] streaming_straggler + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStragglerInfo] + # Streaming straggler identification and debugging information. + # + # Note: The following fields are mutually exclusive: `streaming_straggler`, `batch_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Straggler + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information useful for debugging a hot key detection. + # @!attribute [rw] detected_hot_keys + # @return [::Google::Protobuf::Map{::Integer => ::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo}] + # Debugging information for each detected hot key. Keyed by a hash of the + # key. + class HotKeyDebuggingInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Information about a hot key. + # @!attribute [rw] hot_key_age + # @return [::Google::Protobuf::Duration] + # The age of the hot key measured from when it was first detected. + # @!attribute [rw] key + # @return [::String] + # A detected hot key that is causing limited parallelism. This field will + # be populated only if the following flag is set to true: + # "--enable_hot_key_logging". + # @!attribute [rw] key_truncated + # @return [::Boolean] + # If true, then the above key is truncated and cannot be deserialized. This + # occurs if the key above is populated and the key size is >5MB. + class HotKeyInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::Integer] + # @!attribute [rw] value + # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo] + class DetectedHotKeysEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Summarized straggler identification details. + # @!attribute [rw] total_straggler_count + # @return [::Integer] + # The total count of stragglers. + # @!attribute [rw] straggler_cause_count + # @return [::Google::Protobuf::Map{::String => ::Integer}] + # Aggregated counts of straggler causes, keyed by the string representation + # of the StragglerCause enum. + # @!attribute [rw] recent_stragglers + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Straggler>] + # The most recent stragglers. + class StragglerSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Integer] + class StragglerCauseCountEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Information about a particular execution stage of a job. + # @!attribute [rw] stage_id + # @return [::String] + # ID of this stage + # @!attribute [rw] state + # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] + # State of this stage. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Start time of this stage. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # End time of this stage. + # + # If the work item is completed, this is the actual end time of the stage. + # Otherwise, it is the predicted end time. + # @!attribute [rw] progress + # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] + # Progress for this stage. + # Only applicable to Batch jobs. + # @!attribute [rw] metrics + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] + # Metrics for this stage. + # @!attribute [rw] straggler_summary + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerSummary] + # Straggler summary for this stage. + class StageSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the execution of a job. + # @!attribute [rw] stages + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StageSummary>] + # The stages of the job execution. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, this response does not contain all requested tasks. To obtain + # the next page of results, repeat the request with page_token set to this + # value. + class JobExecutionDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get information about a particular execution stage of a job. + # Currently only tracked for Batch jobs. + # @!attribute [rw] project_id + # @return [::String] + # A project id. + # @!attribute [rw] job_id + # @return [::String] + # The job to get execution details for. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that + # contains the job specified by job_id. + # @!attribute [rw] stage_id + # @return [::String] + # The stage for which to fetch information. + # @!attribute [rw] page_size + # @return [::Integer] + # If specified, determines the maximum number of work items to + # return. If unspecified, the service may choose an appropriate + # default, or may return an arbitrarily large number of results. + # @!attribute [rw] page_token + # @return [::String] + # If supplied, this should be the value of next_page_token returned + # by an earlier call. This will cause the next page of results to + # be returned. + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Lower time bound of work items to include, by start time. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # Upper time bound of work items to include, by start time. + class GetStageExecutionDetailsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about an individual work item execution. + # @!attribute [rw] task_id + # @return [::String] + # Name of this work item. + # @!attribute [rw] attempt_id + # @return [::String] + # Attempt ID of this work item + # @!attribute [rw] start_time + # @return [::Google::Protobuf::Timestamp] + # Start time of this work item attempt. + # @!attribute [rw] end_time + # @return [::Google::Protobuf::Timestamp] + # End time of this work item attempt. + # + # If the work item is completed, this is the actual end time of the work + # item. Otherwise, it is the predicted end time. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] + # State of this work item. + # @!attribute [rw] progress + # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] + # Progress of this work item. + # @!attribute [rw] metrics + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] + # Metrics for this work item. + # @!attribute [rw] straggler_info + # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] + # Information about straggler detections for this work item. + class WorkItemDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about a worker + # @!attribute [rw] worker_name + # @return [::String] + # Name of this worker + # @!attribute [rw] work_items + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkItemDetails>] + # Work items processed by this worker, sorted by time. + class WorkerDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Information about the workers and work items within a stage. + # @!attribute [rw] workers + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] + # Workers that have done work on the stage. + # @!attribute [rw] next_page_token + # @return [::String] + # If present, this response does not contain all requested tasks. To obtain + # the next page of results, repeat the request with page_token set to this + # value. + class StageExecutionDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The state of some component of job execution. + module ExecutionState + # The component state is unknown or unspecified. + EXECUTION_STATE_UNKNOWN = 0 + + # The component is not yet running. + EXECUTION_STATE_NOT_STARTED = 1 + + # The component is currently running. + EXECUTION_STATE_RUNNING = 2 + + # The component succeeded. + EXECUTION_STATE_SUCCEEDED = 3 + + # The component failed. + EXECUTION_STATE_FAILED = 4 + + # Execution of the component was cancelled. + EXECUTION_STATE_CANCELLED = 5 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb new file mode 100644 index 000000000000..17febf5681be --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb @@ -0,0 +1,160 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Represents a Pubsub snapshot. + # @!attribute [rw] topic_name + # @return [::String] + # The name of the Pubsub topic. + # @!attribute [rw] snapshot_name + # @return [::String] + # The name of the Pubsub snapshot. + # @!attribute [rw] expire_time + # @return [::Google::Protobuf::Timestamp] + # The expire time of the Pubsub snapshot. + class PubsubSnapshotMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a snapshot of a job. + # @!attribute [rw] id + # @return [::String] + # The unique ID of this snapshot. + # @!attribute [rw] project_id + # @return [::String] + # The project this snapshot belongs to. + # @!attribute [rw] source_job_id + # @return [::String] + # The job this snapshot was created from. + # @!attribute [rw] creation_time + # @return [::Google::Protobuf::Timestamp] + # The time this snapshot was created. + # @!attribute [rw] ttl + # @return [::Google::Protobuf::Duration] + # The time after which this snapshot will be automatically deleted. + # @!attribute [rw] state + # @return [::Google::Cloud::Dataflow::V1beta3::SnapshotState] + # State of the snapshot. + # @!attribute [rw] pubsub_metadata + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubsubSnapshotMetadata>] + # Pub/Sub snapshot metadata. + # @!attribute [rw] description + # @return [::String] + # User specified description of the snapshot. Maybe empty. + # @!attribute [rw] disk_size_bytes + # @return [::Integer] + # The disk byte size of the snapshot. Only available for snapshots in READY + # state. + # @!attribute [rw] region + # @return [::String] + # Cloud region where this snapshot lives in, e.g., "us-central1". + class Snapshot + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to get information about a snapshot + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @!attribute [rw] snapshot_id + # @return [::String] + # The ID of the snapshot. + # @!attribute [rw] location + # @return [::String] + # The location that contains this snapshot. + class GetSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to delete a snapshot. + # @!attribute [rw] project_id + # @return [::String] + # The ID of the Cloud Platform project that the snapshot belongs to. + # @!attribute [rw] snapshot_id + # @return [::String] + # The ID of the snapshot. + # @!attribute [rw] location + # @return [::String] + # The location that contains this snapshot. + class DeleteSnapshotRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response from deleting a snapshot. + class DeleteSnapshotResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request to list snapshots. + # @!attribute [rw] project_id + # @return [::String] + # The project ID to list snapshots for. + # @!attribute [rw] job_id + # @return [::String] + # If specified, list snapshots created from this job. + # @!attribute [rw] location + # @return [::String] + # The location to list snapshots in. + class ListSnapshotsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # List of snapshots. + # @!attribute [rw] snapshots + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Snapshot>] + # Returned snapshots. + class ListSnapshotsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Snapshot state. + module SnapshotState + # Unknown state. + UNKNOWN_SNAPSHOT_STATE = 0 + + # Snapshot intent to create has been persisted, snapshotting of state has not + # yet started. + PENDING = 1 + + # Snapshotting is being performed. + RUNNING = 2 + + # Snapshot has been created and is ready to be used. + READY = 3 + + # Snapshot failed to be created. + FAILED = 4 + + # Snapshot has been deleted. + DELETED = 5 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb new file mode 100644 index 000000000000..6e5ebcb32b77 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb @@ -0,0 +1,292 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Global topology of the streaming Dataflow job, including all + # computations and their sharded locations. + # @!attribute [rw] computations + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ComputationTopology>] + # The computations associated with a streaming Dataflow job. + # @!attribute [rw] data_disk_assignments + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataDiskAssignment>] + # The disks assigned to a streaming Dataflow job. + # @!attribute [rw] user_stage_to_computation_name_map + # @return [::Google::Protobuf::Map{::String => ::String}] + # Maps user stage names to stable computation names. + # @!attribute [rw] forwarding_key_bits + # @return [::Integer] + # The size (in bits) of keys that will be assigned to source messages. + # @!attribute [rw] persistent_state_version + # @return [::Integer] + # Version number for persistent state. + class TopologyConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class UserStageToComputationNameMapEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Identifies a pubsub location to use for transferring data into or + # out of a streaming Dataflow job. + # @!attribute [rw] topic + # @return [::String] + # A pubsub topic, in the form of + # "pubsub.googleapis.com/topics//" + # @!attribute [rw] subscription + # @return [::String] + # A pubsub subscription, in the form of + # "pubsub.googleapis.com/subscriptions//" + # @!attribute [rw] timestamp_label + # @return [::String] + # If set, contains a pubsub label from which to extract record timestamps. + # If left empty, record timestamps will be generated upon arrival. + # @!attribute [rw] id_label + # @return [::String] + # If set, contains a pubsub label from which to extract record ids. + # If left empty, record deduplication will be strictly best effort. + # @!attribute [rw] drop_late_data + # @return [::Boolean] + # Indicates whether the pipeline allows late-arriving data. + # @!attribute [rw] tracking_subscription + # @return [::String] + # If set, specifies the pubsub subscription that will be used for tracking + # custom time timestamps for watermark estimation. + # @!attribute [rw] with_attributes + # @return [::Boolean] + # If true, then the client has requested to get pubsub attributes. + # @!attribute [rw] dynamic_destinations + # @return [::Boolean] + # If true, then this location represents dynamic topics. + class PubsubLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Identifies the location of a streaming computation stage, for + # stage-to-stage communication. + # @!attribute [rw] stream_id + # @return [::String] + # Identifies the particular stream within the streaming Dataflow + # job. + class StreamingStageLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Identifies the location of a streaming side input. + # @!attribute [rw] tag + # @return [::String] + # Identifies the particular side input within the streaming Dataflow job. + # @!attribute [rw] state_family + # @return [::String] + # Identifies the state family where this side input is stored. + class StreamingSideInputLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Identifies the location of a custom souce. + # @!attribute [rw] stateful + # @return [::Boolean] + # Whether this source is stateful. + class CustomSourceLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes a stream of data, either as input to be processed or as + # output of a streaming Dataflow job. + # @!attribute [rw] streaming_stage_location + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStageLocation] + # The stream is part of another computation within the current + # streaming Dataflow job. + # + # Note: The following fields are mutually exclusive: `streaming_stage_location`, `pubsub_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] pubsub_location + # @return [::Google::Cloud::Dataflow::V1beta3::PubsubLocation] + # The stream is a pubsub stream. + # + # Note: The following fields are mutually exclusive: `pubsub_location`, `streaming_stage_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] side_input_location + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingSideInputLocation] + # The stream is a streaming side input. + # + # Note: The following fields are mutually exclusive: `side_input_location`, `streaming_stage_location`, `pubsub_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] custom_source_location + # @return [::Google::Cloud::Dataflow::V1beta3::CustomSourceLocation] + # The stream is a custom source. + # + # Note: The following fields are mutually exclusive: `custom_source_location`, `streaming_stage_location`, `pubsub_location`, `side_input_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class StreamLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # State family configuration. + # @!attribute [rw] state_family + # @return [::String] + # The state family value. + # @!attribute [rw] is_read + # @return [::Boolean] + # If true, this family corresponds to a read operation. + class StateFamilyConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # All configuration data for a particular Computation. + # @!attribute [rw] system_stage_name + # @return [::String] + # The system stage name. + # @!attribute [rw] computation_id + # @return [::String] + # The ID of the computation. + # @!attribute [rw] key_ranges + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeLocation>] + # The key ranges processed by the computation. + # @!attribute [rw] inputs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] + # The inputs to the computation. + # @!attribute [rw] outputs + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] + # The outputs from the computation. + # @!attribute [rw] state_families + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StateFamilyConfig>] + # The state family values. + class ComputationTopology + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Location information for a specific key-range of a sharded computation. + # Currently we only support UTF-8 character splits to simplify encoding into + # JSON. + # @!attribute [rw] start + # @return [::String] + # The start (inclusive) of the key range. + # @!attribute [rw] end + # @return [::String] + # The end (exclusive) of the key range. + # @!attribute [rw] delivery_endpoint + # @return [::String] + # The physical location of this range assignment to be used for + # streaming computation cross-worker message delivery. + # @!attribute [rw] data_disk + # @return [::String] + # The name of the data disk where data for this range is stored. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + # @!attribute [rw] deprecated_persistent_directory + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # DEPRECATED. The location of the persistent state for this range, as a + # persistent directory in the worker local filesystem. + class KeyRangeLocation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes mounted data disk. + # @!attribute [rw] data_disk + # @return [::String] + # The name of the data disk. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + class MountedDataDisk + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data disk assignment for a given VM instance. + # @!attribute [rw] vm_instance + # @return [::String] + # VM instance name the data disks mounted to, for example + # "myproject-1014-104817-4c2-harness-0". + # @!attribute [rw] data_disks + # @return [::Array<::String>] + # Mounted data disks. The order is important a data disk's 0-based index in + # this list defines which persistent directory the disk is mounted to, for + # example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, + # { "myproject-1014-104817-4c2-harness-0-disk-1" }. + class DataDiskAssignment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data disk assignment information for a specific key-range of a sharded + # computation. + # Currently we only support UTF-8 character splits to simplify encoding into + # JSON. + # @!attribute [rw] start + # @return [::String] + # The start (inclusive) of the key range. + # @!attribute [rw] end + # @return [::String] + # The end (exclusive) of the key range. + # @!attribute [rw] data_disk + # @return [::String] + # The name of the data disk where data for this range is stored. + # This name is local to the Google Cloud Platform project and uniquely + # identifies the disk within that project, for example + # "myproject-1014-104817-4c2-harness-0-disk-1". + class KeyRangeDataDiskAssignment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes full or partial data disk assignment information of the computation + # ranges. + # @!attribute [rw] computation_id + # @return [::String] + # The ID of the computation. + # @!attribute [rw] range_assignments + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeDataDiskAssignment>] + # Data disk assignments for ranges from this computation. + class StreamingComputationRanges + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Streaming appliance snapshot configuration. + # @!attribute [rw] snapshot_id + # @return [::String] + # If set, indicates the snapshot id for the snapshot being performed. + # @!attribute [rw] import_state_endpoint + # @return [::String] + # Indicates which endpoint is used to import appliance state. + class StreamingApplianceSnapshotConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb new file mode 100644 index 000000000000..0ae854d8c16d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb @@ -0,0 +1,856 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module Dataflow + module V1beta3 + # Response to the request to launch a job from Flex Template. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The job that was launched, if the request was not a dry run and + # the job was successfully launched. + class LaunchFlexTemplateResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Container Spec. + # @!attribute [rw] image + # @return [::String] + # Name of the docker container image. E.g., gcr.io/project/some-image + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] + # Metadata describing a template including description and validation rules. + # @!attribute [rw] sdk_info + # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] + # Required. SDK info of the Flex Template. + # @!attribute [rw] default_environment + # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] + # Default runtime environment for the job. + # @!attribute [rw] image_repository_username_secret_id + # @return [::String] + # Secret Manager secret id for username to authenticate to private registry. + # @!attribute [rw] image_repository_password_secret_id + # @return [::String] + # Secret Manager secret id for password to authenticate to private registry. + # @!attribute [rw] image_repository_cert_path + # @return [::String] + # Cloud Storage path to self-signed certificate of private registry. + class ContainerSpec + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Launch FlexTemplate Parameter. + # @!attribute [rw] job_name + # @return [::String] + # Required. The job name to use for the created job. For update job request, + # job name should be same as the existing running job. + # @!attribute [rw] container_spec + # @return [::Google::Cloud::Dataflow::V1beta3::ContainerSpec] + # Spec about the container image to launch. + # + # Note: The following fields are mutually exclusive: `container_spec`, `container_spec_gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] container_spec_gcs_path + # @return [::String] + # Cloud Storage path to a file with json serialized ContainerSpec as + # content. + # + # Note: The following fields are mutually exclusive: `container_spec_gcs_path`, `container_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] parameters + # @return [::Google::Protobuf::Map{::String => ::String}] + # The parameters for FlexTemplate. + # Ex. \\{"num_workers":"5"} + # @!attribute [rw] launch_options + # @return [::Google::Protobuf::Map{::String => ::String}] + # Launch options for this flex template job. This is a common set of options + # across languages and templates. This should not be used to pass job + # parameters. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] + # The runtime environment for the FlexTemplate job + # @!attribute [rw] update + # @return [::Boolean] + # Set this to true if you are sending a request to update a running + # streaming job. When set, the job name should be the same as the + # running job. + # @!attribute [rw] transform_name_mappings + # @return [::Google::Protobuf::Map{::String => ::String}] + # Use this to pass transform_name_mappings for streaming update jobs. + # Ex:\\{"oldTransformName":"newTransformName",...}' + class LaunchFlexTemplateParameter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ParametersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LaunchOptionsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TransformNameMappingsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The environment values to be set at runtime for flex template. + # @!attribute [rw] num_workers + # @return [::Integer] + # The initial number of Google Compute Engine instances for the job. + # @!attribute [rw] max_workers + # @return [::Integer] + # The maximum number of Google Compute Engine instances to be made + # available to your pipeline during execution, from 1 to 1000. + # @!attribute [rw] zone + # @return [::String] + # The Compute Engine [availability + # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) + # for launching worker instances to run your pipeline. + # In the future, worker_zone will take precedence. + # @!attribute [rw] service_account_email + # @return [::String] + # The email address of the service account to run the job as. + # @!attribute [rw] temp_location + # @return [::String] + # The Cloud Storage path to use for temporary files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] machine_type + # @return [::String] + # The machine type to use for the job. Defaults to the value from the + # template if not specified. + # @!attribute [rw] additional_experiments + # @return [::Array<::String>] + # Additional experiment flags for the job. + # @!attribute [rw] network + # @return [::String] + # Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # @!attribute [rw] subnetwork + # @return [::String] + # Subnetwork to which VMs will be assigned, if desired. You can specify a + # subnetwork using either a complete URL or an abbreviated path. Expected to + # be of the form + # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" + # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in + # a Shared VPC network, you must use the complete URL. + # @!attribute [rw] additional_user_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Additional user labels to be specified for the job. + # Keys and values must follow the restrictions specified in the [labeling + # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) + # page. + # An object containing a list of "key": value pairs. + # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. + # @!attribute [rw] kms_key_name + # @return [::String] + # Name for the Cloud KMS key for the job. + # Key format is: + # projects//locations//keyRings//cryptoKeys/ + # @!attribute [rw] ip_configuration + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] + # Configuration for VM IPs. + # @!attribute [rw] worker_region + # @return [::String] + # The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # @!attribute [rw] worker_zone + # @return [::String] + # The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. + # @!attribute [rw] enable_streaming_engine + # @return [::Boolean] + # Whether to enable Streaming Engine for the job. + # @!attribute [rw] flexrs_goal + # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] + # Set FlexRS goal for the job. + # https://cloud.google.com/dataflow/docs/guides/flexrs + # @!attribute [rw] staging_location + # @return [::String] + # The Cloud Storage path for staging local files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] sdk_container_image + # @return [::String] + # Docker registry location of container image to use for the 'worker harness. + # Default is the container for the version of the SDK. Note this field is + # only valid for portable pipelines. + # @!attribute [rw] disk_size_gb + # @return [::Integer] + # Worker disk size, in gigabytes. + # @!attribute [rw] autoscaling_algorithm + # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] + # The algorithm to use for autoscaling + # @!attribute [rw] dump_heap_on_oom + # @return [::Boolean] + # If true, when processing time is spent almost entirely + # on garbage collection (GC), saves a heap dump before ending the thread + # or process. If false, ends the thread or process without saving a heap + # dump. Does not save a heap dump when the Java Virtual Machine (JVM) has an + # out of memory error during processing. The location of the heap file is + # either echoed back to the user, or the user is given the opportunity to + # download the heap file. + # @!attribute [rw] save_heap_dumps_to_gcs_path + # @return [::String] + # Cloud Storage bucket (directory) to upload heap dumps to. + # Enabling this field implies that `dump_heap_on_oom` is set to true. + # @!attribute [rw] launcher_machine_type + # @return [::String] + # The machine type to use for launching the job. The default is + # n1-standard-1. + # @!attribute [rw] enable_launcher_vm_serial_port_logging + # @return [::Boolean] + # If true serial port logging will be enabled for the launcher VM. + # @!attribute [rw] streaming_mode + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] + # Optional. Specifies the Streaming Engine message processing guarantees. + # Reduces cost and latency but might result in duplicate messages committed + # to storage. Designed to run simple mapping streaming ETL jobs at the lowest + # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] additional_pipeline_options + # @return [::Array<::String>] + # Optional. Additional pipeline option flags for the job. + class FlexTemplateRuntimeEnvironment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalUserLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A request to launch a Cloud Dataflow job from a FlexTemplate. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] launch_parameter + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter] + # Required. Parameter to launch a job form Flex Template. + # @!attribute [rw] location + # @return [::String] + # Required. The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. E.g., us-central1, us-west1. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + class LaunchFlexTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The environment values to set at runtime. + # @!attribute [rw] num_workers + # @return [::Integer] + # Optional. The initial number of Google Compute Engine instances for the + # job. The default value is 11. + # @!attribute [rw] max_workers + # @return [::Integer] + # Optional. The maximum number of Google Compute Engine instances to be made + # available to your pipeline during execution, from 1 to 1000. The default + # value is 1. + # @!attribute [rw] zone + # @return [::String] + # Optional. The Compute Engine [availability + # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) + # for launching worker instances to run your pipeline. + # In the future, worker_zone will take precedence. + # @!attribute [rw] service_account_email + # @return [::String] + # Optional. The email address of the service account to run the job as. + # @!attribute [rw] temp_location + # @return [::String] + # Required. The Cloud Storage path to use for temporary files. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] bypass_temp_dir_validation + # @return [::Boolean] + # Optional. Whether to bypass the safety checks for the job's temporary + # directory. Use with caution. + # @!attribute [rw] machine_type + # @return [::String] + # Optional. The machine type to use for the job. Defaults to the value from + # the template if not specified. + # @!attribute [rw] additional_experiments + # @return [::Array<::String>] + # Optional. Additional experiment flags for the job, specified with the + # `--experiments` option. + # @!attribute [rw] network + # @return [::String] + # Optional. Network to which VMs will be assigned. If empty or unspecified, + # the service will use the network "default". + # @!attribute [rw] subnetwork + # @return [::String] + # Optional. Subnetwork to which VMs will be assigned, if desired. You can + # specify a subnetwork using either a complete URL or an abbreviated path. + # Expected to be of the form + # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" + # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in + # a Shared VPC network, you must use the complete URL. + # @!attribute [rw] additional_user_labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Additional user labels to be specified for the job. + # Keys and values should follow the restrictions specified in the [labeling + # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) + # page. + # An object containing a list of "key": value pairs. + # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. + # @!attribute [rw] kms_key_name + # @return [::String] + # Optional. Name for the Cloud KMS key for the job. + # Key format is: + # projects//locations//keyRings//cryptoKeys/ + # @!attribute [rw] ip_configuration + # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] + # Optional. Configuration for VM IPs. + # @!attribute [rw] worker_region + # @return [::String] + # Required. The Compute Engine region + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1". Mutually exclusive + # with worker_zone. If neither worker_region nor worker_zone is specified, + # default to the control plane's region. + # @!attribute [rw] worker_zone + # @return [::String] + # Optional. The Compute Engine zone + # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in + # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive + # with worker_region. If neither worker_region nor worker_zone is specified, + # a zone in the control plane's region is chosen based on available capacity. + # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. + # @!attribute [rw] enable_streaming_engine + # @return [::Boolean] + # Optional. Whether to enable Streaming Engine for the job. + # @!attribute [rw] disk_size_gb + # @return [::Integer] + # Optional. The disk size, in gigabytes, to use on each remote Compute Engine + # worker instance. + # @!attribute [rw] streaming_mode + # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] + # Optional. Specifies the Streaming Engine message processing guarantees. + # Reduces cost and latency but might result in duplicate messages committed + # to storage. Designed to run simple mapping streaming ETL jobs at the lowest + # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use + # case. For more information, see + # [Set the pipeline streaming + # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). + # @!attribute [rw] additional_pipeline_options + # @return [::Array<::String>] + # Optional. Additional pipeline option flags for the job. + class RuntimeEnvironment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AdditionalUserLabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # ParameterMetadataEnumOption specifies the option shown in the enum form. + # @!attribute [rw] value + # @return [::String] + # Required. The value of the enum option. + # @!attribute [rw] label + # @return [::String] + # Optional. The label to display for the enum option. + # @!attribute [rw] description + # @return [::String] + # Optional. The description to display for the enum option. + class ParameterMetadataEnumOption + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Metadata for a specific parameter. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the parameter. + # @!attribute [rw] label + # @return [::String] + # Required. The label to display for the parameter. + # @!attribute [rw] help_text + # @return [::String] + # Required. The help text to display for the parameter. + # @!attribute [rw] is_optional + # @return [::Boolean] + # Optional. Whether the parameter is optional. Defaults to false. + # @!attribute [rw] regexes + # @return [::Array<::String>] + # Optional. Regexes that the parameter must match. + # @!attribute [rw] param_type + # @return [::Google::Cloud::Dataflow::V1beta3::ParameterType] + # Optional. The type of the parameter. + # Used for selecting input picker. + # @!attribute [rw] custom_metadata + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Additional metadata for describing this parameter. + # @!attribute [rw] group_name + # @return [::String] + # Optional. Specifies a group name for this parameter to be rendered under. + # Group header text will be rendered exactly as specified in this field. Only + # considered when parent_name is NOT provided. + # @!attribute [rw] parent_name + # @return [::String] + # Optional. Specifies the name of the parent parameter. Used in conjunction + # with 'parent_trigger_values' to make this parameter conditional (will only + # be rendered conditionally). Should be mappable to a ParameterMetadata.name + # field. + # @!attribute [rw] parent_trigger_values + # @return [::Array<::String>] + # Optional. The value(s) of the 'parent_name' parameter which will trigger + # this parameter to be shown. If left empty, ANY non-empty value in + # parent_name will trigger this parameter to be shown. Only considered when + # this parameter is conditional (when 'parent_name' has been provided). + # @!attribute [rw] enum_options + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadataEnumOption>] + # Optional. The options shown when ENUM ParameterType is specified. + # @!attribute [rw] default_value + # @return [::String] + # Optional. The default values will pre-populate the parameter with the + # given value from the proto. If default_value is left empty, the parameter + # will be populated with a default of the relevant type, e.g. false for a + # boolean. + # @!attribute [rw] hidden_ui + # @return [::Boolean] + # Optional. Whether the parameter should be hidden in the UI. + class ParameterMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class CustomMetadataEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Metadata describing a template. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the template. + # @!attribute [rw] description + # @return [::String] + # Optional. A description of the template. + # @!attribute [rw] parameters + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] + # The parameters for the template. + # @!attribute [rw] streaming + # @return [::Boolean] + # Optional. Indicates if the template is streaming or not. + # @!attribute [rw] supports_at_least_once + # @return [::Boolean] + # Optional. Indicates if the streaming template supports at least once mode. + # @!attribute [rw] supports_exactly_once + # @return [::Boolean] + # Optional. Indicates if the streaming template supports exactly once mode. + # @!attribute [rw] default_streaming_mode + # @return [::String] + # Optional. Indicates the default streaming mode for a streaming template. + # Only valid if both supports_at_least_once and supports_exactly_once are + # true. Possible values: UNSPECIFIED, EXACTLY_ONCE and AT_LEAST_ONCE + class TemplateMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # SDK Information. + # @!attribute [rw] language + # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo::Language] + # Required. The SDK Language. + # @!attribute [rw] version + # @return [::String] + # Optional. The SDK version. + class SDKInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # SDK Language. + module Language + # UNKNOWN Language. + UNKNOWN = 0 + + # Java. + JAVA = 1 + + # Python. + PYTHON = 2 + + # Go. + GO = 3 + + # YAML. + YAML = 4 + end + end + + # RuntimeMetadata describing a runtime environment. + # @!attribute [rw] sdk_info + # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] + # SDK Info for the template. + # @!attribute [rw] parameters + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] + # The parameters for the template. + class RuntimeMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A request to create a Cloud Dataflow job from a template. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] job_name + # @return [::String] + # Required. The job name to use for the created job. + # @!attribute [rw] gcs_path + # @return [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + # @!attribute [rw] parameters + # @return [::Google::Protobuf::Map{::String => ::String}] + # The runtime parameters to pass to the job. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] + # The runtime environment for the job. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + class CreateJobFromTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ParametersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A request to retrieve a Cloud Dataflow job template. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] gcs_path + # @return [::String] + # Required. A Cloud Storage path to the template from which to + # create the job. + # Must be valid Cloud Storage URL, beginning with 'gs://'. + # @!attribute [rw] view + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] + # The view to retrieve. Defaults to METADATA_ONLY. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + class GetTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various views of a template that may be retrieved. + module TemplateView + # Template view that retrieves only the metadata associated with the + # template. + METADATA_ONLY = 0 + end + end + + # The response to a GetTemplate request. + # @!attribute [rw] status + # @return [::Google::Rpc::Status] + # The status of the get template request. Any problems with the + # request will be indicated in the error_details. + # @!attribute [rw] metadata + # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] + # The template metadata describing the template name, available + # parameters, etc. + # @!attribute [rw] template_type + # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse::TemplateType] + # Template Type. + # @!attribute [rw] runtime_metadata + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeMetadata] + # Describes the runtime metadata with SDKInfo and available parameters. + class GetTemplateResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Template Type. + module TemplateType + # Unknown Template Type. + UNKNOWN = 0 + + # Legacy Template. + LEGACY = 1 + + # Flex Template. + FLEX = 2 + end + end + + # Parameters to provide to the template being launched. Note that the + # [metadata in the pipeline code] + # (https://cloud.google.com/dataflow/docs/guides/templates/creating-templates#metadata) + # determines which runtime parameters are valid. + # @!attribute [rw] job_name + # @return [::String] + # Required. The job name to use for the created job. + # + # The name must match the regular expression + # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` + # @!attribute [rw] parameters + # @return [::Google::Protobuf::Map{::String => ::String}] + # The runtime parameters to pass to the job. + # @!attribute [rw] environment + # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] + # The runtime environment for the job. + # @!attribute [rw] update + # @return [::Boolean] + # If set, replace the existing pipeline with the name specified by jobName + # with this pipeline, preserving state. + # @!attribute [rw] transform_name_mapping + # @return [::Google::Protobuf::Map{::String => ::String}] + # Only applicable when updating a pipeline. Map of transform name prefixes of + # the job to be replaced to the corresponding name prefixes of the new job. + class LaunchTemplateParameters + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ParametersEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TransformNameMappingEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A request to launch a template. + # @!attribute [rw] project_id + # @return [::String] + # Required. The ID of the Cloud Platform project that the job belongs to. + # @!attribute [rw] validate_only + # @return [::Boolean] + # If true, the request is validated but not actually executed. + # Defaults to false. + # @!attribute [rw] gcs_path + # @return [::String] + # A Cloud Storage path to the template to use to create + # the job. + # Must be valid Cloud Storage URL, beginning with `gs://`. + # + # Note: The following fields are mutually exclusive: `gcs_path`, `dynamic_template`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dynamic_template + # @return [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams] + # Parameters for launching a dynamic template. + # + # Note: The following fields are mutually exclusive: `dynamic_template`, `gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] launch_parameters + # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters] + # The parameters of the template to launch. Part of the + # body of the POST request. + # @!attribute [rw] location + # @return [::String] + # The [regional endpoint] + # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to + # which to direct the request. + class LaunchTemplateRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response to the request to launch a template. + # @!attribute [rw] job + # @return [::Google::Cloud::Dataflow::V1beta3::Job] + # The job that was launched, if the request was not a dry run and + # the job was successfully launched. + class LaunchTemplateResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Used in the error_details field of a google.rpc.Status message, this + # indicates problems with the template parameter. + # @!attribute [rw] parameter_violations + # @return [::Array<::Google::Cloud::Dataflow::V1beta3::InvalidTemplateParameters::ParameterViolation>] + # Describes all parameter violations in a template request. + class InvalidTemplateParameters + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A specific template-parameter violation. + # @!attribute [rw] parameter + # @return [::String] + # The parameter that failed to validate. + # @!attribute [rw] description + # @return [::String] + # A description of why the parameter failed to validate. + class ParameterViolation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Parameters to pass when launching a dynamic template. + # @!attribute [rw] gcs_path + # @return [::String] + # Path to the dynamic template specification file on Cloud Storage. + # The file must be a JSON serialized `DynamicTemplateFileSpec` object. + # @!attribute [rw] staging_location + # @return [::String] + # Cloud Storage path for staging dependencies. + # Must be a valid Cloud Storage URL, beginning with `gs://`. + class DynamicTemplateLaunchParams + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # ParameterType specifies what kind of input we need for this parameter. + module ParameterType + # Default input type. + DEFAULT = 0 + + # The parameter specifies generic text input. + TEXT = 1 + + # The parameter specifies a Cloud Storage Bucket to read from. + GCS_READ_BUCKET = 2 + + # The parameter specifies a Cloud Storage Bucket to write to. + GCS_WRITE_BUCKET = 3 + + # The parameter specifies a Cloud Storage file path to read from. + GCS_READ_FILE = 4 + + # The parameter specifies a Cloud Storage file path to write to. + GCS_WRITE_FILE = 5 + + # The parameter specifies a Cloud Storage folder path to read from. + GCS_READ_FOLDER = 6 + + # The parameter specifies a Cloud Storage folder to write to. + GCS_WRITE_FOLDER = 7 + + # The parameter specifies a Pub/Sub Topic. + PUBSUB_TOPIC = 8 + + # The parameter specifies a Pub/Sub Subscription. + PUBSUB_SUBSCRIPTION = 9 + + # The parameter specifies a BigQuery table. + BIGQUERY_TABLE = 10 + + # The parameter specifies a JavaScript UDF in Cloud Storage. + JAVASCRIPT_UDF_FILE = 11 + + # The parameter specifies a Service Account email. + SERVICE_ACCOUNT = 12 + + # The parameter specifies a Machine Type. + MACHINE_TYPE = 13 + + # The parameter specifies a KMS Key name. + KMS_KEY_NAME = 14 + + # The parameter specifies a Worker Region. + WORKER_REGION = 15 + + # The parameter specifies a Worker Zone. + WORKER_ZONE = 16 + + # The parameter specifies a boolean input. + BOOLEAN = 17 + + # The parameter specifies an enum input. + ENUM = 18 + + # The parameter specifies a number input. + NUMBER = 19 + + # Deprecated. Please use KAFKA_READ_TOPIC instead. + KAFKA_TOPIC = 20 + + # The parameter specifies the fully-qualified name of an Apache Kafka topic. + # This can be either a Google Managed Kafka topic or a non-managed Kafka + # topic. + KAFKA_READ_TOPIC = 21 + + # The parameter specifies the fully-qualified name of an Apache Kafka topic. + # This can be an existing Google Managed Kafka topic, the name for a new + # Google Managed Kafka topic, or an existing non-managed Kafka topic. + KAFKA_WRITE_TOPIC = 22 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb new file mode 100644 index 000000000000..39e1aca868d2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb @@ -0,0 +1,108 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Struct` represents a structured data value, consisting of fields + # which map to dynamically typed values. In some languages, `Struct` + # might be supported by a native representation. For example, in + # scripting languages like JS a struct is represented as an + # object. The details of that representation are described together + # with the proto support for the language. + # + # The JSON representation for `Struct` is JSON object. + # @!attribute [rw] fields + # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] + # Unordered map of dynamically typed values. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Protobuf::Value] + class FieldsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `Value` represents a dynamically typed value which can be either + # null, a number, a string, a boolean, a recursive struct value, or a + # list of values. A producer of value is expected to set one of these + # variants. Absence of any variant indicates an error. + # + # The JSON representation for `Value` is JSON value. + # @!attribute [rw] null_value + # @return [::Google::Protobuf::NullValue] + # Represents a null value. + # + # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] number_value + # @return [::Float] + # Represents a double value. + # + # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_value + # @return [::String] + # Represents a string value. + # + # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_value + # @return [::Boolean] + # Represents a boolean value. + # + # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_value + # @return [::Google::Protobuf::Struct] + # Represents a structured value. + # + # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] list_value + # @return [::Google::Protobuf::ListValue] + # Represents a repeated `Value`. + # + # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListValue` is a wrapper around a repeated field of values. + # + # The JSON representation for `ListValue` is JSON array. + # @!attribute [rw] values + # @return [::Array<::Google::Protobuf::Value>] + # Repeated field of dynamically typed values. + class ListValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `NullValue` is a singleton enumeration to represent the null value for the + # `Value` type union. + # + # The JSON representation for `NullValue` is JSON `null`. + module NullValue + # Null value. + NULL_VALUE = 0 + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile new file mode 100644 index 000000000000..01167825a42e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-dataflow-v1beta3", path: "../" +else + gem "google-cloud-dataflow-v1beta3" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb new file mode 100644 index 000000000000..c35bc1a9c0d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the launch_flex_template call in the FlexTemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template. +# +def launch_flex_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new + + # Call the launch_flex_template method. + result = client.launch_flex_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + p result +end +# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb new file mode 100644 index 000000000000..350fd7267981 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the aggregated_list_jobs call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs. +# +def aggregated_list_jobs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + + # Call the aggregated_list_jobs method. + result = client.aggregated_list_jobs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + p item + end +end +# [END dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb new file mode 100644 index 000000000000..63db36fb5f30 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the check_active_jobs call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs. +# +def check_active_jobs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new + + # Call the check_active_jobs method. + result = client.check_active_jobs request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. + p result +end +# [END dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb new file mode 100644 index 000000000000..0146cf807873 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_CreateJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the create_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job. +# +def create_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new + + # Call the create_job method. + result = client.create_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_Jobs_CreateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb new file mode 100644 index 000000000000..3ef8f929a9a3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_GetJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job. +# +def get_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new + + # Call the get_job method. + result = client.get_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_Jobs_GetJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb new file mode 100644 index 000000000000..f162cd9f38bb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_ListJobs_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the list_jobs call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs. +# +def list_jobs + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new + + # Call the list_jobs method. + result = client.list_jobs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. + p item + end +end +# [END dataflow_v1beta3_generated_Jobs_ListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb new file mode 100644 index 000000000000..3977d863c903 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the snapshot_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job. +# +def snapshot_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new + + # Call the snapshot_job method. + result = client.snapshot_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + p result +end +# [END dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb new file mode 100644 index 000000000000..48a87bd69ab6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Jobs_UpdateJob_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the update_job call in the Jobs service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job. +# +def update_job + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new + + # Call the update_job method. + result = client.update_job request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_Jobs_UpdateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb new file mode 100644 index 000000000000..08252fdfefb9 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Messages_ListJobMessages_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the list_job_messages call in the Messages service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages. +# +def list_job_messages + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new + + # Call the list_job_messages method. + result = client.list_job_messages request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. + p item + end +end +# [END dataflow_v1beta3_generated_Messages_ListJobMessages_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb new file mode 100644 index 000000000000..3a9fe8c49ae6 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_job_execution_details call in the Metrics service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details. +# +def get_job_execution_details + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new + + # Call the get_job_execution_details method. + result = client.get_job_execution_details request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. + p item + end +end +# [END dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb new file mode 100644 index 000000000000..f1e36d3c56cf --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_job_metrics call in the Metrics service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics. +# +def get_job_metrics + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new + + # Call the get_job_metrics method. + result = client.get_job_metrics request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. + p result +end +# [END dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb new file mode 100644 index 000000000000..f2e1803d1483 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_stage_execution_details call in the Metrics service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details. +# +def get_stage_execution_details + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new + + # Call the get_stage_execution_details method. + result = client.get_stage_execution_details request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. + p item + end +end +# [END dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb new file mode 100644 index 000000000000..a16cafd731d2 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the delete_snapshot call in the Snapshots service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot. +# +def delete_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new + + # Call the delete_snapshot method. + result = client.delete_snapshot request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. + p result +end +# [END dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb new file mode 100644 index 000000000000..e6f4de5a2ddb --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_snapshot call in the Snapshots service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot. +# +def get_snapshot + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new + + # Call the get_snapshot method. + result = client.get_snapshot request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. + p result +end +# [END dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb new file mode 100644 index 000000000000..a724bf4f121b --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the list_snapshots call in the Snapshots service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots. +# +def list_snapshots + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new + + # Call the list_snapshots method. + result = client.list_snapshots request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. + p result +end +# [END dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json new file mode 100644 index 000000000000..9760df90c641 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json @@ -0,0 +1,735 @@ +{ + "client_library": { + "name": "google-cloud-dataflow-v1beta3", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.dataflow.v1beta3", + "version": "v1beta3" + } + ] + }, + "snippets": [ + { + "region_tag": "dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync", + "title": "Snippet for the get_snapshot call in the Snapshots service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot.", + "file": "snapshots/get_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_snapshot", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", + "client": { + "short_name": "Snapshots::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" + }, + "method": { + "short_name": "GetSnapshot", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", + "service": { + "short_name": "Snapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync", + "title": "Snippet for the delete_snapshot call in the Snapshots service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot.", + "file": "snapshots/delete_snapshot.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_snapshot", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse", + "client": { + "short_name": "Snapshots::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" + }, + "method": { + "short_name": "DeleteSnapshot", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", + "service": { + "short_name": "Snapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync", + "title": "Snippet for the list_snapshots call in the Snapshots service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots.", + "file": "snapshots/list_snapshots.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_snapshots", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse", + "client": { + "short_name": "Snapshots::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" + }, + "method": { + "short_name": "ListSnapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", + "service": { + "short_name": "Snapshots", + "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_CreateJob_sync", + "title": "Snippet for the create_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job.", + "file": "jobs/create_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "CreateJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_GetJob_sync", + "title": "Snippet for the get_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job.", + "file": "jobs/get_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "GetJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_UpdateJob_sync", + "title": "Snippet for the update_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job.", + "file": "jobs/update_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "UpdateJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_ListJobs_sync", + "title": "Snippet for the list_jobs call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs.", + "file": "jobs/list_jobs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_jobs", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "ListJobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync", + "title": "Snippet for the aggregated_list_jobs call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs.", + "file": "jobs/aggregated_list_jobs.rb", + "language": "RUBY", + "client_method": { + "short_name": "aggregated_list_jobs", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "AggregatedListJobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync", + "title": "Snippet for the check_active_jobs call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs.", + "file": "jobs/check_active_jobs.rb", + "language": "RUBY", + "client_method": { + "short_name": "check_active_jobs", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "CheckActiveJobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Jobs_SnapshotJob_sync", + "title": "Snippet for the snapshot_job call in the Jobs service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job.", + "file": "jobs/snapshot_job.rb", + "language": "RUBY", + "client_method": { + "short_name": "snapshot_job", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", + "client": { + "short_name": "Jobs::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" + }, + "method": { + "short_name": "SnapshotJob", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", + "service": { + "short_name": "Jobs", + "full_name": "google.dataflow.v1beta3.JobsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Messages_ListJobMessages_sync", + "title": "Snippet for the list_job_messages call in the Messages service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages.", + "file": "messages/list_job_messages.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_job_messages", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse", + "client": { + "short_name": "Messages::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client" + }, + "method": { + "short_name": "ListJobMessages", + "full_name": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", + "service": { + "short_name": "Messages", + "full_name": "google.dataflow.v1beta3.MessagesV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync", + "title": "Snippet for the get_job_metrics call in the Metrics service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics.", + "file": "metrics/get_job_metrics.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_job_metrics", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::JobMetrics", + "client": { + "short_name": "Metrics::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" + }, + "method": { + "short_name": "GetJobMetrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", + "service": { + "short_name": "Metrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync", + "title": "Snippet for the get_job_execution_details call in the Metrics service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details.", + "file": "metrics/get_job_execution_details.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_job_execution_details", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails", + "client": { + "short_name": "Metrics::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" + }, + "method": { + "short_name": "GetJobExecutionDetails", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", + "service": { + "short_name": "Metrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync", + "title": "Snippet for the get_stage_execution_details call in the Metrics service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details.", + "file": "metrics/get_stage_execution_details.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_stage_execution_details", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails", + "client": { + "short_name": "Metrics::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" + }, + "method": { + "short_name": "GetStageExecutionDetails", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", + "service": { + "short_name": "Metrics", + "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", + "title": "Snippet for the create_job_from_template call in the TemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template.", + "file": "templates_service/create_job_from_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_job_from_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", + "client": { + "short_name": "TemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" + }, + "method": { + "short_name": "CreateJobFromTemplate", + "full_name": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", + "service": { + "short_name": "TemplatesService", + "full_name": "google.dataflow.v1beta3.TemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync", + "title": "Snippet for the launch_template call in the TemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template.", + "file": "templates_service/launch_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "launch_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse", + "client": { + "short_name": "TemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" + }, + "method": { + "short_name": "LaunchTemplate", + "full_name": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", + "service": { + "short_name": "TemplatesService", + "full_name": "google.dataflow.v1beta3.TemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", + "title": "Snippet for the get_template call in the TemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template.", + "file": "templates_service/get_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse", + "client": { + "short_name": "TemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" + }, + "method": { + "short_name": "GetTemplate", + "full_name": "google.dataflow.v1beta3.TemplatesService.GetTemplate", + "service": { + "short_name": "TemplatesService", + "full_name": "google.dataflow.v1beta3.TemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync", + "title": "Snippet for the launch_flex_template call in the FlexTemplatesService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template.", + "file": "flex_templates_service/launch_flex_template.rb", + "language": "RUBY", + "client_method": { + "short_name": "launch_flex_template", + "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse", + "client": { + "short_name": "FlexTemplatesService::Client", + "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client" + }, + "method": { + "short_name": "LaunchFlexTemplate", + "full_name": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", + "service": { + "short_name": "FlexTemplatesService", + "full_name": "google.dataflow.v1beta3.FlexTemplatesService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb new file mode 100644 index 000000000000..26f922f93b7a --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the create_job_from_template call in the TemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template. +# +def create_job_from_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new + + # Call the create_job_from_template method. + result = client.create_job_from_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. + p result +end +# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb new file mode 100644 index 000000000000..c7b6af16bd9f --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the get_template call in the TemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template. +# +def get_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new + + # Call the get_template method. + result = client.get_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. + p result +end +# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb new file mode 100644 index 000000000000..4ae948746683 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] +require "google/cloud/dataflow/v1beta3" + +## +# Snippet for the launch_template call in the TemplatesService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template. +# +def launch_template + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new + + # Call the launch_template method. + result = client.launch_template request + + # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. + p result +end +# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb new file mode 100644 index 000000000000..600598d57b37 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb @@ -0,0 +1,156 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_launch_flex_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + launch_parameter = {} + location = "hello world" + validate_only = true + + launch_flex_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.stub :transcode_launch_flex_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, launch_flex_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, launch_flex_template_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb new file mode 100644 index 000000000000..eea77dd3921e --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb @@ -0,0 +1,168 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/flex_templates_service" + +class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_launch_flex_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + launch_parameter = {} + location = "hello world" + validate_only = true + + launch_flex_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :launch_flex_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter), request["launch_parameter"] + assert_equal "hello world", request["location"] + assert_equal true, request["validate_only"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, launch_flex_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, launch_flex_template_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb new file mode 100644 index 000000000000..f3581d57744c --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/jobs_pb" +require "google/cloud/dataflow/v1beta3/jobs/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job = {} + view = :JOB_VIEW_UNKNOWN + replace_job_id = "hello world" + location = "hello world" + + create_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_create_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_job_client_stub.call_count + end + end + end + + def test_get_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + view = :JOB_VIEW_UNKNOWN + location = "hello world" + + get_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_get_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_job_client_stub.call_count + end + end + end + + def test_update_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + job = {} + location = "hello world" + update_mask = {} + + update_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_update_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_job_client_stub.call_count + end + end + end + + def test_list_jobs + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_list_jobs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_jobs_client_stub.call_count + end + end + end + + def test_aggregated_list_jobs + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + aggregated_list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_aggregated_list_jobs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, aggregated_list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, aggregated_list_jobs_client_stub.call_count + end + end + end + + def test_snapshot_job + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + ttl = {} + location = "hello world" + snapshot_sources = true + description = "hello world" + + snapshot_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_snapshot_job_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, snapshot_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, snapshot_job_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb new file mode 100644 index 000000000000..e34decfc428d --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb @@ -0,0 +1,579 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/jobs_pb" +require "google/cloud/dataflow/v1beta3/jobs" + +class ::Google::Cloud::Dataflow::V1beta3::Jobs::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job = {} + view = :JOB_VIEW_UNKNOWN + replace_job_id = "hello world" + location = "hello world" + + create_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal "hello world", request["replace_job_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_job_client_stub.call_rpc_count + end + end + + def test_get_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + view = :JOB_VIEW_UNKNOWN + location = "hello world" + + get_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_job_client_stub.call_rpc_count + end + end + + def test_update_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + job = {} + location = "hello world" + update_mask = {} + + update_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] + assert_equal "hello world", request["location"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert request.has_update_mask? + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_job_client_stub.call_rpc_count + end + end + + def test_list_jobs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_jobs, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request + assert_equal :UNKNOWN, request["filter"] + assert_equal "hello world", request["project_id"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["location"] + assert_equal "hello world", request["name"] + assert request.has_name? + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_jobs_client_stub.call_rpc_count + end + end + + def test_aggregated_list_jobs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + filter = :UNKNOWN + project_id = "hello world" + view = :JOB_VIEW_UNKNOWN + page_size = 42 + page_token = "hello world" + location = "hello world" + name = "hello world" + + aggregated_list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :aggregated_list_jobs, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request + assert_equal :UNKNOWN, request["filter"] + assert_equal "hello world", request["project_id"] + assert_equal :JOB_VIEW_UNKNOWN, request["view"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["location"] + assert_equal "hello world", request["name"] + assert request.has_name? + refute_nil options + end + + Gapic::ServiceStub.stub :new, aggregated_list_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, aggregated_list_jobs_client_stub.call_rpc_count + end + end + + def test_check_active_jobs + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + + check_active_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :check_active_jobs, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, request + assert_equal "hello world", request["project_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, check_active_jobs_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.check_active_jobs({ project_id: project_id }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.check_active_jobs project_id: project_id do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.check_active_jobs ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.check_active_jobs({ project_id: project_id }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.check_active_jobs(::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, check_active_jobs_client_stub.call_rpc_count + end + end + + def test_snapshot_job + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + ttl = {} + location = "hello world" + snapshot_sources = true + description = "hello world" + + snapshot_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :snapshot_job, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] + assert_equal "hello world", request["location"] + assert_equal true, request["snapshot_sources"] + assert_equal "hello world", request["description"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, snapshot_job_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, snapshot_job_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb new file mode 100644 index 000000000000..9d98fbddafb4 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb @@ -0,0 +1,160 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/messages_pb" +require "google/cloud/dataflow/v1beta3/messages/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_job_messages + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + location = "hello world" + + list_job_messages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.stub :transcode_list_job_messages_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_job_messages_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_job_messages_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb new file mode 100644 index 000000000000..fc61069e09ce --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb @@ -0,0 +1,181 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/messages_pb" +require "google/cloud/dataflow/v1beta3/messages" + +class ::Google::Cloud::Dataflow::V1beta3::Messages::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_job_messages + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + location = "hello world" + + list_job_messages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_job_messages, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal :JOB_MESSAGE_IMPORTANCE_UNKNOWN, request["minimum_importance"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_job_messages_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_job_messages_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb new file mode 100644 index 000000000000..16beba2b9d68 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb @@ -0,0 +1,275 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/metrics_pb" +require "google/cloud/dataflow/v1beta3/metrics/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_job_metrics + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + start_time = {} + location = "hello world" + + get_job_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_metrics_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_job_metrics_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_job_metrics_client_stub.call_count + end + end + end + + def test_get_job_execution_details + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + page_size = 42 + page_token = "hello world" + + get_job_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_execution_details_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_job_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_job_execution_details_client_stub.call_count + end + end + end + + def test_get_stage_execution_details + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + stage_id = "hello world" + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + + get_stage_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_stage_execution_details_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_stage_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_stage_execution_details_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb new file mode 100644 index 000000000000..f50377f49643 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb @@ -0,0 +1,316 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/metrics_pb" +require "google/cloud/dataflow/v1beta3/metrics" + +class ::Google::Cloud::Dataflow::V1beta3::Metrics::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_job_metrics + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + start_time = {} + location = "hello world" + + get_job_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_job_metrics, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_job_metrics_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_job_metrics_client_stub.call_rpc_count + end + end + + def test_get_job_execution_details + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + page_size = 42 + page_token = "hello world" + + get_job_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_job_execution_details, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal "hello world", request["location"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_job_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_job_execution_details_client_stub.call_rpc_count + end + end + + def test_get_stage_execution_details + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + stage_id = "hello world" + page_size = 42 + page_token = "hello world" + start_time = {} + end_time = {} + + get_stage_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_stage_execution_details, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal "hello world", request["location"] + assert_equal "hello world", request["stage_id"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_stage_execution_details_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_stage_execution_details_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb new file mode 100644 index 000000000000..2cb7d22a9fc3 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb @@ -0,0 +1,267 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/snapshots_pb" +require "google/cloud/dataflow/v1beta3/snapshots/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_snapshot + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + get_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_get_snapshot_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_count + end + end + end + + def test_delete_snapshot + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + delete_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_delete_snapshot_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_count + end + end + end + + def test_list_snapshots + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + + list_snapshots_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_list_snapshots_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_snapshots project_id: project_id, job_id: job_id, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb new file mode 100644 index 000000000000..e7cd1d6620f5 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb @@ -0,0 +1,290 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/snapshots_pb" +require "google/cloud/dataflow/v1beta3/snapshots" + +class ::Google::Cloud::Dataflow::V1beta3::Snapshots::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_snapshot, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["snapshot_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_snapshot_client_stub.call_rpc_count + end + end + + def test_delete_snapshot + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + snapshot_id = "hello world" + location = "hello world" + + delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_snapshot, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["snapshot_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_snapshot_client_stub.call_rpc_count + end + end + + def test_list_snapshots + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_id = "hello world" + location = "hello world" + + list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_snapshots, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_id"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_snapshots_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_snapshots project_id: project_id, job_id: job_id, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_snapshots_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb new file mode 100644 index 000000000000..5cada9799f44 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb @@ -0,0 +1,273 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/templates_service/rest" + + +class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job_from_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_name = "hello world" + gcs_path = "hello world" + parameters = {} + environment = {} + location = "hello world" + + create_job_from_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_create_job_from_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_job_from_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_job_from_template_client_stub.call_count + end + end + end + + def test_launch_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + validate_only = true + gcs_path = "hello world" + launch_parameters = {} + location = "hello world" + + launch_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_launch_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, launch_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, launch_template_client_stub.call_count + end + end + end + + def test_get_template + # Create test objects. + client_result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + gcs_path = "hello world" + view = :METADATA_ONLY + location = "hello world" + + get_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_get_template_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_template_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb new file mode 100644 index 000000000000..84507da8e8ce --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb @@ -0,0 +1,305 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/dataflow/v1beta3/templates_pb" +require "google/cloud/dataflow/v1beta3/templates_service" + +class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_create_job_from_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + job_name = "hello world" + gcs_path = "hello world" + parameters = {} + environment = {} + location = "hello world" + + create_job_from_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_job_from_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["job_name"] + assert_equal "hello world", request["gcs_path"] + assert_equal :gcs_path, request.template + assert_equal({}, request["parameters"].to_h) + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment), request["environment"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_job_from_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_job_from_template_client_stub.call_rpc_count + end + end + + def test_launch_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + validate_only = true + gcs_path = "hello world" + launch_parameters = {} + location = "hello world" + + launch_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :launch_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal true, request["validate_only"] + assert_equal "hello world", request["gcs_path"] + assert_equal :gcs_path, request.template + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters), request["launch_parameters"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, launch_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, launch_template_client_stub.call_rpc_count + end + end + + def test_get_template + # Create GRPC objects. + grpc_response = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + project_id = "hello world" + gcs_path = "hello world" + view = :METADATA_ONLY + location = "hello world" + + get_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_template, name + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, request + assert_equal "hello world", request["project_id"] + assert_equal "hello world", request["gcs_path"] + assert_equal :gcs_path, request.template + assert_equal :METADATA_ONLY, request["view"] + assert_equal "hello world", request["location"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_template_client_stub do + # Create client + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_template_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From d63190f9cd088d15f92e8e8d1a2503cfe269aaf0 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 31 Mar 2026 00:05:46 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/dataflow/v1beta3/environment_pb.rb | 2 +- .../google/dataflow/v1beta3/environment.rb | 6 + .../google-cloud-dataflow-v1beta3/.gitignore | 22 - .../.repo-metadata.json | 19 - .../.rubocop.yml | 33 - .../google-cloud-dataflow-v1beta3/.toys.rb | 28 - .../google-cloud-dataflow-v1beta3/.yardopts | 12 - .../AUTHENTICATION.md | 122 -- .../CHANGELOG.md | 2 - .../google-cloud-dataflow-v1beta3/Gemfile | 14 - .../google-cloud-dataflow-v1beta3/LICENSE.md | 201 --- .../google-cloud-dataflow-v1beta3/README.md | 154 --- .../google-cloud-dataflow-v1beta3/Rakefile | 169 --- .../gapic_metadata.json | 153 --- .../google-cloud-dataflow-v1beta3.gemspec | 28 - .../lib/google-cloud-dataflow-v1beta3.rb | 21 - .../lib/google/cloud/dataflow/v1beta3.rb | 50 - .../v1beta3/flex_templates_service.rb | 54 - .../v1beta3/flex_templates_service/client.rb | 484 ------- .../flex_templates_service/credentials.rb | 52 - .../v1beta3/flex_templates_service/rest.rb | 51 - .../flex_templates_service/rest/client.rb | 431 ------ .../rest/service_stub.rb | 144 -- .../lib/google/cloud/dataflow/v1beta3/jobs.rb | 55 - .../cloud/dataflow/v1beta3/jobs/client.rb | 1170 ----------------- .../dataflow/v1beta3/jobs/credentials.rb | 52 - .../cloud/dataflow/v1beta3/jobs/rest.rb | 52 - .../dataflow/v1beta3/jobs/rest/client.rb | 977 -------------- .../v1beta3/jobs/rest/service_stub.rb | 499 ------- .../google/cloud/dataflow/v1beta3/messages.rb | 54 - .../cloud/dataflow/v1beta3/messages/client.rb | 514 -------- .../dataflow/v1beta3/messages/credentials.rb | 52 - .../cloud/dataflow/v1beta3/messages/rest.rb | 51 - .../dataflow/v1beta3/messages/rest/client.rb | 458 ------- .../v1beta3/messages/rest/service_stub.rb | 152 --- .../google/cloud/dataflow/v1beta3/metrics.rb | 54 - .../cloud/dataflow/v1beta3/metrics/client.rb | 745 ----------- .../dataflow/v1beta3/metrics/credentials.rb | 52 - .../cloud/dataflow/v1beta3/metrics/rest.rb | 51 - .../dataflow/v1beta3/metrics/rest/client.rb | 660 ---------- .../v1beta3/metrics/rest/service_stub.rb | 279 ---- .../lib/google/cloud/dataflow/v1beta3/rest.rb | 42 - .../cloud/dataflow/v1beta3/snapshots.rb | 54 - .../dataflow/v1beta3/snapshots/client.rb | 688 ---------- .../dataflow/v1beta3/snapshots/credentials.rb | 52 - .../cloud/dataflow/v1beta3/snapshots/rest.rb | 51 - .../dataflow/v1beta3/snapshots/rest/client.rb | 606 --------- .../v1beta3/snapshots/rest/service_stub.rb | 300 ----- .../dataflow/v1beta3/templates_service.rb | 54 - .../v1beta3/templates_service/client.rb | 730 ---------- .../v1beta3/templates_service/credentials.rb | 52 - .../v1beta3/templates_service/rest.rb | 51 - .../v1beta3/templates_service/rest/client.rb | 657 --------- .../templates_service/rest/service_stub.rb | 292 ---- .../google/cloud/dataflow/v1beta3/version.rb | 28 - .../google/dataflow/v1beta3/environment_pb.rb | 43 - .../lib/google/dataflow/v1beta3/jobs_pb.rb | 69 - .../dataflow/v1beta3/jobs_services_pb.rb | 93 -- .../google/dataflow/v1beta3/messages_pb.rb | 33 - .../dataflow/v1beta3/messages_services_pb.rb | 51 - .../lib/google/dataflow/v1beta3/metrics_pb.rb | 47 - .../dataflow/v1beta3/metrics_services_pb.rb | 60 - .../google/dataflow/v1beta3/snapshots_pb.rb | 33 - .../dataflow/v1beta3/snapshots_services_pb.rb | 49 - .../google/dataflow/v1beta3/streaming_pb.rb | 34 - .../google/dataflow/v1beta3/templates_pb.rb | 51 - .../dataflow/v1beta3/templates_services_pb.rb | 84 -- .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 589 --------- .../proto_docs/google/api/field_behavior.rb | 85 -- .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 ---- .../google/dataflow/v1beta3/environment.rb | 682 ---------- .../google/dataflow/v1beta3/jobs.rb | 1100 ---------------- .../google/dataflow/v1beta3/messages.rb | 225 ---- .../google/dataflow/v1beta3/metrics.rb | 517 -------- .../google/dataflow/v1beta3/snapshots.rb | 160 --- .../google/dataflow/v1beta3/streaming.rb | 292 ---- .../google/dataflow/v1beta3/templates.rb | 856 ------------ .../proto_docs/google/protobuf/any.rb | 145 -- .../proto_docs/google/protobuf/duration.rb | 98 -- .../proto_docs/google/protobuf/field_mask.rb | 229 ---- .../proto_docs/google/protobuf/struct.rb | 108 -- .../proto_docs/google/protobuf/timestamp.rb | 127 -- .../proto_docs/google/rpc/status.rb | 48 - .../snippets/Gemfile | 32 - .../launch_flex_template.rb | 47 - .../snippets/jobs/aggregated_list_jobs.rb | 51 - .../snippets/jobs/check_active_jobs.rb | 47 - .../snippets/jobs/create_job.rb | 47 - .../snippets/jobs/get_job.rb | 47 - .../snippets/jobs/list_jobs.rb | 51 - .../snippets/jobs/snapshot_job.rb | 47 - .../snippets/jobs/update_job.rb | 47 - .../snippets/messages/list_job_messages.rb | 51 - .../metrics/get_job_execution_details.rb | 51 - .../snippets/metrics/get_job_metrics.rb | 47 - .../metrics/get_stage_execution_details.rb | 51 - .../snippets/snapshots/delete_snapshot.rb | 47 - .../snippets/snapshots/get_snapshot.rb | 47 - .../snippets/snapshots/list_snapshots.rb | 47 - ...ppet_metadata_google.dataflow.v1beta3.json | 735 ----------- .../create_job_from_template.rb | 47 - .../templates_service/get_template.rb | 47 - .../templates_service/launch_template.rb | 47 - .../flex_templates_service_rest_test.rb | 156 --- .../v1beta3/flex_templates_service_test.rb | 168 --- .../cloud/dataflow/v1beta3/jobs_rest_test.rb | 451 ------- .../cloud/dataflow/v1beta3/jobs_test.rb | 579 -------- .../dataflow/v1beta3/messages_rest_test.rb | 160 --- .../cloud/dataflow/v1beta3/messages_test.rb | 181 --- .../dataflow/v1beta3/metrics_rest_test.rb | 275 ---- .../cloud/dataflow/v1beta3/metrics_test.rb | 316 ----- .../dataflow/v1beta3/snapshots_rest_test.rb | 267 ---- .../cloud/dataflow/v1beta3/snapshots_test.rb | 290 ---- .../v1beta3/templates_service_rest_test.rb | 273 ---- .../v1beta3/templates_service_test.rb | 305 ----- .../test/helper.rb | 26 - 118 files changed, 7 insertions(+), 23119 deletions(-) delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/README.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb delete mode 100644 owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb diff --git a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb index 4f1e56a29738..45c93d17eaa1 100644 --- a/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb +++ b/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb @@ -9,7 +9,7 @@ require 'google/protobuf/struct_pb' -descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\")\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" +descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\">\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x13\n\x06sha256\x18\x03 \x01(\tB\x03\xe0\x41\x01\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb index c8ead31ca468..2ef8f06918d9 100644 --- a/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb +++ b/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb @@ -158,6 +158,12 @@ class Environment # # storage.googleapis.com/\\{bucket} # bucket.storage.googleapis.com/ + # @!attribute [rw] sha256 + # @return [::String] + # Optional. The hex-encoded SHA256 checksum of the package. + # If the checksum is provided, the worker will verify the checksum of the + # package before using it. If the checksum does not match, the worker will + # fail to start. class Package include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore b/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json deleted file mode 100644 index 01533f5ff2d7..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.repo-metadata.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "api_id": "dataflow.googleapis.com", - "api_shortname": "dataflow", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest", - "distribution_name": "google-cloud-dataflow-v1beta3", - "is_cloud": true, - "language": "ruby", - "name": "dataflow", - "name_pretty": "Dataflow V1beta3 API", - "product_documentation": "https://cloud.google.com/dataflow", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details.", - "ruby-cloud-env-prefix": "DATAFLOW", - "ruby-cloud-product-url": "https://cloud.google.com/dataflow", - "ruby-cloud-service-override": "JobsV1Beta3=Jobs;MessagesV1Beta3=Messages;MetricsV1Beta3=Metrics;SnapshotsV1Beta3=Snapshots", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml b/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml deleted file mode 100644 index 4c6e4d8dc75b..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-dataflow-v1beta3.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-dataflow-v1beta3.rb" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts b/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts deleted file mode 100644 index 13c1196b1b73..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Dataflow V1beta3 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md deleted file mode 100644 index 0f4275c66d02..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-dataflow-v1beta3 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-dataflow-v1beta3 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/dataflow/v1beta3" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/dataflow/v1beta3" - -::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-dataflow-v1beta3 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/dataflow/v1beta3" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md deleted file mode 100644 index 68ecd2146243..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Dataflow V1beta3 API - -Manages Google Cloud Dataflow projects on Google Cloud Platform. - -Dataflow is a managed service for executing a wide variety of data processing patterns. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Dataflow V1beta3 API. Most users should consider using -the main client gem, -[google-cloud-dataflow](https://rubygems.org/gems/google-cloud-dataflow). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-dataflow-v1beta3 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/dataflow.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/dataflow/v1beta3" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new -request = ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new # (request fields as keyword arguments...) -response = client.get_snapshot request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/dataflow) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/dataflow/v1beta3" -require "logger" - -client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-dataflow`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-dataflow-v1beta3`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-dataflow`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-dataflow-v1beta3`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile b/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile deleted file mode 100644 index a659823f1fc9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-dataflow-v1beta3 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["DATAFLOW_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["DATAFLOW_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["DATAFLOW_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or DATAFLOW_TEST_PROJECT=test123 DATAFLOW_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/dataflow/v1beta3/snapshots/credentials" - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["DATAFLOW_PROJECT"] = project - ENV["DATAFLOW_TEST_PROJECT"] = project - ENV["DATAFLOW_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-dataflow-v1beta3 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-dataflow-v1beta3 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-dataflow-v1beta3 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-dataflow-v1beta3" - header "google-cloud-dataflow-v1beta3 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-dataflow-v1beta3 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-dataflow-v1beta3 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-dataflow-v1beta3 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-dataflow-v1beta3 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json deleted file mode 100644 index f1f58ae8185e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/gapic_metadata.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.dataflow.v1beta3", - "libraryPackage": "::Google::Cloud::Dataflow::V1beta3", - "services": { - "SnapshotsV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client", - "rpcs": { - "GetSnapshot": { - "methods": [ - "get_snapshot" - ] - }, - "DeleteSnapshot": { - "methods": [ - "delete_snapshot" - ] - }, - "ListSnapshots": { - "methods": [ - "list_snapshots" - ] - } - } - } - } - }, - "JobsV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client", - "rpcs": { - "CreateJob": { - "methods": [ - "create_job" - ] - }, - "GetJob": { - "methods": [ - "get_job" - ] - }, - "UpdateJob": { - "methods": [ - "update_job" - ] - }, - "ListJobs": { - "methods": [ - "list_jobs" - ] - }, - "AggregatedListJobs": { - "methods": [ - "aggregated_list_jobs" - ] - }, - "CheckActiveJobs": { - "methods": [ - "check_active_jobs" - ] - }, - "SnapshotJob": { - "methods": [ - "snapshot_job" - ] - } - } - } - } - }, - "MessagesV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Messages::Client", - "rpcs": { - "ListJobMessages": { - "methods": [ - "list_job_messages" - ] - } - } - } - } - }, - "MetricsV1Beta3": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client", - "rpcs": { - "GetJobMetrics": { - "methods": [ - "get_job_metrics" - ] - }, - "GetJobExecutionDetails": { - "methods": [ - "get_job_execution_details" - ] - }, - "GetStageExecutionDetails": { - "methods": [ - "get_stage_execution_details" - ] - } - } - } - } - }, - "TemplatesService": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client", - "rpcs": { - "CreateJobFromTemplate": { - "methods": [ - "create_job_from_template" - ] - }, - "LaunchTemplate": { - "methods": [ - "launch_template" - ] - }, - "GetTemplate": { - "methods": [ - "get_template" - ] - } - } - } - } - }, - "FlexTemplatesService": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client", - "rpcs": { - "LaunchFlexTemplate": { - "methods": [ - "launch_flex_template" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec b/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec deleted file mode 100644 index db5ea1646266..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/google-cloud-dataflow-v1beta3.gemspec +++ /dev/null @@ -1,28 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/dataflow/v1beta3/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-dataflow-v1beta3" - gem.version = Google::Cloud::Dataflow::V1beta3::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "Dataflow is a managed service for executing a wide variety of data processing patterns. Note that google-cloud-dataflow-v1beta3 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-dataflow instead. See the readme for more details." - gem.summary = "Manages Google Cloud Dataflow projects on Google Cloud Platform." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb deleted file mode 100644 index aa5266cf801f..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google-cloud-dataflow-v1beta3.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/dataflow/v1beta3" diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb deleted file mode 100644 index b7d17030dc2c..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3.rb +++ /dev/null @@ -1,50 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataflow/v1beta3/snapshots" -require "google/cloud/dataflow/v1beta3/jobs" -require "google/cloud/dataflow/v1beta3/messages" -require "google/cloud/dataflow/v1beta3/metrics" -require "google/cloud/dataflow/v1beta3/templates_service" -require "google/cloud/dataflow/v1beta3/flex_templates_service" -require "google/cloud/dataflow/v1beta3/version" - -module Google - module Cloud - module Dataflow - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module V1beta3 - end - end - end -end - -helper_path = ::File.join __dir__, "v1beta3", "_helpers.rb" -require "google/cloud/dataflow/v1beta3/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb deleted file mode 100644 index f8e1d85debf6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" -require "google/cloud/dataflow/v1beta3/flex_templates_service/client" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a service for Flex templates. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/flex_templates_service" - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - module FlexTemplatesService - end - end - end - end -end - -helper_path = ::File.join __dir__, "flex_templates_service", "helpers.rb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb deleted file mode 100644 index 61043b858993..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +++ /dev/null @@ -1,484 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - ## - # Client for the FlexTemplatesService service. - # - # Provides a service for Flex templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :flex_templates_service_stub - - ## - # Configure the FlexTemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FlexTemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FlexTemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @flex_templates_service_stub.universe_domain - end - - ## - # Create a new FlexTemplatesService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FlexTemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/templates_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @flex_templates_service_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @flex_templates_service_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @flex_templates_service_stub.logger - end - - # Service calls - - ## - # Launch a job with a FlexTemplate. - # - # @overload launch_flex_template(request, options = nil) - # Pass arguments to `launch_flex_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) - # Pass arguments to `launch_flex_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] - # Required. Parameter to launch a job form Flex Template. - # @param location [::String] - # Required. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. E.g., us-central1, us-west1. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new - # - # # Call the launch_flex_template method. - # result = client.launch_flex_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. - # p result - # - def launch_flex_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.launch_flex_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.launch_flex_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @flex_templates_service_stub.call_rpc :launch_flex_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the FlexTemplatesService API. - # - # This class represents the configuration for FlexTemplatesService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # launch_flex_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the FlexTemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `launch_flex_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_flex_template - - # @private - def initialize parent_rpcs = nil - launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template - @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb deleted file mode 100644 index a524500610ca..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - # Credentials for the FlexTemplatesService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb deleted file mode 100644 index 3aadfffacf19..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/flex_templates_service/credentials" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a service for Flex templates. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - module FlexTemplatesService - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb deleted file mode 100644 index 6cf8063060b2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb +++ /dev/null @@ -1,431 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - module Rest - ## - # REST client for the FlexTemplatesService service. - # - # Provides a service for Flex templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :flex_templates_service_stub - - ## - # Configure the FlexTemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all FlexTemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the FlexTemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @flex_templates_service_stub.universe_domain - end - - ## - # Create a new FlexTemplatesService REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the FlexTemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @flex_templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @flex_templates_service_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @flex_templates_service_stub.logger - end - - # Service calls - - ## - # Launch a job with a FlexTemplate. - # - # @overload launch_flex_template(request, options = nil) - # Pass arguments to `launch_flex_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) - # Pass arguments to `launch_flex_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param launch_parameter [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter, ::Hash] - # Required. Parameter to launch a job form Flex Template. - # @param location [::String] - # Required. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. E.g., us-central1, us-west1. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new - # - # # Call the launch_flex_template method. - # result = client.launch_flex_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. - # p result - # - def launch_flex_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.launch_flex_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.launch_flex_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.launch_flex_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @flex_templates_service_stub.launch_flex_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the FlexTemplatesService REST API. - # - # This class represents the configuration for FlexTemplatesService REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # launch_flex_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.launch_flex_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the FlexTemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `launch_flex_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_flex_template - - # @private - def initialize parent_rpcs = nil - launch_flex_template_config = parent_rpcs.launch_flex_template if parent_rpcs.respond_to? :launch_flex_template - @launch_flex_template = ::Gapic::Config::Method.new launch_flex_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb deleted file mode 100644 index a7f2edb4872a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/service_stub.rb +++ /dev/null @@ -1,144 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module FlexTemplatesService - module Rest - ## - # REST service stub for the FlexTemplatesService service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the launch_flex_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] - # A result object deserialized from the server's reply - def launch_flex_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_launch_flex_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "launch_flex_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the launch_flex_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_launch_flex_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb deleted file mode 100644 index c0cacf23c900..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/jobs/credentials" -require "google/cloud/dataflow/v1beta3/jobs/client" -require "google/cloud/dataflow/v1beta3/jobs/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/jobs" - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/jobs/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - module Jobs - end - end - end - end -end - -helper_path = ::File.join __dir__, "jobs", "helpers.rb" -require "google/cloud/dataflow/v1beta3/jobs/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb deleted file mode 100644 index 4cb43685a643..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +++ /dev/null @@ -1,1170 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/jobs_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - ## - # Client for the Jobs service. - # - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :jobs_stub - - ## - # Configure the Jobs Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Jobs clients - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Jobs Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @jobs_stub.universe_domain - end - - ## - # Create a new Jobs client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Jobs client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/jobs_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @jobs_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::JobsV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @jobs_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @jobs_stub.logger - end - - # Service calls - - ## - # Creates a Dataflow job. - # - # To create a job, we recommend using `projects.locations.jobs.create` with a - # [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.create` is not recommended, as your job will always start - # in `us-central1`. - # - # Do not enter confidential information when you supply string values using - # the API. - # - # @overload create_job(request, options = nil) - # Pass arguments to `create_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) - # Pass arguments to `create_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The job to create. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param replace_job_id [::String] - # Deprecated. This field is now in the Job message. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new - # - # # Call the create_job method. - # result = client.create_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :create_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the state of the specified Cloud Dataflow job. - # - # To get the state of a job, we recommend using `projects.locations.jobs.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.get` is not recommended, as you can only get the state of - # jobs that are running in `us-central1`. - # - # @overload get_job(request, options = nil) - # Pass arguments to `get_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) - # Pass arguments to `get_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new - # - # # Call the get_job method. - # result = client.get_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def get_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :get_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the state of an existing Cloud Dataflow job. - # - # To update the state of an existing job, we recommend using - # `projects.locations.jobs.update` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.update` is not recommended, as you can only update the state - # of jobs that are running in `us-central1`. - # - # @overload update_job(request, options = nil) - # Pass arguments to `update_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) - # Pass arguments to `update_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The updated job. - # Only the job state is updatable; other fields will be ignored. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # The list of fields to update relative to Job. If empty, only - # RequestedJobState will be considered for update. If the FieldMask is not - # empty and RequestedJobState is none/empty, The fields specified in the - # update mask will be the only ones considered for update. If both - # RequestedJobState and update_mask are specified, an error will be returned - # as we cannot update both state and mask. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new - # - # # Call the update_job method. - # result = client.update_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def update_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :update_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project. - # - # To list the jobs of a project in a region, we recommend using - # `projects.locations.jobs.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - # list the all jobs across all regions, use `projects.jobs.aggregated`. Using - # `projects.jobs.list` is not recommended, because you can only get the list - # of jobs that are running in `us-central1`. - # - # `projects.locations.jobs.list` and `projects.jobs.list` support filtering - # the list of jobs by name. Filtering by name isn't supported by - # `projects.jobs.aggregated`. - # - # @overload list_jobs(request, options = nil) - # Pass arguments to `list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the list_jobs method. - # result = client.list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :list_jobs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @jobs_stub, :list_jobs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project across all regions. - # - # **Note:** This method doesn't support filtering the list of - # jobs by name. - # - # @overload aggregated_list_jobs(request, options = nil) - # Pass arguments to `aggregated_list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the aggregated_list_jobs method. - # result = client.aggregated_list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def aggregated_list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :aggregated_list_jobs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Check for existence of active jobs in the given project across all regions. - # - # @overload check_active_jobs(request, options = nil) - # Pass arguments to `check_active_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload check_active_jobs(project_id: nil) - # Pass arguments to `check_active_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project which owns the jobs. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new - # - # # Call the check_active_jobs method. - # result = client.check_active_jobs request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. - # p result - # - def check_active_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.check_active_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.check_active_jobs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.check_active_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :check_active_jobs, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Snapshot the state of a streaming job. - # - # @overload snapshot_job(request, options = nil) - # Pass arguments to `snapshot_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) - # Pass arguments to `snapshot_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project which owns the job to be snapshotted. - # @param job_id [::String] - # The job to be snapshotted. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # TTL for the snapshot. - # @param location [::String] - # The location that contains this job. - # @param snapshot_sources [::Boolean] - # If true, perform snapshots for sources which support this. - # @param description [::String] - # User specified description of the snapshot. Maybe empty. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - # - # # Call the snapshot_job method. - # result = client.snapshot_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def snapshot_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.snapshot_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, - metadata: metadata, - retry_policy: @config.rpcs.snapshot_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.call_rpc :snapshot_job, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Jobs API. - # - # This class represents the configuration for Jobs, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Jobs API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job - ## - # RPC-specific configuration for `get_job` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job - ## - # RPC-specific configuration for `update_job` - # @return [::Gapic::Config::Method] - # - attr_reader :update_job - ## - # RPC-specific configuration for `list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_jobs - ## - # RPC-specific configuration for `aggregated_list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregated_list_jobs - ## - # RPC-specific configuration for `check_active_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :check_active_jobs - ## - # RPC-specific configuration for `snapshot_job` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_job - - # @private - def initialize parent_rpcs = nil - create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job - @create_job = ::Gapic::Config::Method.new create_job_config - get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job - @get_job = ::Gapic::Config::Method.new get_job_config - update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job - @update_job = ::Gapic::Config::Method.new update_job_config - list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs - @list_jobs = ::Gapic::Config::Method.new list_jobs_config - aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs - @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config - check_active_jobs_config = parent_rpcs.check_active_jobs if parent_rpcs.respond_to? :check_active_jobs - @check_active_jobs = ::Gapic::Config::Method.new check_active_jobs_config - snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job - @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb deleted file mode 100644 index f99e81697289..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - # Credentials for the Jobs API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb deleted file mode 100644 index b2134dbdc152..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/jobs/credentials" -require "google/cloud/dataflow/v1beta3/jobs/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/jobs/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - module Jobs - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/jobs/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb deleted file mode 100644 index d38727616da7..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb +++ /dev/null @@ -1,977 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/jobs_pb" -require "google/cloud/dataflow/v1beta3/jobs/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - module Rest - ## - # REST client for the Jobs service. - # - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :jobs_stub - - ## - # Configure the Jobs Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Jobs clients - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Jobs Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @jobs_stub.universe_domain - end - - ## - # Create a new Jobs REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Jobs client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @jobs_stub = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @jobs_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @jobs_stub.logger - end - - # Service calls - - ## - # Creates a Dataflow job. - # - # To create a job, we recommend using `projects.locations.jobs.create` with a - # [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.create` is not recommended, as your job will always start - # in `us-central1`. - # - # Do not enter confidential information when you supply string values using - # the API. - # - # @overload create_job(request, options = nil) - # Pass arguments to `create_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_job(project_id: nil, job: nil, view: nil, replace_job_id: nil, location: nil) - # Pass arguments to `create_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The job to create. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param replace_job_id [::String] - # Deprecated. This field is now in the Job message. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new - # - # # Call the create_job method. - # result = client.create_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.create_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the state of the specified Cloud Dataflow job. - # - # To get the state of a job, we recommend using `projects.locations.jobs.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.get` is not recommended, as you can only get the state of - # jobs that are running in `us-central1`. - # - # @overload get_job(request, options = nil) - # Pass arguments to `get_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_job(project_id: nil, job_id: nil, view: nil, location: nil) - # Pass arguments to `get_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new - # - # # Call the get_job method. - # result = client.get_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def get_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.get_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the state of an existing Cloud Dataflow job. - # - # To update the state of an existing job, we recommend using - # `projects.locations.jobs.update` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.update` is not recommended, as you can only update the state - # of jobs that are running in `us-central1`. - # - # @overload update_job(request, options = nil) - # Pass arguments to `update_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil) - # Pass arguments to `update_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @param job_id [::String] - # The job ID. - # @param job [::Google::Cloud::Dataflow::V1beta3::Job, ::Hash] - # The updated job. - # Only the job state is updatable; other fields will be ignored. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # The list of fields to update relative to Job. If empty, only - # RequestedJobState will be considered for update. If the FieldMask is not - # empty and RequestedJobState is none/empty, The fields specified in the - # update mask will be the only ones considered for update. If both - # RequestedJobState and update_mask are specified, an error will be returned - # as we cannot update both state and mask. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new - # - # # Call the update_job method. - # result = client.update_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def update_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.update_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project. - # - # To list the jobs of a project in a region, we recommend using - # `projects.locations.jobs.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - # list the all jobs across all regions, use `projects.jobs.aggregated`. Using - # `projects.jobs.list` is not recommended, because you can only get the list - # of jobs that are running in `us-central1`. - # - # `projects.locations.jobs.list` and `projects.jobs.list` support filtering - # the list of jobs by name. Filtering by name isn't supported by - # `projects.jobs.aggregated`. - # - # @overload list_jobs(request, options = nil) - # Pass arguments to `list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the list_jobs method. - # result = client.list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_jobs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.list_jobs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :list_jobs, "jobs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List the jobs of a project across all regions. - # - # **Note:** This method doesn't support filtering the list of - # jobs by name. - # - # @overload aggregated_list_jobs(request, options = nil) - # Pass arguments to `aggregated_list_jobs` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil) - # Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @param project_id [::String] - # The project which owns the jobs. - # @param view [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @param page_size [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @param page_token [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @param name [::String] - # Optional. The job name. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - # - # # Call the aggregated_list_jobs method. - # result = client.aggregated_list_jobs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - # p item - # end - # - def aggregated_list_jobs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.aggregated_list_jobs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.aggregated_list_jobs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.aggregated_list_jobs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.aggregated_list_jobs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @jobs_stub, :aggregated_list_jobs, "jobs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Snapshot the state of a streaming job. - # - # @overload snapshot_job(request, options = nil) - # Pass arguments to `snapshot_job` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload snapshot_job(project_id: nil, job_id: nil, ttl: nil, location: nil, snapshot_sources: nil, description: nil) - # Pass arguments to `snapshot_job` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project which owns the job to be snapshotted. - # @param job_id [::String] - # The job to be snapshotted. - # @param ttl [::Google::Protobuf::Duration, ::Hash] - # TTL for the snapshot. - # @param location [::String] - # The location that contains this job. - # @param snapshot_sources [::Boolean] - # If true, perform snapshots for sources which support this. - # @param description [::String] - # User specified description of the snapshot. Maybe empty. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - # - # # Call the snapshot_job method. - # result = client.snapshot_job request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def snapshot_job request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.snapshot_job.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.snapshot_job.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.snapshot_job.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @jobs_stub.snapshot_job request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Jobs REST API. - # - # This class represents the configuration for Jobs REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Jobs API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job - ## - # RPC-specific configuration for `get_job` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job - ## - # RPC-specific configuration for `update_job` - # @return [::Gapic::Config::Method] - # - attr_reader :update_job - ## - # RPC-specific configuration for `list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_jobs - ## - # RPC-specific configuration for `aggregated_list_jobs` - # @return [::Gapic::Config::Method] - # - attr_reader :aggregated_list_jobs - ## - # RPC-specific configuration for `snapshot_job` - # @return [::Gapic::Config::Method] - # - attr_reader :snapshot_job - - # @private - def initialize parent_rpcs = nil - create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job - @create_job = ::Gapic::Config::Method.new create_job_config - get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job - @get_job = ::Gapic::Config::Method.new get_job_config - update_job_config = parent_rpcs.update_job if parent_rpcs.respond_to? :update_job - @update_job = ::Gapic::Config::Method.new update_job_config - list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs - @list_jobs = ::Gapic::Config::Method.new list_jobs_config - aggregated_list_jobs_config = parent_rpcs.aggregated_list_jobs if parent_rpcs.respond_to? :aggregated_list_jobs - @aggregated_list_jobs = ::Gapic::Config::Method.new aggregated_list_jobs_config - snapshot_job_config = parent_rpcs.snapshot_job if parent_rpcs.respond_to? :snapshot_job - @snapshot_job = ::Gapic::Config::Method.new snapshot_job_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb deleted file mode 100644 index 1e94a9ea3e84..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/jobs/rest/service_stub.rb +++ /dev/null @@ -1,499 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/jobs_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Jobs - module Rest - ## - # REST service stub for the Jobs service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the create_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def create_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def get_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def update_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # A result object deserialized from the server's reply - def list_jobs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_jobs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the aggregated_list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsResponse] - # A result object deserialized from the server's reply - def aggregated_list_jobs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_jobs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "aggregated_list_jobs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the snapshot_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # A result object deserialized from the server's reply - def snapshot_job request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_snapshot_job_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "snapshot_job", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the create_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/jobs", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :put, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :put, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}", - body: "job", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_jobs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the aggregated_list_jobs REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_aggregated_list_jobs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs:aggregated", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the snapshot_job REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_snapshot_job_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}:snapshot", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb deleted file mode 100644 index c1d10e975449..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/messages/credentials" -require "google/cloud/dataflow/v1beta3/messages/client" -require "google/cloud/dataflow/v1beta3/messages/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/messages" - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/messages/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - module Messages - end - end - end - end -end - -helper_path = ::File.join __dir__, "messages", "helpers.rb" -require "google/cloud/dataflow/v1beta3/messages/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb deleted file mode 100644 index a596f0e47f11..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/client.rb +++ /dev/null @@ -1,514 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/messages_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - ## - # Client for the Messages service. - # - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :messages_stub - - ## - # Configure the Messages Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Messages clients - # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Messages Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @messages_stub.universe_domain - end - - ## - # Create a new Messages client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Messages client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/messages_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @messages_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::MessagesV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @messages_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @messages_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.messages.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.messages.list` is not recommended, as you can only request - # the status of jobs that are running in `us-central1`. - # - # @overload list_job_messages(request, options = nil) - # Pass arguments to `list_job_messages` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) - # Pass arguments to `list_job_messages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get messages about. - # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Filter to only get messages with importance >= level - # @param page_size [::Integer] - # If specified, determines the maximum number of messages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # If specified, return only messages with timestamps >= start_time. - # The default is the job creation time (i.e. beginning of messages). - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new - # - # # Call the list_job_messages method. - # result = client.list_job_messages request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. - # p item - # end - # - def list_job_messages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_job_messages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_job_messages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @messages_stub.call_rpc :list_job_messages, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @messages_stub, :list_job_messages, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Messages API. - # - # This class represents the configuration for Messages, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_job_messages to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Messages::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Messages API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_job_messages` - # @return [::Gapic::Config::Method] - # - attr_reader :list_job_messages - - # @private - def initialize parent_rpcs = nil - list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages - @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb deleted file mode 100644 index 5fb0a8534756..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - # Credentials for the Messages API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb deleted file mode 100644 index fea909c88cf0..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/messages/credentials" -require "google/cloud/dataflow/v1beta3/messages/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/messages/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - module Messages - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/messages/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb deleted file mode 100644 index b20337aec0f9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb +++ /dev/null @@ -1,458 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/messages_pb" -require "google/cloud/dataflow/v1beta3/messages/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - module Rest - ## - # REST client for the Messages service. - # - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :messages_stub - - ## - # Configure the Messages Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Messages clients - # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Messages Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @messages_stub.universe_domain - end - - ## - # Create a new Messages REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Messages client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @messages_stub = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @messages_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @messages_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.messages.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.messages.list` is not recommended, as you can only request - # the status of jobs that are running in `us-central1`. - # - # @overload list_job_messages(request, options = nil) - # Pass arguments to `list_job_messages` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_job_messages(project_id: nil, job_id: nil, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil) - # Pass arguments to `list_job_messages` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get messages about. - # @param minimum_importance [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Filter to only get messages with importance >= level - # @param page_size [::Integer] - # If specified, determines the maximum number of messages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # If specified, return only messages with timestamps >= start_time. - # The default is the job creation time (i.e. beginning of messages). - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new - # - # # Call the list_job_messages method. - # result = client.list_job_messages request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. - # p item - # end - # - def list_job_messages request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_job_messages.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_job_messages.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_job_messages.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @messages_stub.list_job_messages request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @messages_stub, :list_job_messages, "job_messages", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Messages REST API. - # - # This class represents the configuration for Messages REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_job_messages to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_job_messages.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Messages API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_job_messages` - # @return [::Gapic::Config::Method] - # - attr_reader :list_job_messages - - # @private - def initialize parent_rpcs = nil - list_job_messages_config = parent_rpcs.list_job_messages if parent_rpcs.respond_to? :list_job_messages - @list_job_messages = ::Gapic::Config::Method.new list_job_messages_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb deleted file mode 100644 index 9c7b964ec66d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/messages/rest/service_stub.rb +++ /dev/null @@ -1,152 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/messages_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Messages - module Rest - ## - # REST service stub for the Messages service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_job_messages REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse] - # A result object deserialized from the server's reply - def list_job_messages request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_job_messages_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_job_messages", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_job_messages REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_job_messages_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messages", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/messages", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb deleted file mode 100644 index 8d12328c2c2e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/metrics/credentials" -require "google/cloud/dataflow/v1beta3/metrics/client" -require "google/cloud/dataflow/v1beta3/metrics/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/metrics" - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/metrics/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - module Metrics - end - end - end - end -end - -helper_path = ::File.join __dir__, "metrics", "helpers.rb" -require "google/cloud/dataflow/v1beta3/metrics/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb deleted file mode 100644 index 712da86c1f98..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +++ /dev/null @@ -1,745 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/metrics_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - ## - # Client for the Metrics service. - # - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :metrics_stub - - ## - # Configure the Metrics Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Metrics clients - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Metrics Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @metrics_stub.universe_domain - end - - ## - # Create a new Metrics client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Metrics client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/metrics_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @metrics_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::MetricsV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @metrics_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @metrics_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.getMetrics` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.getMetrics` is not recommended, as you can only request the - # status of jobs that are running in `us-central1`. - # - # @overload get_job_metrics(request, options = nil) - # Pass arguments to `get_job_metrics` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) - # Pass arguments to `get_job_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get metrics for. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new - # - # # Call the get_job_metrics method. - # result = client.get_job_metrics request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. - # p result - # - def get_job_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_job_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_job_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.call_rpc :get_job_metrics, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of the job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_job_execution_details(request, options = nil) - # Pass arguments to `get_job_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) - # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param page_size [::Integer] - # If specified, determines the maximum number of stages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new - # - # # Call the get_job_execution_details method. - # result = client.get_job_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. - # p item - # end - # - def get_job_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_job_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_job_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.call_rpc :get_job_execution_details, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_job_execution_details, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of a stage of the - # job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_stage_execution_details(request, options = nil) - # Pass arguments to `get_stage_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) - # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param stage_id [::String] - # The stage for which to fetch information. - # @param page_size [::Integer] - # If specified, determines the maximum number of work items to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Lower time bound of work items to include, by start time. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Upper time bound of work items to include, by start time. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new - # - # # Call the get_stage_execution_details method. - # result = client.get_stage_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. - # p item - # end - # - def get_stage_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_stage_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - if request.stage_id - header_params["stage_id"] = request.stage_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_stage_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.call_rpc :get_stage_execution_details, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Metrics API. - # - # This class represents the configuration for Metrics, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_job_metrics to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Metrics API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_job_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_metrics - ## - # RPC-specific configuration for `get_job_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_execution_details - ## - # RPC-specific configuration for `get_stage_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_stage_execution_details - - # @private - def initialize parent_rpcs = nil - get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics - @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config - get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details - @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config - get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details - @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb deleted file mode 100644 index 2bcfd26f1f2a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - # Credentials for the Metrics API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb deleted file mode 100644 index 6e6edc9e99d4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/metrics/credentials" -require "google/cloud/dataflow/v1beta3/metrics/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/metrics/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - module Metrics - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/metrics/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb deleted file mode 100644 index be5f27b90cb1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb +++ /dev/null @@ -1,660 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/metrics_pb" -require "google/cloud/dataflow/v1beta3/metrics/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - module Rest - ## - # REST client for the Metrics service. - # - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :metrics_stub - - ## - # Configure the Metrics Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Metrics clients - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Metrics Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @metrics_stub.universe_domain - end - - ## - # Create a new Metrics REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Metrics client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @metrics_stub = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @metrics_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @metrics_stub.logger - end - - # Service calls - - ## - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.getMetrics` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.getMetrics` is not recommended, as you can only request the - # status of jobs that are running in `us-central1`. - # - # @overload get_job_metrics(request, options = nil) - # Pass arguments to `get_job_metrics` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_job_metrics(project_id: nil, job_id: nil, start_time: nil, location: nil) - # Pass arguments to `get_job_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get metrics for. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new - # - # # Call the get_job_metrics method. - # result = client.get_job_metrics request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. - # p result - # - def get_job_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_job_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_job_metrics.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_job_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.get_job_metrics request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of the job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_job_execution_details(request, options = nil) - # Pass arguments to `get_job_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_job_execution_details(project_id: nil, job_id: nil, location: nil, page_size: nil, page_token: nil) - # Pass arguments to `get_job_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param page_size [::Integer] - # If specified, determines the maximum number of stages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new - # - # # Call the get_job_execution_details method. - # result = client.get_job_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. - # p item - # end - # - def get_job_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_job_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_job_execution_details.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_job_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.get_job_execution_details request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_job_execution_details, "stages", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Request detailed information about the execution status of a stage of the - # job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - # - # @overload get_stage_execution_details(request, options = nil) - # Pass arguments to `get_stage_execution_details` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_stage_execution_details(project_id: nil, job_id: nil, location: nil, stage_id: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) - # Pass arguments to `get_stage_execution_details` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # A project id. - # @param job_id [::String] - # The job to get execution details for. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @param stage_id [::String] - # The stage for which to fetch information. - # @param page_size [::Integer] - # If specified, determines the maximum number of work items to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @param page_token [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @param start_time [::Google::Protobuf::Timestamp, ::Hash] - # Lower time bound of work items to include, by start time. - # @param end_time [::Google::Protobuf::Timestamp, ::Hash] - # Upper time bound of work items to include, by start time. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new - # - # # Call the get_stage_execution_details method. - # result = client.get_stage_execution_details request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. - # p item - # end - # - def get_stage_execution_details request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_stage_execution_details.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_stage_execution_details.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_stage_execution_details.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @metrics_stub.get_stage_execution_details request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @metrics_stub, :get_stage_execution_details, "workers", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Metrics REST API. - # - # This class represents the configuration for Metrics REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_job_metrics to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_job_metrics.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Metrics API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_job_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_metrics - ## - # RPC-specific configuration for `get_job_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_job_execution_details - ## - # RPC-specific configuration for `get_stage_execution_details` - # @return [::Gapic::Config::Method] - # - attr_reader :get_stage_execution_details - - # @private - def initialize parent_rpcs = nil - get_job_metrics_config = parent_rpcs.get_job_metrics if parent_rpcs.respond_to? :get_job_metrics - @get_job_metrics = ::Gapic::Config::Method.new get_job_metrics_config - get_job_execution_details_config = parent_rpcs.get_job_execution_details if parent_rpcs.respond_to? :get_job_execution_details - @get_job_execution_details = ::Gapic::Config::Method.new get_job_execution_details_config - get_stage_execution_details_config = parent_rpcs.get_stage_execution_details if parent_rpcs.respond_to? :get_stage_execution_details - @get_stage_execution_details = ::Gapic::Config::Method.new get_stage_execution_details_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb deleted file mode 100644 index b9a5c226a709..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/metrics/rest/service_stub.rb +++ /dev/null @@ -1,279 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/metrics_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Metrics - module Rest - ## - # REST service stub for the Metrics service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_job_metrics REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetrics] - # A result object deserialized from the server's reply - def get_job_metrics request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_job_metrics_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_job_metrics", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_job_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails] - # A result object deserialized from the server's reply - def get_job_execution_details request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_job_execution_details_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_job_execution_details", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_stage_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails] - # A result object deserialized from the server's reply - def get_stage_execution_details request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_stage_execution_details_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_stage_execution_details", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_job_metrics REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_job_metrics_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metrics", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/jobs/{job_id}/metrics", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_job_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_job_execution_details_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_stage_execution_details REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_stage_execution_details_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false], - ["stage_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb deleted file mode 100644 index 4878d2288fd4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/rest.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/dataflow/v1beta3/snapshots/rest" -require "google/cloud/dataflow/v1beta3/jobs/rest" -require "google/cloud/dataflow/v1beta3/messages/rest" -require "google/cloud/dataflow/v1beta3/metrics/rest" -require "google/cloud/dataflow/v1beta3/templates_service/rest" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" -require "google/cloud/dataflow/v1beta3/version" - -module Google - module Cloud - module Dataflow - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/cloud/dataflow/v1beta3/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module V1beta3 - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb deleted file mode 100644 index b2632eb9c226..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/snapshots/credentials" -require "google/cloud/dataflow/v1beta3/snapshots/client" -require "google/cloud/dataflow/v1beta3/snapshots/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/snapshots" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/snapshots/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module Snapshots - end - end - end - end -end - -helper_path = ::File.join __dir__, "snapshots", "helpers.rb" -require "google/cloud/dataflow/v1beta3/snapshots/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb deleted file mode 100644 index a06a5acf5545..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +++ /dev/null @@ -1,688 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/snapshots_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - ## - # Client for the Snapshots service. - # - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :snapshots_stub - - ## - # Configure the Snapshots Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Snapshots clients - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Snapshots Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @snapshots_stub.universe_domain - end - - ## - # Create a new Snapshots client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Snapshots client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/snapshots_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @snapshots_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::SnapshotsV1Beta3::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @snapshots_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @snapshots_stub.logger - end - - # Service calls - - ## - # Gets information about a snapshot. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.snapshot_id - header_params["snapshot_id"] = request.snapshot_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.call_rpc :get_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a snapshot. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.snapshot_id - header_params["snapshot_id"] = request.snapshot_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.call_rpc :delete_snapshot, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists snapshots. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project ID to list snapshots for. - # @param job_id [::String] - # If specified, list snapshots created from this job. - # @param location [::String] - # The location to list snapshots in. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. - # p result - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - if request.job_id - header_params["job_id"] = request.job_id - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.call_rpc :list_snapshots, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Snapshots API. - # - # This class represents the configuration for Snapshots, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_snapshot to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Snapshots API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - - # @private - def initialize parent_rpcs = nil - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb deleted file mode 100644 index d08946d2bd72..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - # Credentials for the Snapshots API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb deleted file mode 100644 index c188b21f1ceb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/snapshots/credentials" -require "google/cloud/dataflow/v1beta3/snapshots/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/snapshots/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - module Snapshots - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/snapshots/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb deleted file mode 100644 index 494c212b5efb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb +++ /dev/null @@ -1,606 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/snapshots_pb" -require "google/cloud/dataflow/v1beta3/snapshots/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - module Rest - ## - # REST client for the Snapshots service. - # - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :snapshots_stub - - ## - # Configure the Snapshots Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all Snapshots clients - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the Snapshots Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @snapshots_stub.universe_domain - end - - ## - # Create a new Snapshots REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Snapshots client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @snapshots_stub = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @snapshots_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @snapshots_stub.logger - end - - # Service calls - - ## - # Gets information about a snapshot. - # - # @overload get_snapshot(request, options = nil) - # Pass arguments to `get_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `get_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new - # - # # Call the get_snapshot method. - # result = client.get_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - # p result - # - def get_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_snapshot.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.get_snapshot request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a snapshot. - # - # @overload delete_snapshot(request, options = nil) - # Pass arguments to `delete_snapshot` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_snapshot(project_id: nil, snapshot_id: nil, location: nil) - # Pass arguments to `delete_snapshot` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @param snapshot_id [::String] - # The ID of the snapshot. - # @param location [::String] - # The location that contains this snapshot. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new - # - # # Call the delete_snapshot method. - # result = client.delete_snapshot request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. - # p result - # - def delete_snapshot request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_snapshot.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_snapshot.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_snapshot.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.delete_snapshot request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists snapshots. - # - # @overload list_snapshots(request, options = nil) - # Pass arguments to `list_snapshots` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_snapshots(project_id: nil, job_id: nil, location: nil) - # Pass arguments to `list_snapshots` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # The project ID to list snapshots for. - # @param job_id [::String] - # If specified, list snapshots created from this job. - # @param location [::String] - # The location to list snapshots in. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new - # - # # Call the list_snapshots method. - # result = client.list_snapshots request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. - # p result - # - def list_snapshots request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_snapshots.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_snapshots.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_snapshots.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @snapshots_stub.list_snapshots request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Snapshots REST API. - # - # This class represents the configuration for Snapshots REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_snapshot to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_snapshot.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Snapshots API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :get_snapshot - ## - # RPC-specific configuration for `delete_snapshot` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_snapshot - ## - # RPC-specific configuration for `list_snapshots` - # @return [::Gapic::Config::Method] - # - attr_reader :list_snapshots - - # @private - def initialize parent_rpcs = nil - get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot - @get_snapshot = ::Gapic::Config::Method.new get_snapshot_config - delete_snapshot_config = parent_rpcs.delete_snapshot if parent_rpcs.respond_to? :delete_snapshot - @delete_snapshot = ::Gapic::Config::Method.new delete_snapshot_config - list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots - @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb deleted file mode 100644 index 7b9f03ac3dab..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/snapshots/rest/service_stub.rb +++ /dev/null @@ -1,300 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/snapshots_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module Snapshots - module Rest - ## - # REST service stub for the Snapshots service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Snapshot] - # A result object deserialized from the server's reply - def get_snapshot request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_snapshot", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse] - # A result object deserialized from the server's reply - def delete_snapshot request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_snapshot", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_snapshots REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse] - # A result object deserialized from the server's reply - def list_snapshots request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_snapshots", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_snapshot_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["snapshot_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/snapshots/{snapshot_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["snapshot_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_snapshot REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_snapshot_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["snapshot_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :delete, - uri_template: "/v1b3/projects/{project_id}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_snapshots REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_snapshots_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false], - ["job_id", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/snapshots", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb deleted file mode 100644 index 984f76abec78..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/templates_service/credentials" -require "google/cloud/dataflow/v1beta3/templates_service/client" -require "google/cloud/dataflow/v1beta3/templates_service/rest" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create Cloud Dataflow jobs from templates. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/dataflow/v1beta3/templates_service" - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/dataflow/v1beta3/templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - module TemplatesService - end - end - end - end -end - -helper_path = ::File.join __dir__, "templates_service", "helpers.rb" -require "google/cloud/dataflow/v1beta3/templates_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb deleted file mode 100644 index 8720c371b9f8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +++ /dev/null @@ -1,730 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - ## - # Client for the TemplatesService service. - # - # Provides a method to create Cloud Dataflow jobs from templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :templates_service_stub - - ## - # Configure the TemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @templates_service_stub.universe_domain - end - - ## - # Create a new TemplatesService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/dataflow/v1beta3/templates_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @templates_service_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @templates_service_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @templates_service_stub.logger - end - - # Service calls - - ## - # Creates a Cloud Dataflow job from a template. Do not enter confidential - # information when you supply string values using the API. - # - # To create a job, we recommend using `projects.locations.templates.create` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.create` is not recommended, because your job will - # always start in `us-central1`. - # - # @overload create_job_from_template(request, options = nil) - # Pass arguments to `create_job_from_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) - # Pass arguments to `create_job_from_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param job_name [::String] - # Required. The job name to use for the created job. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @param parameters [::Hash{::String => ::String}] - # The runtime parameters to pass to the job. - # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] - # The runtime environment for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new - # - # # Call the create_job_from_template method. - # result = client.create_job_from_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job_from_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_job_from_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_job_from_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.call_rpc :create_job_from_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Launches a template. - # - # To launch a template, we recommend using - # `projects.locations.templates.launch` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.launch` is not recommended, because jobs launched - # from the template will always start in `us-central1`. - # - # @overload launch_template(request, options = nil) - # Pass arguments to `launch_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) - # Pass arguments to `launch_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @param gcs_path [::String] - # A Cloud Storage path to the template to use to create - # the job. - # Must be valid Cloud Storage URL, beginning with `gs://`. - # - # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] - # Parameters for launching a dynamic template. - # - # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] - # The parameters of the template to launch. Part of the - # body of the POST request. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new - # - # # Call the launch_template method. - # result = client.launch_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. - # p result - # - def launch_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.launch_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.launch_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.launch_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.call_rpc :launch_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get the template associated with a template. - # - # To get the template, we recommend using `projects.locations.templates.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.get` is not recommended, because only - # templates that are running in `us-central1` are retrieved. - # - # @overload get_template(request, options = nil) - # Pass arguments to `get_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) - # Pass arguments to `get_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] - # The view to retrieve. Defaults to METADATA_ONLY. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new - # - # # Call the get_template method. - # result = client.get_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. - # p result - # - def get_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.project_id - header_params["project_id"] = request.project_id - end - if request.location - header_params["location"] = request.location - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_template.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.call_rpc :get_template, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the TemplatesService API. - # - # This class represents the configuration for TemplatesService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job_from_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the TemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job_from_template` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job_from_template - ## - # RPC-specific configuration for `launch_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_template - ## - # RPC-specific configuration for `get_template` - # @return [::Gapic::Config::Method] - # - attr_reader :get_template - - # @private - def initialize parent_rpcs = nil - create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template - @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config - launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template - @launch_template = ::Gapic::Config::Method.new launch_template_config - get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template - @get_template = ::Gapic::Config::Method.new get_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb deleted file mode 100644 index 8b457121f54e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - # Credentials for the TemplatesService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - self.env_vars = [ - "DATAFLOW_CREDENTIALS", - "DATAFLOW_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "DATAFLOW_CREDENTIALS_JSON", - "DATAFLOW_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb deleted file mode 100644 index 9ae874ae87bc..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/dataflow/v1beta3/version" - -require "google/cloud/dataflow/v1beta3/templates_service/credentials" -require "google/cloud/dataflow/v1beta3/templates_service/rest/client" - -module Google - module Cloud - module Dataflow - module V1beta3 - ## - # Provides a method to create Cloud Dataflow jobs from templates. - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/dataflow/v1beta3/templates_service/rest" - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - module TemplatesService - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/dataflow/v1beta3/templates_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb deleted file mode 100644 index fb47d4349562..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb +++ /dev/null @@ -1,657 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/templates_service/rest/service_stub" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - module Rest - ## - # REST client for the TemplatesService service. - # - # Provides a method to create Cloud Dataflow jobs from templates. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :templates_service_stub - - ## - # Configure the TemplatesService Client class. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all TemplatesService clients - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "Dataflow", "V1beta3"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the TemplatesService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @templates_service_stub.universe_domain - end - - ## - # Create a new TemplatesService REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the TemplatesService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @templates_service_stub = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @templates_service_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @templates_service_stub.logger - end - - # Service calls - - ## - # Creates a Cloud Dataflow job from a template. Do not enter confidential - # information when you supply string values using the API. - # - # To create a job, we recommend using `projects.locations.templates.create` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.create` is not recommended, because your job will - # always start in `us-central1`. - # - # @overload create_job_from_template(request, options = nil) - # Pass arguments to `create_job_from_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_job_from_template(project_id: nil, job_name: nil, gcs_path: nil, parameters: nil, environment: nil, location: nil) - # Pass arguments to `create_job_from_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param job_name [::String] - # Required. The job name to use for the created job. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @param parameters [::Hash{::String => ::String}] - # The runtime parameters to pass to the job. - # @param environment [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment, ::Hash] - # The runtime environment for the job. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new - # - # # Call the create_job_from_template method. - # result = client.create_job_from_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - # p result - # - def create_job_from_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_job_from_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_job_from_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_job_from_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.create_job_from_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Launches a template. - # - # To launch a template, we recommend using - # `projects.locations.templates.launch` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.launch` is not recommended, because jobs launched - # from the template will always start in `us-central1`. - # - # @overload launch_template(request, options = nil) - # Pass arguments to `launch_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload launch_template(project_id: nil, validate_only: nil, gcs_path: nil, dynamic_template: nil, launch_parameters: nil, location: nil) - # Pass arguments to `launch_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param validate_only [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @param gcs_path [::String] - # A Cloud Storage path to the template to use to create - # the job. - # Must be valid Cloud Storage URL, beginning with `gs://`. - # - # Note: The following parameters are mutually exclusive: `gcs_path`, `dynamic_template`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash] - # Parameters for launching a dynamic template. - # - # Note: The following parameters are mutually exclusive: `dynamic_template`, `gcs_path`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash] - # The parameters of the template to launch. Part of the - # body of the POST request. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new - # - # # Call the launch_template method. - # result = client.launch_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. - # p result - # - def launch_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.launch_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.launch_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.launch_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.launch_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get the template associated with a template. - # - # To get the template, we recommend using `projects.locations.templates.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.get` is not recommended, because only - # templates that are running in `us-central1` are retrieved. - # - # @overload get_template(request, options = nil) - # Pass arguments to `get_template` via a request object, either of type - # {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_template(project_id: nil, gcs_path: nil, view: nil, location: nil) - # Pass arguments to `get_template` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param project_id [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @param gcs_path [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @param view [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] - # The view to retrieve. Defaults to METADATA_ONLY. - # @param location [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/dataflow/v1beta3" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new - # - # # Call the get_template method. - # result = client.get_template request - # - # # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. - # p result - # - def get_template request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_template.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_template.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_template.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @templates_service_stub.get_template request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the TemplatesService REST API. - # - # This class represents the configuration for TemplatesService REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # create_job_from_template to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.create_job_from_template.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "dataflow.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the TemplatesService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `create_job_from_template` - # @return [::Gapic::Config::Method] - # - attr_reader :create_job_from_template - ## - # RPC-specific configuration for `launch_template` - # @return [::Gapic::Config::Method] - # - attr_reader :launch_template - ## - # RPC-specific configuration for `get_template` - # @return [::Gapic::Config::Method] - # - attr_reader :get_template - - # @private - def initialize parent_rpcs = nil - create_job_from_template_config = parent_rpcs.create_job_from_template if parent_rpcs.respond_to? :create_job_from_template - @create_job_from_template = ::Gapic::Config::Method.new create_job_from_template_config - launch_template_config = parent_rpcs.launch_template if parent_rpcs.respond_to? :launch_template - @launch_template = ::Gapic::Config::Method.new launch_template_config - get_template_config = parent_rpcs.get_template if parent_rpcs.respond_to? :get_template - @get_template = ::Gapic::Config::Method.new get_template_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb deleted file mode 100644 index 42dde9541e62..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/templates_service/rest/service_stub.rb +++ /dev/null @@ -1,292 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/dataflow/v1beta3/templates_pb" - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - module Rest - ## - # REST service stub for the TemplatesService service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the create_job_from_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # A result object deserialized from the server's reply - def create_job_from_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_job_from_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_job_from_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::Job.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the launch_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse] - # A result object deserialized from the server's reply - def launch_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_launch_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "launch_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse] - # A result object deserialized from the server's reply - def get_template request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_template_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_template", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the create_job_from_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_job_from_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/templates", - body: "*", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the launch_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_launch_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:launch", - body: "launch_parameters", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1b3/projects/{project_id}/templates:launch", - body: "launch_parameters", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_template REST call - # - # @param request_pb [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_template_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/locations/{location}/templates:get", - matches: [ - ["project_id", %r{^[^/]+/?$}, false], - ["location", %r{^[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1b3/projects/{project_id}/templates:get", - matches: [ - ["project_id", %r{^[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb deleted file mode 100644 index b6b5c1af211d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/cloud/dataflow/v1beta3/version.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - VERSION = "0.0.1" - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb deleted file mode 100644 index 45c93d17eaa1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/environment_pb.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/environment.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/protobuf/any_pb' -require 'google/protobuf/struct_pb' - - -descriptor_data = "\n)google/dataflow/v1beta3/environment.proto\x12\x17google.dataflow.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x98\x07\n\x0b\x45nvironment\x12\x1b\n\x13temp_storage_prefix\x18\x01 \x01(\t\x12#\n\x1b\x63luster_manager_api_service\x18\x02 \x01(\t\x12\x13\n\x0b\x65xperiments\x18\x03 \x03(\t\x12\x1c\n\x0fservice_options\x18\x10 \x03(\tB\x03\xe0\x41\x01\x12!\n\x14service_kms_key_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x39\n\x0cworker_pools\x18\x04 \x03(\x0b\x32#.google.dataflow.v1beta3.WorkerPool\x12\x30\n\nuser_agent\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12(\n\x07version\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x07\x64\x61taset\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x14sdk_pipeline_options\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x14internal_experiments\x18\t \x01(\x0b\x32\x14.google.protobuf.Any\x12\"\n\x15service_account_email\x18\n \x01(\tB\x03\xe0\x41\x01\x12_\n\x1d\x66lex_resource_scheduling_goal\x18\x0b \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoalB\x03\xe0\x41\x01\x12\x1a\n\rworker_region\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bworker_zone\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12?\n\x0cshuffle_mode\x18\x0f \x01(\x0e\x32$.google.dataflow.v1beta3.ShuffleModeB\x03\xe0\x41\x03\x12\x41\n\rdebug_options\x18\x11 \x01(\x0b\x32%.google.dataflow.v1beta3.DebugOptionsB\x03\xe0\x41\x01\x12\x38\n+use_streaming_engine_resource_based_billing\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12\x43\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01\x12\x1b\n\x0euse_public_ips\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\">\n\x07Package\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\x12\x13\n\x06sha256\x18\x03 \x01(\tB\x03\xe0\x41\x01\"?\n\x04\x44isk\x12\x0f\n\x07size_gb\x18\x01 \x01(\x05\x12\x11\n\tdisk_type\x18\x02 \x01(\t\x12\x13\n\x0bmount_point\x18\x03 \x01(\t\"\xa1\x01\n\x0eWorkerSettings\x12\x10\n\x08\x62\x61se_url\x18\x01 \x01(\t\x12\x19\n\x11reporting_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cservice_path\x18\x03 \x01(\t\x12\x1c\n\x14shuffle_service_path\x18\x04 \x01(\t\x12\x11\n\tworker_id\x18\x05 \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\x06 \x01(\t\"\xa4\x04\n\x12TaskRunnerSettings\x12\x11\n\ttask_user\x18\x01 \x01(\t\x12\x12\n\ntask_group\x18\x02 \x01(\t\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x10\n\x08\x62\x61se_url\x18\x04 \x01(\t\x12\x1c\n\x14\x64\x61taflow_api_version\x18\x05 \x01(\t\x12I\n\x18parallel_worker_settings\x18\x06 \x01(\x0b\x32\'.google.dataflow.v1beta3.WorkerSettings\x12\x15\n\rbase_task_dir\x18\x07 \x01(\t\x12\x1d\n\x15\x63ontinue_on_exception\x18\x08 \x01(\x08\x12\x1c\n\x14log_to_serialconsole\x18\t \x01(\x08\x12\x17\n\x0f\x61lsologtostderr\x18\n \x01(\x08\x12\x1b\n\x13log_upload_location\x18\x0b \x01(\t\x12\x0f\n\x07log_dir\x18\x0c \x01(\t\x12\x1b\n\x13temp_storage_prefix\x18\r \x01(\t\x12\x17\n\x0fharness_command\x18\x0e \x01(\t\x12\x1a\n\x12workflow_file_name\x18\x0f \x01(\t\x12\x1e\n\x16\x63ommandlines_file_name\x18\x10 \x01(\t\x12\r\n\x05vm_id\x18\x11 \x01(\t\x12\x15\n\rlanguage_hint\x18\x12 \x01(\t\x12#\n\x1bstreaming_worker_main_class\x18\x13 \x01(\t\"p\n\x13\x41utoscalingSettings\x12@\n\talgorithm\x18\x01 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x17\n\x0fmax_num_workers\x18\x02 \x01(\x05\"\x88\x01\n\x18SdkHarnessContainerImage\x12\x17\n\x0f\x63ontainer_image\x18\x01 \x01(\t\x12%\n\x1duse_single_core_per_container\x18\x02 \x01(\x08\x12\x16\n\x0e\x65nvironment_id\x18\x03 \x01(\t\x12\x14\n\x0c\x63\x61pabilities\x18\x04 \x03(\t\"\xc6\x08\n\nWorkerPool\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x13\n\x0bnum_workers\x18\x02 \x01(\x05\x12\x32\n\x08packages\x18\x03 \x03(\x0b\x32 .google.dataflow.v1beta3.Package\x12G\n\x13\x64\x65\x66\x61ult_package_set\x18\x04 \x01(\x0e\x32*.google.dataflow.v1beta3.DefaultPackageSet\x12\x14\n\x0cmachine_type\x18\x05 \x01(\t\x12@\n\x0fteardown_policy\x18\x06 \x01(\x0e\x32\'.google.dataflow.v1beta3.TeardownPolicy\x12\x14\n\x0c\x64isk_size_gb\x18\x07 \x01(\x05\x12\x11\n\tdisk_type\x18\x10 \x01(\t\x12\"\n\x15\x64isk_provisioned_iops\x18\x17 \x01(\x03\x42\x03\xe0\x41\x01\x12.\n!disk_provisioned_throughput_mibps\x18\x18 \x01(\x03\x42\x03\xe0\x41\x01\x12\x19\n\x11\x64isk_source_image\x18\x08 \x01(\t\x12\x0c\n\x04zone\x18\t \x01(\t\x12H\n\x13taskrunner_settings\x18\n \x01(\x0b\x32+.google.dataflow.v1beta3.TaskRunnerSettings\x12\x1b\n\x13on_host_maintenance\x18\x0b \x01(\t\x12\x31\n\ndata_disks\x18\x0c \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Disk\x12\x43\n\x08metadata\x18\r \x03(\x0b\x32\x31.google.dataflow.v1beta3.WorkerPool.MetadataEntry\x12J\n\x14\x61utoscaling_settings\x18\x0e \x01(\x0b\x32,.google.dataflow.v1beta3.AutoscalingSettings\x12\'\n\tpool_args\x18\x0f \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0f\n\x07network\x18\x11 \x01(\t\x12\x12\n\nsubnetwork\x18\x13 \x01(\t\x12&\n\x1eworker_harness_container_image\x18\x12 \x01(\t\x12\x1e\n\x16num_threads_per_worker\x18\x14 \x01(\x05\x12O\n\x10ip_configuration\x18\x15 \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12W\n\x1csdk_harness_container_images\x18\x16 \x03(\x0b\x32\x31.google.dataflow.v1beta3.SdkHarnessContainerImage\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd6\x01\n\x12\x44\x61taSamplingConfig\x12S\n\tbehaviors\x18\x01 \x03(\x0e\x32@.google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior\"k\n\x14\x44\x61taSamplingBehavior\x12&\n\"DATA_SAMPLING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tALWAYS_ON\x10\x02\x12\x0e\n\nEXCEPTIONS\x10\x03\"w\n\x0c\x44\x65\x62ugOptions\x12#\n\x16\x65nable_hot_key_logging\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\rdata_sampling\x18\x02 \x01(\x0b\x32+.google.dataflow.v1beta3.DataSamplingConfig*K\n\x07JobType\x12\x14\n\x10JOB_TYPE_UNKNOWN\x10\x00\x12\x12\n\x0eJOB_TYPE_BATCH\x10\x01\x12\x16\n\x12JOB_TYPE_STREAMING\x10\x02*k\n\x1a\x46lexResourceSchedulingGoal\x12\x16\n\x12\x46LEXRS_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x46LEXRS_SPEED_OPTIMIZED\x10\x01\x12\x19\n\x15\x46LEXRS_COST_OPTIMIZED\x10\x02*o\n\x0eTeardownPolicy\x12\x1b\n\x17TEARDOWN_POLICY_UNKNOWN\x10\x00\x12\x13\n\x0fTEARDOWN_ALWAYS\x10\x01\x12\x17\n\x13TEARDOWN_ON_SUCCESS\x10\x02\x12\x12\n\x0eTEARDOWN_NEVER\x10\x03*\x90\x01\n\x11\x44\x65\x66\x61ultPackageSet\x12\x1f\n\x1b\x44\x45\x46\x41ULT_PACKAGE_SET_UNKNOWN\x10\x00\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_NONE\x10\x01\x12\x1c\n\x18\x44\x45\x46\x41ULT_PACKAGE_SET_JAVA\x10\x02\x12\x1e\n\x1a\x44\x45\x46\x41ULT_PACKAGE_SET_PYTHON\x10\x03*z\n\x14\x41utoscalingAlgorithm\x12!\n\x1d\x41UTOSCALING_ALGORITHM_UNKNOWN\x10\x00\x12\x1e\n\x1a\x41UTOSCALING_ALGORITHM_NONE\x10\x01\x12\x1f\n\x1b\x41UTOSCALING_ALGORITHM_BASIC\x10\x02*f\n\x1cWorkerIPAddressConfiguration\x12\x19\n\x15WORKER_IP_UNSPECIFIED\x10\x00\x12\x14\n\x10WORKER_IP_PUBLIC\x10\x01\x12\x15\n\x11WORKER_IP_PRIVATE\x10\x02*L\n\x0bShuffleMode\x12\x1c\n\x18SHUFFLE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08VM_BASED\x10\x01\x12\x11\n\rSERVICE_BASED\x10\x02*r\n\rStreamingMode\x12\x1e\n\x1aSTREAMING_MODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bSTREAMING_MODE_EXACTLY_ONCE\x10\x01\x12 \n\x1cSTREAMING_MODE_AT_LEAST_ONCE\x10\x02\x42\xd3\x01\n\x1b\x63om.google.dataflow.v1beta3B\x10\x45nvironmentProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Environment").msgclass - Package = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Package").msgclass - Disk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Disk").msgclass - WorkerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerSettings").msgclass - TaskRunnerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TaskRunnerSettings").msgclass - AutoscalingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingSettings").msgclass - SdkHarnessContainerImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkHarnessContainerImage").msgclass - WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerPool").msgclass - DataSamplingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig").msgclass - DataSamplingConfig::DataSamplingBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataSamplingConfig.DataSamplingBehavior").enummodule - DebugOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DebugOptions").msgclass - JobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobType").enummodule - FlexResourceSchedulingGoal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexResourceSchedulingGoal").enummodule - TeardownPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TeardownPolicy").enummodule - DefaultPackageSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DefaultPackageSet").enummodule - AutoscalingAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingAlgorithm").enummodule - WorkerIPAddressConfiguration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerIPAddressConfiguration").enummodule - ShuffleMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ShuffleMode").enummodule - StreamingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingMode").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb deleted file mode 100644 index 16e222ef97e6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_pb.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/jobs.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/dataflow/v1beta3/environment_pb' -require 'google/dataflow/v1beta3/snapshots_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/struct_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n\"google/dataflow/v1beta3/jobs.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\'google/dataflow/v1beta3/snapshots.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xec\x0b\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x04type\x18\x04 \x01(\x0e\x32 .google.dataflow.v1beta3.JobTypeB\x03\xe0\x41\x01\x12>\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32$.google.dataflow.v1beta3.EnvironmentB\x03\xe0\x41\x01\x12,\n\x05steps\x18\x06 \x03(\x0b\x32\x1d.google.dataflow.v1beta3.Step\x12\x16\n\x0esteps_location\x18\x18 \x01(\t\x12\x38\n\rcurrent_state\x18\x07 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x0frequested_state\x18\t \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x41\n\x0e\x65xecution_info\x18\n \x01(\x0b\x32).google.dataflow.v1beta3.JobExecutionInfo\x12/\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0ereplace_job_id\x18\x0c \x01(\t\x12[\n\x16transform_name_mapping\x18\r \x03(\x0b\x32\x36.google.dataflow.v1beta3.Job.TransformNameMappingEntryB\x03\xe0\x41\x01\x12\x19\n\x11\x63lient_request_id\x18\x0e \x01(\t\x12\x1a\n\x12replaced_by_job_id\x18\x0f \x01(\t\x12\x12\n\ntemp_files\x18\x10 \x03(\t\x12\x38\n\x06labels\x18\x11 \x03(\x0b\x32(.google.dataflow.v1beta3.Job.LabelsEntry\x12\x15\n\x08location\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12J\n\x14pipeline_description\x18\x13 \x01(\x0b\x32,.google.dataflow.v1beta3.PipelineDescription\x12\x42\n\x0cstage_states\x18\x14 \x03(\x0b\x32,.google.dataflow.v1beta3.ExecutionStageState\x12:\n\x0cjob_metadata\x18\x15 \x01(\x0b\x32$.google.dataflow.v1beta3.JobMetadata\x12.\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12 \n\x18\x63reated_from_snapshot_id\x18\x17 \x01(\t\x12\x15\n\rsatisfies_pzs\x18\x19 \x01(\x08\x12V\n\x18runtime_updatable_params\x18\x1a \x01(\x0b\x32/.google.dataflow.v1beta3.RuntimeUpdatableParamsH\x00\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12N\n\x11service_resources\x18\x1c \x01(\x0b\x32).google.dataflow.v1beta3.ServiceResourcesB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12\x15\n\x08pausable\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x1b\n\x19_runtime_updatable_paramsB\x10\n\x0e_satisfies_pziB\x14\n\x12_service_resources\"&\n\x10ServiceResources\x12\x12\n\x05zones\x18\x01 \x03(\tB\x03\xe0\x41\x03\"\xe3\x02\n\x16RuntimeUpdatableParams\x12\x1c\n\x0fmax_num_workers\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x1c\n\x0fmin_num_workers\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12$\n\x17worker_utilization_hint\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12J\n\x1b\x61\x63\x63\x65ptable_backlog_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x05\x18\x01\xe0\x41\x01H\x03\x88\x01\x01\x12\"\n\x10\x61utoscaling_tier\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01\x42\x12\n\x10_max_num_workersB\x12\n\x10_min_num_workersB\x1a\n\x18_worker_utilization_hintB\x1e\n\x1c_acceptable_backlog_durationB\x13\n\x11_autoscaling_tier\";\n\x12\x44\x61tastoreIODetails\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\"6\n\x0fPubSubIODetails\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\"%\n\rFileIODetails\x12\x14\n\x0c\x66ile_pattern\x18\x01 \x01(\t\"N\n\x11\x42igTableIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x10\n\x08table_id\x18\x03 \x01(\t\"V\n\x11\x42igQueryIODetails\x12\r\n\x05table\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x02 \x01(\t\x12\x12\n\nproject_id\x18\x03 \x01(\t\x12\r\n\x05query\x18\x04 \x01(\t\"P\n\x10SpannerIODetails\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0binstance_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x61tabase_id\x18\x03 \x01(\t\"\x9d\x02\n\nSdkVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x1c\n\x14version_display_name\x18\x02 \x01(\t\x12P\n\x12sdk_support_status\x18\x03 \x01(\x0e\x32\x34.google.dataflow.v1beta3.SdkVersion.SdkSupportStatus\x12\x32\n\x04\x62ugs\x18\x04 \x03(\x0b\x32\x1f.google.dataflow.v1beta3.SdkBugB\x03\xe0\x41\x03\"Z\n\x10SdkSupportStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tSUPPORTED\x10\x01\x12\t\n\x05STALE\x10\x02\x12\x0e\n\nDEPRECATED\x10\x03\x12\x0f\n\x0bUNSUPPORTED\x10\x04\"\xa9\x02\n\x06SdkBug\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32$.google.dataflow.v1beta3.SdkBug.TypeB\x03\xe0\x41\x03\x12?\n\x08severity\x18\x02 \x01(\x0e\x32(.google.dataflow.v1beta3.SdkBug.SeverityB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\"H\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07GENERAL\x10\x01\x12\x0f\n\x0bPERFORMANCE\x10\x02\x12\x0c\n\x08\x44\x41TALOSS\x10\x03\"I\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\n\n\x06NOTICE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\n\n\x06SEVERE\x10\x03\"\x80\x05\n\x0bJobMetadata\x12\x38\n\x0bsdk_version\x18\x01 \x01(\x0b\x32#.google.dataflow.v1beta3.SdkVersion\x12\x42\n\x0fspanner_details\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.SpannerIODetails\x12\x44\n\x10\x62igquery_details\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.BigQueryIODetails\x12\x45\n\x11\x62ig_table_details\x18\x04 \x03(\x0b\x32*.google.dataflow.v1beta3.BigTableIODetails\x12@\n\x0epubsub_details\x18\x05 \x03(\x0b\x32(.google.dataflow.v1beta3.PubSubIODetails\x12<\n\x0c\x66ile_details\x18\x06 \x03(\x0b\x32&.google.dataflow.v1beta3.FileIODetails\x12\x46\n\x11\x64\x61tastore_details\x18\x07 \x03(\x0b\x32+.google.dataflow.v1beta3.DatastoreIODetails\x12`\n\x17user_display_properties\x18\x08 \x03(\x0b\x32?.google.dataflow.v1beta3.JobMetadata.UserDisplayPropertiesEntry\x1a<\n\x1aUserDisplayPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xad\x01\n\x13\x45xecutionStageState\x12\x1c\n\x14\x65xecution_stage_name\x18\x01 \x01(\t\x12@\n\x15\x65xecution_stage_state\x18\x02 \x01(\x0e\x32!.google.dataflow.v1beta3.JobState\x12\x36\n\x12\x63urrent_state_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x13PipelineDescription\x12N\n\x1boriginal_pipeline_transform\x18\x01 \x03(\x0b\x32).google.dataflow.v1beta3.TransformSummary\x12P\n\x18\x65xecution_pipeline_stage\x18\x02 \x03(\x0b\x32..google.dataflow.v1beta3.ExecutionStageSummary\x12:\n\x0c\x64isplay_data\x18\x03 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x17\n\x0fstep_names_hash\x18\x04 \x01(\t\"\xd8\x01\n\x10TransformSummary\x12/\n\x04kind\x18\x01 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12:\n\x0c\x64isplay_data\x18\x04 \x03(\x0b\x32$.google.dataflow.v1beta3.DisplayData\x12\x1e\n\x16output_collection_name\x18\x05 \x03(\t\x12\x1d\n\x15input_collection_name\x18\x06 \x03(\t\"\xfc\x05\n\x15\x45xecutionStageSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12/\n\x04kind\x18\x03 \x01(\x0e\x32!.google.dataflow.v1beta3.KindType\x12P\n\x0cinput_source\x18\x04 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12Q\n\routput_source\x18\x05 \x03(\x0b\x32:.google.dataflow.v1beta3.ExecutionStageSummary.StageSource\x12\x1a\n\x12prerequisite_stage\x18\x08 \x03(\t\x12^\n\x13\x63omponent_transform\x18\x06 \x03(\x0b\x32\x41.google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform\x12X\n\x10\x63omponent_source\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource\x1al\n\x0bStageSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\x12\x12\n\nsize_bytes\x18\x04 \x01(\x03\x1aQ\n\x12\x43omponentTransform\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x1a\n\x12original_transform\x18\x03 \x01(\t\x1a\\\n\x0f\x43omponentSource\x12\x11\n\tuser_name\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n original_transform_or_collection\x18\x03 \x01(\t\"\xcc\x02\n\x0b\x44isplayData\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\tstr_value\x18\x04 \x01(\tH\x00\x12\x15\n\x0bint64_value\x18\x05 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x06 \x01(\x02H\x00\x12\x1a\n\x10java_class_value\x18\x07 \x01(\tH\x00\x12\x35\n\x0ftimestamp_value\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x12\x33\n\x0e\x64uration_value\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12\x14\n\nbool_value\x18\n \x01(\x08H\x00\x12\x17\n\x0fshort_str_value\x18\x0b \x01(\t\x12\x0b\n\x03url\x18\x0c \x01(\t\x12\r\n\x05label\x18\r \x01(\tB\x07\n\x05Value\"O\n\x04Step\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xb8\x01\n\x10JobExecutionInfo\x12\x45\n\x06stages\x18\x01 \x03(\x0b\x32\x35.google.dataflow.v1beta3.JobExecutionInfo.StagesEntry\x1a]\n\x0bStagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..google.dataflow.v1beta3.JobExecutionStageInfo:\x02\x38\x01\"*\n\x15JobExecutionStageInfo\x12\x11\n\tstep_name\x18\x01 \x03(\t\"\xab\x01\n\x10\x43reateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12)\n\x03job\x18\x02 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x16\n\x0ereplace_job_id\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x05 \x01(\t\"u\n\rGetJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\x04view\x18\x03 \x01(\x0e\x32 .google.dataflow.v1beta3.JobView\x12\x10\n\x08location\x18\x04 \x01(\t\"\xb9\x01\n\x10UpdateJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12)\n\x03job\x18\x03 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x34\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskH\x00\x88\x01\x01\x42\x0e\n\x0c_update_mask\"\xb0\x02\n\x0fListJobsRequest\x12?\n\x06\x66ilter\x18\x05 \x01(\x0e\x32/.google.dataflow.v1beta3.ListJobsRequest.Filter\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x32\n\x04view\x18\x02 \x01(\x0e\x32 .google.dataflow.v1beta3.JobViewB\x02\x18\x01\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x10\n\x08location\x18\x11 \x01(\t\x12\x16\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\":\n\x06\x46ilter\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x42\x07\n\x05_name\"\x1e\n\x0e\x46\x61iledLocation\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x99\x01\n\x10ListJobsResponse\x12*\n\x04jobs\x18\x01 \x03(\x0b\x32\x1c.google.dataflow.v1beta3.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12@\n\x0f\x66\x61iled_location\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.FailedLocation\"\xa1\x01\n\x12SnapshotJobRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12&\n\x03ttl\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08location\x18\x04 \x01(\t\x12\x18\n\x10snapshot_sources\x18\x05 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\",\n\x16\x43heckActiveJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"4\n\x17\x43heckActiveJobsResponse\x12\x19\n\x11\x61\x63tive_jobs_exist\x18\x01 \x01(\x08*\xae\x01\n\x08KindType\x12\x10\n\x0cUNKNOWN_KIND\x10\x00\x12\x0f\n\x0bPAR_DO_KIND\x10\x01\x12\x15\n\x11GROUP_BY_KEY_KIND\x10\x02\x12\x10\n\x0c\x46LATTEN_KIND\x10\x03\x12\r\n\tREAD_KIND\x10\x04\x12\x0e\n\nWRITE_KIND\x10\x05\x12\x11\n\rCONSTANT_KIND\x10\x06\x12\x12\n\x0eSINGLETON_KIND\x10\x07\x12\x10\n\x0cSHUFFLE_KIND\x10\x08*\xf0\x02\n\x08JobState\x12\x15\n\x11JOB_STATE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_STATE_STOPPED\x10\x01\x12\x15\n\x11JOB_STATE_RUNNING\x10\x02\x12\x12\n\x0eJOB_STATE_DONE\x10\x03\x12\x14\n\x10JOB_STATE_FAILED\x10\x04\x12\x17\n\x13JOB_STATE_CANCELLED\x10\x05\x12\x15\n\x11JOB_STATE_UPDATED\x10\x06\x12\x16\n\x12JOB_STATE_DRAINING\x10\x07\x12\x15\n\x11JOB_STATE_DRAINED\x10\x08\x12\x15\n\x11JOB_STATE_PENDING\x10\t\x12\x18\n\x14JOB_STATE_CANCELLING\x10\n\x12\x14\n\x10JOB_STATE_QUEUED\x10\x0b\x12\"\n\x1eJOB_STATE_RESOURCE_CLEANING_UP\x10\x0c\x12\x15\n\x11JOB_STATE_PAUSING\x10\r\x12\x14\n\x10JOB_STATE_PAUSED\x10\x0e*a\n\x07JobView\x12\x14\n\x10JOB_VIEW_UNKNOWN\x10\x00\x12\x14\n\x10JOB_VIEW_SUMMARY\x10\x01\x12\x10\n\x0cJOB_VIEW_ALL\x10\x02\x12\x18\n\x14JOB_VIEW_DESCRIPTION\x10\x03\x32\xaf\x0b\n\x0bJobsV1Beta3\x12\xc1\x01\n\tCreateJob\x12).google.dataflow.v1beta3.CreateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"k\x82\xd3\xe4\x93\x02\x65\"5/v1b3/projects/{project_id}/locations/{location}/jobs:\x03jobZ\'\" /v1b3/projects/{project_id}/jobs:\x03job\x12\xc3\x01\n\x06GetJob\x12&.google.dataflow.v1beta3.GetJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}Z+\x12)/v1b3/projects/{project_id}/jobs/{job_id}\x12\xd3\x01\n\tUpdateJob\x12).google.dataflow.v1beta3.UpdateJobRequest\x1a\x1c.google.dataflow.v1beta3.Job\"}\x82\xd3\xe4\x93\x02w\x1a>/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:\x03jobZ0\x1a)/v1b3/projects/{project_id}/jobs/{job_id}:\x03job\x12\xc2\x01\n\x08ListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"a\x82\xd3\xe4\x93\x02[\x12\x35/v1b3/projects/{project_id}/locations/{location}/jobsZ\"\x12 /v1b3/projects/{project_id}/jobs\x12\x9e\x01\n\x12\x41ggregatedListJobs\x12(.google.dataflow.v1beta3.ListJobsRequest\x1a).google.dataflow.v1beta3.ListJobsResponse\"3\x82\xd3\xe4\x93\x02-\x12+/v1b3/projects/{project_id}/jobs:aggregated\x12v\n\x0f\x43heckActiveJobs\x12/.google.dataflow.v1beta3.CheckActiveJobsRequest\x1a\x30.google.dataflow.v1beta3.CheckActiveJobsResponse\"\x00\x12\xec\x01\n\x0bSnapshotJob\x12+.google.dataflow.v1beta3.SnapshotJobRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\"G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot:\x01*Z7\"2/v1b3/projects/{project_id}/jobs/{job_id}:snapshot:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcc\x01\n\x1b\x63om.google.dataflow.v1beta3B\tJobsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Job").msgclass - ServiceResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ServiceResources").msgclass - RuntimeUpdatableParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeUpdatableParams").msgclass - DatastoreIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DatastoreIODetails").msgclass - PubSubIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubSubIODetails").msgclass - FileIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FileIODetails").msgclass - BigTableIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigTableIODetails").msgclass - BigQueryIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.BigQueryIODetails").msgclass - SpannerIODetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SpannerIODetails").msgclass - SdkVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion").msgclass - SdkVersion::SdkSupportStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkVersion.SdkSupportStatus").enummodule - SdkBug = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug").msgclass - SdkBug::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Type").enummodule - SdkBug::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SdkBug.Severity").enummodule - JobMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetadata").msgclass - ExecutionStageState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageState").msgclass - PipelineDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PipelineDescription").msgclass - TransformSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TransformSummary").msgclass - ExecutionStageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary").msgclass - ExecutionStageSummary::StageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.StageSource").msgclass - ExecutionStageSummary::ComponentTransform = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform").msgclass - ExecutionStageSummary::ComponentSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource").msgclass - DisplayData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DisplayData").msgclass - Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Step").msgclass - JobExecutionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionInfo").msgclass - JobExecutionStageInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionStageInfo").msgclass - CreateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobRequest").msgclass - GetJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobRequest").msgclass - UpdateJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.UpdateJobRequest").msgclass - ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest").msgclass - ListJobsRequest::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsRequest.Filter").enummodule - FailedLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FailedLocation").msgclass - ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobsResponse").msgclass - SnapshotJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotJobRequest").msgclass - CheckActiveJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsRequest").msgclass - CheckActiveJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CheckActiveJobsResponse").msgclass - KindType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KindType").enummodule - JobState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobState").enummodule - JobView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobView").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb deleted file mode 100644 index 1d285f980ae8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/jobs_services_pb.rb +++ /dev/null @@ -1,93 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/jobs.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/jobs_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module JobsV1Beta3 - # Provides a method to create and modify Dataflow jobs. - # A Job is a multi-stage computation graph run by the Dataflow service. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.JobsV1Beta3' - - # Creates a Dataflow job. - # - # To create a job, we recommend using `projects.locations.jobs.create` with a - # [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.create` is not recommended, as your job will always start - # in `us-central1`. - # - # Do not enter confidential information when you supply string values using - # the API. - rpc :CreateJob, ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # Gets the state of the specified Cloud Dataflow job. - # - # To get the state of a job, we recommend using `projects.locations.jobs.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.get` is not recommended, as you can only get the state of - # jobs that are running in `us-central1`. - rpc :GetJob, ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # Updates the state of an existing Cloud Dataflow job. - # - # To update the state of an existing job, we recommend using - # `projects.locations.jobs.update` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.update` is not recommended, as you can only update the state - # of jobs that are running in `us-central1`. - rpc :UpdateJob, ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # List the jobs of a project. - # - # To list the jobs of a project in a region, we recommend using - # `projects.locations.jobs.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - # list the all jobs across all regions, use `projects.jobs.aggregated`. Using - # `projects.jobs.list` is not recommended, because you can only get the list - # of jobs that are running in `us-central1`. - # - # `projects.locations.jobs.list` and `projects.jobs.list` support filtering - # the list of jobs by name. Filtering by name isn't supported by - # `projects.jobs.aggregated`. - rpc :ListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse - # List the jobs of a project across all regions. - # - # **Note:** This method doesn't support filtering the list of - # jobs by name. - rpc :AggregatedListJobs, ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse - # Check for existence of active jobs in the given project across all regions. - rpc :CheckActiveJobs, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse - # Snapshot the state of a streaming job. - rpc :SnapshotJob, ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb deleted file mode 100644 index ff480b37c746..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/messages.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/protobuf/struct_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n&google/dataflow/v1beta3/messages.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x01\n\nJobMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cmessage_text\x18\x03 \x01(\t\x12I\n\x12message_importance\x18\x04 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\"\xc9\x01\n\x11StructuredMessage\x12\x14\n\x0cmessage_text\x18\x01 \x01(\t\x12\x13\n\x0bmessage_key\x18\x02 \x01(\t\x12H\n\nparameters\x18\x03 \x03(\x0b\x32\x34.google.dataflow.v1beta3.StructuredMessage.Parameter\x1a?\n\tParameter\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\"\xb1\x03\n\x10\x41utoscalingEvent\x12\x1b\n\x13\x63urrent_num_workers\x18\x01 \x01(\x03\x12\x1a\n\x12target_num_workers\x18\x02 \x01(\x03\x12R\n\nevent_type\x18\x03 \x01(\x0e\x32>.google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType\x12?\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32*.google.dataflow.v1beta3.StructuredMessage\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_pool\x18\x07 \x01(\t\"\x8f\x01\n\x14\x41utoscalingEventType\x12\x10\n\x0cTYPE_UNKNOWN\x10\x00\x12\x1e\n\x1aTARGET_NUM_WORKERS_CHANGED\x10\x01\x12\x1f\n\x1b\x43URRENT_NUM_WORKERS_CHANGED\x10\x02\x12\x15\n\x11\x41\x43TUATION_FAILURE\x10\x03\x12\r\n\tNO_CHANGE\x10\x04\"\x9e\x02\n\x16ListJobMessagesRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12I\n\x12minimum_importance\x18\x03 \x01(\x0e\x32-.google.dataflow.v1beta3.JobMessageImportance\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\x12.\n\nstart_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x08 \x01(\t\"\xb4\x01\n\x17ListJobMessagesResponse\x12\x39\n\x0cjob_messages\x18\x01 \x03(\x0b\x32#.google.dataflow.v1beta3.JobMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x45\n\x12\x61utoscaling_events\x18\x03 \x03(\x0b\x32).google.dataflow.v1beta3.AutoscalingEvent*\xb2\x01\n\x14JobMessageImportance\x12\"\n\x1eJOB_MESSAGE_IMPORTANCE_UNKNOWN\x10\x00\x12\x15\n\x11JOB_MESSAGE_DEBUG\x10\x01\x12\x18\n\x14JOB_MESSAGE_DETAILED\x10\x02\x12\x15\n\x11JOB_MESSAGE_BASIC\x10\x05\x12\x17\n\x13JOB_MESSAGE_WARNING\x10\x03\x12\x15\n\x11JOB_MESSAGE_ERROR\x10\x04\x32\x85\x03\n\x0fMessagesV1Beta3\x12\xfc\x01\n\x0fListJobMessages\x12/.google.dataflow.v1beta3.ListJobMessagesRequest\x1a\x30.google.dataflow.v1beta3.ListJobMessagesResponse\"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12G/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messagesZ4\x12\x32/v1b3/projects/{project_id}/jobs/{job_id}/messages\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd0\x01\n\x1b\x63om.google.dataflow.v1beta3B\rMessagesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - JobMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessage").msgclass - StructuredMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage").msgclass - StructuredMessage::Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StructuredMessage.Parameter").msgclass - AutoscalingEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent").msgclass - AutoscalingEvent::AutoscalingEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType").enummodule - ListJobMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesRequest").msgclass - ListJobMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListJobMessagesResponse").msgclass - JobMessageImportance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMessageImportance").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb deleted file mode 100644 index 7e765d1339f9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/messages_services_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/messages.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/messages_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module MessagesV1Beta3 - # The Dataflow Messages API is used to monitor the progress of Dataflow jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.MessagesV1Beta3' - - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.messages.list` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.messages.list` is not recommended, as you can only request - # the status of jobs that are running in `us-central1`. - rpc :ListJobMessages, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb deleted file mode 100644 index e1bad2b6d432..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_pb.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/metrics.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/struct_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n%google/dataflow/v1beta3/metrics.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x14MetricStructuredName\x12\x0e\n\x06origin\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12K\n\x07\x63ontext\x18\x03 \x03(\x0b\x32:.google.dataflow.v1beta3.MetricStructuredName.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x04\n\x0cMetricUpdate\x12;\n\x04name\x18\x01 \x01(\x0b\x32-.google.dataflow.v1beta3.MetricStructuredName\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x12\n\ncumulative\x18\x03 \x01(\x08\x12&\n\x06scalar\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08mean_sum\x18\x05 \x01(\x0b\x32\x16.google.protobuf.Value\x12*\n\nmean_count\x18\x06 \x01(\x0b\x32\x16.google.protobuf.Value\x12#\n\x03set\x18\x07 \x01(\x0b\x32\x16.google.protobuf.Value\x12$\n\x04trie\x18\r \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x62ounded_trie\x18\x0e \x01(\x0b\x32\x16.google.protobuf.Value\x12,\n\x0c\x64istribution\x18\x0b \x01(\x0b\x32\x16.google.protobuf.Value\x12%\n\x05gauge\x18\x0c \x01(\x0b\x32\x16.google.protobuf.Value\x12(\n\x08internal\x18\x08 \x01(\x0b\x32\x16.google.protobuf.Value\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"|\n\x14GetJobMetricsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08location\x18\x04 \x01(\t\"u\n\nJobMetrics\x12/\n\x0bmetric_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x07metrics\x18\x02 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\"|\n\x1dGetJobExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"\xb8\x01\n\x12ProgressTimeseries\x12\x18\n\x10\x63urrent_progress\x18\x01 \x01(\x01\x12\x46\n\x0b\x64\x61ta_points\x18\x02 \x03(\x0b\x32\x31.google.dataflow.v1beta3.ProgressTimeseries.Point\x1a@\n\x05Point\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05value\x18\x02 \x01(\x01\"\xee\x02\n\rStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x06\x63\x61uses\x18\x02 \x03(\x0b\x32\x32.google.dataflow.v1beta3.StragglerInfo.CausesEntry\x1a{\n\x16StragglerDebuggingInfo\x12?\n\x07hot_key\x18\x01 \x01(\x0b\x32,.google.dataflow.v1beta3.HotKeyDebuggingInfoH\x00\x42 \n\x1estraggler_debugging_info_value\x1al\n\x0b\x43\x61usesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo:\x02\x38\x01\"\xfb\x01\n\x16StreamingStragglerInfo\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bworker_name\x18\x03 \x01(\t\x12\x35\n\x12\x64\x61ta_watermark_lag\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14system_watermark_lag\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xb0\x01\n\tStraggler\x12\x41\n\x0f\x62\x61tch_straggler\x18\x01 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfoH\x00\x12N\n\x13streaming_straggler\x18\x02 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStragglerInfoH\x00\x42\x10\n\x0estraggler_info\"\xc6\x02\n\x13HotKeyDebuggingInfo\x12\\\n\x11\x64\x65tected_hot_keys\x18\x01 \x03(\x0b\x32\x41.google.dataflow.v1beta3.HotKeyDebuggingInfo.DetectedHotKeysEntry\x1a`\n\nHotKeyInfo\x12.\n\x0bhot_key_age\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0b\n\x03key\x18\x02 \x01(\t\x12\x15\n\rkey_truncated\x18\x03 \x01(\x08\x1ao\n\x14\x44\x65tectedHotKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\x04\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo:\x02\x38\x01\"\x8f\x02\n\x10StragglerSummary\x12\x1d\n\x15total_straggler_count\x18\x01 \x01(\x03\x12\x61\n\x15straggler_cause_count\x18\x02 \x03(\x0b\x32\x42.google.dataflow.v1beta3.StragglerSummary.StragglerCauseCountEntry\x12=\n\x11recent_stragglers\x18\x03 \x03(\x0b\x32\".google.dataflow.v1beta3.Straggler\x1a:\n\x18StragglerCauseCountEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\xf3\x02\n\x0cStageSummary\x12\x10\n\x08stage_id\x18\x01 \x01(\t\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x08progress\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x06 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12\x44\n\x11straggler_summary\x18\x07 \x01(\x0b\x32).google.dataflow.v1beta3.StragglerSummary\"e\n\x13JobExecutionDetails\x12\x35\n\x06stages\x18\x01 \x03(\x0b\x32%.google.dataflow.v1beta3.StageSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xee\x01\n\x1fGetStageExecutionDetailsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x10\n\x08stage_id\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x83\x03\n\x0fWorkItemDetails\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x12\n\nattempt_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x05state\x18\x05 \x01(\x0e\x32\'.google.dataflow.v1beta3.ExecutionState\x12=\n\x08progress\x18\x06 \x01(\x0b\x32+.google.dataflow.v1beta3.ProgressTimeseries\x12\x36\n\x07metrics\x18\x07 \x03(\x0b\x32%.google.dataflow.v1beta3.MetricUpdate\x12>\n\x0estraggler_info\x18\x08 \x01(\x0b\x32&.google.dataflow.v1beta3.StragglerInfo\"b\n\rWorkerDetails\x12\x13\n\x0bworker_name\x18\x01 \x01(\t\x12<\n\nwork_items\x18\x02 \x03(\x0b\x32(.google.dataflow.v1beta3.WorkItemDetails\"i\n\x15StageExecutionDetails\x12\x37\n\x07workers\x18\x01 \x03(\x0b\x32&.google.dataflow.v1beta3.WorkerDetails\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*\xc5\x01\n\x0e\x45xecutionState\x12\x1b\n\x17\x45XECUTION_STATE_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTION_STATE_NOT_STARTED\x10\x01\x12\x1b\n\x17\x45XECUTION_STATE_RUNNING\x10\x02\x12\x1d\n\x19\x45XECUTION_STATE_SUCCEEDED\x10\x03\x12\x1a\n\x16\x45XECUTION_STATE_FAILED\x10\x04\x12\x1d\n\x19\x45XECUTION_STATE_CANCELLED\x10\x05\x32\xbd\x06\n\x0eMetricsV1Beta3\x12\xe9\x01\n\rGetJobMetrics\x12-.google.dataflow.v1beta3.GetJobMetricsRequest\x1a#.google.dataflow.v1beta3.JobMetrics\"\x83\x01\x82\xd3\xe4\x93\x02}\x12\x46/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metricsZ3\x12\x31/v1b3/projects/{project_id}/jobs/{job_id}/metrics\x12\xd7\x01\n\x16GetJobExecutionDetails\x12\x36.google.dataflow.v1beta3.GetJobExecutionDetailsRequest\x1a,.google.dataflow.v1beta3.JobExecutionDetails\"W\x82\xd3\xe4\x93\x02Q\x12O/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails\x12\xef\x01\n\x18GetStageExecutionDetails\x12\x38.google.dataflow.v1beta3.GetStageExecutionDetailsRequest\x1a..google.dataflow.v1beta3.StageExecutionDetails\"i\x82\xd3\xe4\x93\x02\x63\x12\x61/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xcf\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0cMetricsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - MetricStructuredName = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricStructuredName").msgclass - MetricUpdate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MetricUpdate").msgclass - GetJobMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobMetricsRequest").msgclass - JobMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobMetrics").msgclass - GetJobExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetJobExecutionDetailsRequest").msgclass - ProgressTimeseries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries").msgclass - ProgressTimeseries::Point = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ProgressTimeseries.Point").msgclass - StragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo").msgclass - StragglerInfo::StragglerDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerInfo.StragglerDebuggingInfo").msgclass - StreamingStragglerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStragglerInfo").msgclass - Straggler = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Straggler").msgclass - HotKeyDebuggingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo").msgclass - HotKeyDebuggingInfo::HotKeyInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.HotKeyDebuggingInfo.HotKeyInfo").msgclass - StragglerSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StragglerSummary").msgclass - StageSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageSummary").msgclass - JobExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.JobExecutionDetails").msgclass - GetStageExecutionDetailsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetStageExecutionDetailsRequest").msgclass - WorkItemDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkItemDetails").msgclass - WorkerDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.WorkerDetails").msgclass - StageExecutionDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StageExecutionDetails").msgclass - ExecutionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ExecutionState").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb deleted file mode 100644 index 37678edc27d1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/metrics_services_pb.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/metrics.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/metrics_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module MetricsV1Beta3 - # The Dataflow Metrics API lets you monitor the progress of Dataflow jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.MetricsV1Beta3' - - # Request the job status. - # - # To request the status of a job, we recommend using - # `projects.locations.jobs.getMetrics` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.jobs.getMetrics` is not recommended, as you can only request the - # status of jobs that are running in `us-central1`. - rpc :GetJobMetrics, ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, ::Google::Cloud::Dataflow::V1beta3::JobMetrics - # Request detailed information about the execution status of the job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - rpc :GetJobExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails - # Request detailed information about the execution status of a stage of the - # job. - # - # EXPERIMENTAL. This API is subject to change or removal without notice. - rpc :GetStageExecutionDetails, ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb deleted file mode 100644 index bba6c31a5430..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/snapshots.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n\'google/dataflow/v1beta3/snapshots.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x16PubsubSnapshotMetadata\x12\x12\n\ntopic_name\x18\x01 \x01(\t\x12\x15\n\rsnapshot_name\x18\x02 \x01(\t\x12/\n\x0b\x65xpire_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdb\x02\n\x08Snapshot\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x15\n\rsource_job_id\x18\x03 \x01(\t\x12\x31\n\rcreation_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x03ttl\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x05state\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.SnapshotState\x12H\n\x0fpubsub_metadata\x18\x07 \x03(\x0b\x32/.google.dataflow.v1beta3.PubsubSnapshotMetadata\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12\x17\n\x0f\x64isk_size_bytes\x18\t \x01(\x03\x12\x0e\n\x06region\x18\n \x01(\t\"O\n\x12GetSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"R\n\x15\x44\x65leteSnapshotRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x02 \x01(\t\x12\x10\n\x08location\x18\x03 \x01(\t\"\x18\n\x16\x44\x65leteSnapshotResponse\"L\n\x14ListSnapshotsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x02 \x01(\t\"M\n\x15ListSnapshotsResponse\x12\x34\n\tsnapshots\x18\x01 \x03(\x0b\x32!.google.dataflow.v1beta3.Snapshot*i\n\rSnapshotState\x12\x1a\n\x16UNKNOWN_SNAPSHOT_STATE\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\t\n\x05READY\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x32\x8d\x07\n\x10SnapshotsV1Beta3\x12\xe8\x01\n\x0bGetSnapshot\x12+.google.dataflow.v1beta3.GetSnapshotRequest\x1a!.google.dataflow.v1beta3.Snapshot\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01\x12H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z5\x12\x33/v1b3/projects/{project_id}/snapshots/{snapshot_id}\x12\xec\x01\n\x0e\x44\x65leteSnapshot\x12..google.dataflow.v1beta3.DeleteSnapshotRequest\x1a/.google.dataflow.v1beta3.DeleteSnapshotResponse\"y\x82\xd3\xe4\x93\x02s*H/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}Z\'*%/v1b3/projects/{project_id}/snapshots\x12\xa9\x02\n\rListSnapshots\x12-.google.dataflow.v1beta3.ListSnapshotsRequest\x1a..google.dataflow.v1beta3.ListSnapshotsResponse\"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01\x12H/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshotsZ<\x12:/v1b3/projects/{project_id}/locations/{location}/snapshotsZ\'\x12%/v1b3/projects/{project_id}/snapshots\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eSnapshotsProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - PubsubSnapshotMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubSnapshotMetadata").msgclass - Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.Snapshot").msgclass - GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetSnapshotRequest").msgclass - DeleteSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotRequest").msgclass - DeleteSnapshotResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DeleteSnapshotResponse").msgclass - ListSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsRequest").msgclass - ListSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ListSnapshotsResponse").msgclass - SnapshotState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SnapshotState").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb deleted file mode 100644 index 203fdccc8bc2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/snapshots_services_pb.rb +++ /dev/null @@ -1,49 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/snapshots.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/snapshots_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module SnapshotsV1Beta3 - # Provides methods to manage snapshots of Google Cloud Dataflow jobs. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.SnapshotsV1Beta3' - - # Gets information about a snapshot. - rpc :GetSnapshot, ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::Snapshot - # Deletes a snapshot. - rpc :DeleteSnapshot, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse - # Lists snapshots. - rpc :ListSnapshots, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb deleted file mode 100644 index 0b21c1fea7c4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/streaming_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/streaming.proto - -require 'google/protobuf' - - -descriptor_data = "\n\'google/dataflow/v1beta3/streaming.proto\x12\x17google.dataflow.v1beta3\"\x9d\x03\n\x0eTopologyConfig\x12\x42\n\x0c\x63omputations\x18\x01 \x03(\x0b\x32,.google.dataflow.v1beta3.ComputationTopology\x12J\n\x15\x64\x61ta_disk_assignments\x18\x02 \x03(\x0b\x32+.google.dataflow.v1beta3.DataDiskAssignment\x12v\n\"user_stage_to_computation_name_map\x18\x03 \x03(\x0b\x32J.google.dataflow.v1beta3.TopologyConfig.UserStageToComputationNameMapEntry\x12\x1b\n\x13\x66orwarding_key_bits\x18\x04 \x01(\x05\x12 \n\x18persistent_state_version\x18\x05 \x01(\x05\x1a\x44\n\"UserStageToComputationNameMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xce\x01\n\x0ePubsubLocation\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x14\n\x0csubscription\x18\x02 \x01(\t\x12\x17\n\x0ftimestamp_label\x18\x03 \x01(\t\x12\x10\n\x08id_label\x18\x04 \x01(\t\x12\x16\n\x0e\x64rop_late_data\x18\x05 \x01(\x08\x12\x1d\n\x15tracking_subscription\x18\x06 \x01(\t\x12\x17\n\x0fwith_attributes\x18\x07 \x01(\x08\x12\x1c\n\x14\x64ynamic_destinations\x18\x08 \x01(\x08\"+\n\x16StreamingStageLocation\x12\x11\n\tstream_id\x18\x01 \x01(\t\"?\n\x1aStreamingSideInputLocation\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\x14\n\x0cstate_family\x18\x02 \x01(\t\"(\n\x14\x43ustomSourceLocation\x12\x10\n\x08stateful\x18\x01 \x01(\x08\"\xda\x02\n\x0eStreamLocation\x12S\n\x18streaming_stage_location\x18\x01 \x01(\x0b\x32/.google.dataflow.v1beta3.StreamingStageLocationH\x00\x12\x42\n\x0fpubsub_location\x18\x02 \x01(\x0b\x32\'.google.dataflow.v1beta3.PubsubLocationH\x00\x12R\n\x13side_input_location\x18\x03 \x01(\x0b\x32\x33.google.dataflow.v1beta3.StreamingSideInputLocationH\x00\x12O\n\x16\x63ustom_source_location\x18\x04 \x01(\x0b\x32-.google.dataflow.v1beta3.CustomSourceLocationH\x00\x42\n\n\x08location\":\n\x11StateFamilyConfig\x12\x14\n\x0cstate_family\x18\x01 \x01(\t\x12\x0f\n\x07is_read\x18\x02 \x01(\x08\"\xbe\x02\n\x13\x43omputationTopology\x12\x19\n\x11system_stage_name\x18\x01 \x01(\t\x12\x16\n\x0e\x63omputation_id\x18\x05 \x01(\t\x12=\n\nkey_ranges\x18\x02 \x03(\x0b\x32).google.dataflow.v1beta3.KeyRangeLocation\x12\x37\n\x06inputs\x18\x03 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x38\n\x07outputs\x18\x04 \x03(\x0b\x32\'.google.dataflow.v1beta3.StreamLocation\x12\x42\n\x0estate_families\x18\x07 \x03(\x0b\x32*.google.dataflow.v1beta3.StateFamilyConfig\"\x89\x01\n\x10KeyRangeLocation\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x19\n\x11\x64\x65livery_endpoint\x18\x03 \x01(\t\x12\x11\n\tdata_disk\x18\x05 \x01(\t\x12+\n\x1f\x64\x65precated_persistent_directory\x18\x04 \x01(\tB\x02\x18\x01\"$\n\x0fMountedDataDisk\x12\x11\n\tdata_disk\x18\x01 \x01(\t\"=\n\x12\x44\x61taDiskAssignment\x12\x13\n\x0bvm_instance\x18\x01 \x01(\t\x12\x12\n\ndata_disks\x18\x02 \x03(\t\"K\n\x1aKeyRangeDataDiskAssignment\x12\r\n\x05start\x18\x01 \x01(\t\x12\x0b\n\x03\x65nd\x18\x02 \x01(\t\x12\x11\n\tdata_disk\x18\x03 \x01(\t\"\x84\x01\n\x1aStreamingComputationRanges\x12\x16\n\x0e\x63omputation_id\x18\x01 \x01(\t\x12N\n\x11range_assignments\x18\x02 \x03(\x0b\x32\x33.google.dataflow.v1beta3.KeyRangeDataDiskAssignment\"V\n StreamingApplianceSnapshotConfig\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x1d\n\x15import_state_endpoint\x18\x02 \x01(\tB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eStreamingProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - TopologyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TopologyConfig").msgclass - PubsubLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.PubsubLocation").msgclass - StreamingStageLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingStageLocation").msgclass - StreamingSideInputLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingSideInputLocation").msgclass - CustomSourceLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CustomSourceLocation").msgclass - StreamLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamLocation").msgclass - StateFamilyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StateFamilyConfig").msgclass - ComputationTopology = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ComputationTopology").msgclass - KeyRangeLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeLocation").msgclass - MountedDataDisk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.MountedDataDisk").msgclass - DataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DataDiskAssignment").msgclass - KeyRangeDataDiskAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.KeyRangeDataDiskAssignment").msgclass - StreamingComputationRanges = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingComputationRanges").msgclass - StreamingApplianceSnapshotConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.StreamingApplianceSnapshotConfig").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb deleted file mode 100644 index ee47d7a44b6f..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_pb.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/dataflow/v1beta3/templates.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/dataflow/v1beta3/environment_pb' -require 'google/dataflow/v1beta3/jobs_pb' -require 'google/rpc/status_pb' - - -descriptor_data = "\n\'google/dataflow/v1beta3/templates.proto\x12\x17google.dataflow.v1beta3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a)google/dataflow/v1beta3/environment.proto\x1a\"google/dataflow/v1beta3/jobs.proto\x1a\x17google/rpc/status.proto\"G\n\x1aLaunchFlexTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xe3\x02\n\rContainerSpec\x12\r\n\x05image\x18\x01 \x01(\t\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12\x32\n\x08sdk_info\x18\x03 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12T\n\x13\x64\x65\x66\x61ult_environment\x18\x04 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12+\n#image_repository_username_secret_id\x18\x05 \x01(\t\x12+\n#image_repository_password_secret_id\x18\x06 \x01(\t\x12\"\n\x1aimage_repository_cert_path\x18\x07 \x01(\t\"\xd2\x05\n\x1bLaunchFlexTemplateParameter\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12@\n\x0e\x63ontainer_spec\x18\x04 \x01(\x0b\x32&.google.dataflow.v1beta3.ContainerSpecH\x00\x12!\n\x17\x63ontainer_spec_gcs_path\x18\x05 \x01(\tH\x00\x12X\n\nparameters\x18\x02 \x03(\x0b\x32\x44.google.dataflow.v1beta3.LaunchFlexTemplateParameter.ParametersEntry\x12_\n\x0elaunch_options\x18\x06 \x03(\x0b\x32G.google.dataflow.v1beta3.LaunchFlexTemplateParameter.LaunchOptionsEntry\x12L\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\x37.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment\x12\x0e\n\x06update\x18\x08 \x01(\x08\x12p\n\x17transform_name_mappings\x18\t \x03(\x0b\x32O.google.dataflow.v1beta3.LaunchFlexTemplateParameter.TransformNameMappingsEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12LaunchOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a<\n\x1aTransformNameMappingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc7\x08\n\x1e\x46lexTemplateRuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x01 \x01(\x05\x12\x13\n\x0bmax_workers\x18\x02 \x01(\x05\x12\x0c\n\x04zone\x18\x03 \x01(\t\x12\x1d\n\x15service_account_email\x18\x04 \x01(\t\x12\x15\n\rtemp_location\x18\x05 \x01(\t\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12q\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32Q.google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0b \x01(\t\x12O\n\x10ip_configuration\x18\x0c \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\r \x01(\t\x12\x13\n\x0bworker_zone\x18\x0e \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x0f \x01(\x08\x12H\n\x0b\x66lexrs_goal\x18\x10 \x01(\x0e\x32\x33.google.dataflow.v1beta3.FlexResourceSchedulingGoal\x12\x18\n\x10staging_location\x18\x11 \x01(\t\x12\x1b\n\x13sdk_container_image\x18\x12 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x14 \x01(\x05\x12L\n\x15\x61utoscaling_algorithm\x18\x15 \x01(\x0e\x32-.google.dataflow.v1beta3.AutoscalingAlgorithm\x12\x18\n\x10\x64ump_heap_on_oom\x18\x16 \x01(\x08\x12#\n\x1bsave_heap_dumps_to_gcs_path\x18\x17 \x01(\t\x12\x1d\n\x15launcher_machine_type\x18\x18 \x01(\t\x12.\n&enable_launcher_vm_serial_port_logging\x18\x19 \x01(\x08\x12H\n\x0estreaming_mode\x18\x1a \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x1b \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"\xa8\x01\n\x19LaunchFlexTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12N\n\x10launch_parameter\x18\x02 \x01(\x0b\x32\x34.google.dataflow.v1beta3.LaunchFlexTemplateParameter\x12\x10\n\x08location\x18\x03 \x01(\t\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x05\n\x12RuntimeEnvironment\x12\x13\n\x0bnum_workers\x18\x0b \x01(\x05\x12\x13\n\x0bmax_workers\x18\x01 \x01(\x05\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x1d\n\x15service_account_email\x18\x03 \x01(\t\x12\x15\n\rtemp_location\x18\x04 \x01(\t\x12\"\n\x1a\x62ypass_temp_dir_validation\x18\x05 \x01(\x08\x12\x14\n\x0cmachine_type\x18\x06 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_experiments\x18\x07 \x03(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x12\n\nsubnetwork\x18\t \x01(\t\x12\x65\n\x16\x61\x64\x64itional_user_labels\x18\n \x03(\x0b\x32\x45.google.dataflow.v1beta3.RuntimeEnvironment.AdditionalUserLabelsEntry\x12\x14\n\x0ckms_key_name\x18\x0c \x01(\t\x12O\n\x10ip_configuration\x18\x0e \x01(\x0e\x32\x35.google.dataflow.v1beta3.WorkerIPAddressConfiguration\x12\x15\n\rworker_region\x18\x0f \x01(\t\x12\x13\n\x0bworker_zone\x18\x10 \x01(\t\x12\x1f\n\x17\x65nable_streaming_engine\x18\x11 \x01(\x08\x12\x14\n\x0c\x64isk_size_gb\x18\x12 \x01(\x05\x12H\n\x0estreaming_mode\x18\x13 \x01(\x0e\x32&.google.dataflow.v1beta3.StreamingModeB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x1b\x61\x64\x64itional_pipeline_options\x18\x14 \x03(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41\x64\x64itionalUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x11\n\x0f_streaming_mode\"_\n\x1bParameterMetadataEnumOption\x12\x12\n\x05value\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05label\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xf3\x03\n\x11ParameterMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x11\n\thelp_text\x18\x03 \x01(\t\x12\x13\n\x0bis_optional\x18\x04 \x01(\x08\x12\x0f\n\x07regexes\x18\x05 \x03(\t\x12:\n\nparam_type\x18\x06 \x01(\x0e\x32&.google.dataflow.v1beta3.ParameterType\x12W\n\x0f\x63ustom_metadata\x18\x07 \x03(\x0b\x32>.google.dataflow.v1beta3.ParameterMetadata.CustomMetadataEntry\x12\x12\n\ngroup_name\x18\x08 \x01(\t\x12\x13\n\x0bparent_name\x18\t \x01(\t\x12\x1d\n\x15parent_trigger_values\x18\n \x03(\t\x12J\n\x0c\x65num_options\x18\x0b \x03(\x0b\x32\x34.google.dataflow.v1beta3.ParameterMetadataEnumOption\x12\x15\n\rdefault_value\x18\x0c \x01(\t\x12\x11\n\thidden_ui\x18\r \x01(\x08\x1a\x35\n\x13\x43ustomMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe7\x01\n\x10TemplateMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12>\n\nparameters\x18\x03 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\x12\x11\n\tstreaming\x18\x05 \x01(\x08\x12\x1e\n\x16supports_at_least_once\x18\x06 \x01(\x08\x12\x1d\n\x15supports_exactly_once\x18\x07 \x01(\x08\x12\x1e\n\x16\x64\x65\x66\x61ult_streaming_mode\x18\x08 \x01(\t\"\x98\x01\n\x07SDKInfo\x12;\n\x08language\x18\x01 \x01(\x0e\x32).google.dataflow.v1beta3.SDKInfo.Language\x12\x0f\n\x07version\x18\x02 \x01(\t\"?\n\x08Language\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\n\n\x06PYTHON\x10\x02\x12\x06\n\x02GO\x10\x03\x12\x08\n\x04YAML\x10\x04\"\x85\x01\n\x0fRuntimeMetadata\x12\x32\n\x08sdk_info\x18\x01 \x01(\x0b\x32 .google.dataflow.v1beta3.SDKInfo\x12>\n\nparameters\x18\x02 \x03(\x0b\x32*.google.dataflow.v1beta3.ParameterMetadata\"\xc6\x02\n\x1c\x43reateJobFromTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08job_name\x18\x04 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12Y\n\nparameters\x18\x03 \x03(\x0b\x32\x45.google.dataflow.v1beta3.CreateJobFromTemplateRequest.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x05 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x10\n\x08location\x18\x06 \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\n\n\x08template\"\xc5\x01\n\x12GetTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x12\n\x08gcs_path\x18\x02 \x01(\tH\x00\x12\x46\n\x04view\x18\x03 \x01(\x0e\x32\x38.google.dataflow.v1beta3.GetTemplateRequest.TemplateView\x12\x10\n\x08location\x18\x04 \x01(\t\"!\n\x0cTemplateView\x12\x11\n\rMETADATA_ONLY\x10\x00\x42\n\n\x08template\"\xbf\x02\n\x13GetTemplateResponse\x12\"\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).google.dataflow.v1beta3.TemplateMetadata\x12P\n\rtemplate_type\x18\x03 \x01(\x0e\x32\x39.google.dataflow.v1beta3.GetTemplateResponse.TemplateType\x12\x42\n\x10runtime_metadata\x18\x04 \x01(\x0b\x32(.google.dataflow.v1beta3.RuntimeMetadata\"1\n\x0cTemplateType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04\x46LEX\x10\x02\"\xb2\x03\n\x18LaunchTemplateParameters\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12U\n\nparameters\x18\x02 \x03(\x0b\x32\x41.google.dataflow.v1beta3.LaunchTemplateParameters.ParametersEntry\x12@\n\x0b\x65nvironment\x18\x03 \x01(\x0b\x32+.google.dataflow.v1beta3.RuntimeEnvironment\x12\x0e\n\x06update\x18\x04 \x01(\x08\x12k\n\x16transform_name_mapping\x18\x05 \x03(\x0b\x32K.google.dataflow.v1beta3.LaunchTemplateParameters.TransformNameMappingEntry\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19TransformNameMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x02\n\x15LaunchTemplateRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x12\n\x08gcs_path\x18\x03 \x01(\tH\x00\x12P\n\x10\x64ynamic_template\x18\x06 \x01(\x0b\x32\x34.google.dataflow.v1beta3.DynamicTemplateLaunchParamsH\x00\x12L\n\x11launch_parameters\x18\x04 \x01(\x0b\x32\x31.google.dataflow.v1beta3.LaunchTemplateParameters\x12\x10\n\x08location\x18\x05 \x01(\tB\n\n\x08template\"C\n\x16LaunchTemplateResponse\x12)\n\x03job\x18\x01 \x01(\x0b\x32\x1c.google.dataflow.v1beta3.Job\"\xbe\x01\n\x19InvalidTemplateParameters\x12\x63\n\x14parameter_violations\x18\x01 \x03(\x0b\x32\x45.google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation\x1a<\n\x12ParameterViolation\x12\x11\n\tparameter\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"I\n\x1b\x44ynamicTemplateLaunchParams\x12\x10\n\x08gcs_path\x18\x01 \x01(\t\x12\x18\n\x10staging_location\x18\x02 \x01(\t*\xbd\x03\n\rParameterType\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\x13\n\x0fGCS_READ_BUCKET\x10\x02\x12\x14\n\x10GCS_WRITE_BUCKET\x10\x03\x12\x11\n\rGCS_READ_FILE\x10\x04\x12\x12\n\x0eGCS_WRITE_FILE\x10\x05\x12\x13\n\x0fGCS_READ_FOLDER\x10\x06\x12\x14\n\x10GCS_WRITE_FOLDER\x10\x07\x12\x10\n\x0cPUBSUB_TOPIC\x10\x08\x12\x17\n\x13PUBSUB_SUBSCRIPTION\x10\t\x12\x12\n\x0e\x42IGQUERY_TABLE\x10\n\x12\x17\n\x13JAVASCRIPT_UDF_FILE\x10\x0b\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x0c\x12\x10\n\x0cMACHINE_TYPE\x10\r\x12\x10\n\x0cKMS_KEY_NAME\x10\x0e\x12\x11\n\rWORKER_REGION\x10\x0f\x12\x0f\n\x0bWORKER_ZONE\x10\x10\x12\x0b\n\x07\x42OOLEAN\x10\x11\x12\x08\n\x04\x45NUM\x10\x12\x12\n\n\x06NUMBER\x10\x13\x12\x13\n\x0bKAFKA_TOPIC\x10\x14\x1a\x02\x08\x01\x12\x14\n\x10KAFKA_READ_TOPIC\x10\x15\x12\x15\n\x11KAFKA_WRITE_TOPIC\x10\x16\x32\xe0\x06\n\x10TemplatesService\x12\xdf\x01\n\x15\x43reateJobFromTemplate\x12\x35.google.dataflow.v1beta3.CreateJobFromTemplateRequest\x1a\x1c.google.dataflow.v1beta3.Job\"q\x82\xd3\xe4\x93\x02k\":/v1b3/projects/{project_id}/locations/{location}/templates:\x01*Z*\"%/v1b3/projects/{project_id}/templates:\x01*\x12\x94\x02\n\x0eLaunchTemplate\x12..google.dataflow.v1beta3.LaunchTemplateRequest\x1a/.google.dataflow.v1beta3.LaunchTemplateResponse\"\xa0\x01\x82\xd3\xe4\x93\x02\x99\x01\"A/v1b3/projects/{project_id}/locations/{location}/templates:launch:\x11launch_parametersZA\",/v1b3/projects/{project_id}/templates:launch:\x11launch_parameters\x12\xdd\x01\n\x0bGetTemplate\x12+.google.dataflow.v1beta3.GetTemplateRequest\x1a,.google.dataflow.v1beta3.GetTemplateResponse\"s\x82\xd3\xe4\x93\x02m\x12>/v1b3/projects/{project_id}/locations/{location}/templates:getZ+\x12)/v1b3/projects/{project_id}/templates:get\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute2\xdd\x02\n\x14\x46lexTemplatesService\x12\xcf\x01\n\x12LaunchFlexTemplate\x12\x32.google.dataflow.v1beta3.LaunchFlexTemplateRequest\x1a\x33.google.dataflow.v1beta3.LaunchFlexTemplateResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch:\x01*\x1as\xca\x41\x17\x64\x61taflow.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xd1\x01\n\x1b\x63om.google.dataflow.v1beta3B\x0eTemplatesProtoP\x01Z=cloud.google.com/go/dataflow/apiv1beta3/dataflowpb;dataflowpb\xaa\x02\x1dGoogle.Cloud.Dataflow.V1Beta3\xca\x02\x1dGoogle\\Cloud\\Dataflow\\V1beta3\xea\x02 Google::Cloud::Dataflow::V1beta3b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module Dataflow - module V1beta3 - LaunchFlexTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateResponse").msgclass - ContainerSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ContainerSpec").msgclass - LaunchFlexTemplateParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateParameter").msgclass - FlexTemplateRuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment").msgclass - LaunchFlexTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchFlexTemplateRequest").msgclass - RuntimeEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeEnvironment").msgclass - ParameterMetadataEnumOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadataEnumOption").msgclass - ParameterMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterMetadata").msgclass - TemplateMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.TemplateMetadata").msgclass - SDKInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo").msgclass - SDKInfo::Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.SDKInfo.Language").enummodule - RuntimeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.RuntimeMetadata").msgclass - CreateJobFromTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.CreateJobFromTemplateRequest").msgclass - GetTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest").msgclass - GetTemplateRequest::TemplateView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateRequest.TemplateView").enummodule - GetTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse").msgclass - GetTemplateResponse::TemplateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.GetTemplateResponse.TemplateType").enummodule - LaunchTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateParameters").msgclass - LaunchTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateRequest").msgclass - LaunchTemplateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.LaunchTemplateResponse").msgclass - InvalidTemplateParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters").msgclass - InvalidTemplateParameters::ParameterViolation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation").msgclass - DynamicTemplateLaunchParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.DynamicTemplateLaunchParams").msgclass - ParameterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.dataflow.v1beta3.ParameterType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb deleted file mode 100644 index 64389dcd989d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/lib/google/dataflow/v1beta3/templates_services_pb.rb +++ /dev/null @@ -1,84 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/dataflow/v1beta3/templates.proto for package 'Google.Cloud.Dataflow.V1beta3' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/dataflow/v1beta3/templates_pb' - -module Google - module Cloud - module Dataflow - module V1beta3 - module TemplatesService - # Provides a method to create Cloud Dataflow jobs from templates. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.TemplatesService' - - # Creates a Cloud Dataflow job from a template. Do not enter confidential - # information when you supply string values using the API. - # - # To create a job, we recommend using `projects.locations.templates.create` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.create` is not recommended, because your job will - # always start in `us-central1`. - rpc :CreateJobFromTemplate, ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::Job - # Launches a template. - # - # To launch a template, we recommend using - # `projects.locations.templates.launch` with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.launch` is not recommended, because jobs launched - # from the template will always start in `us-central1`. - rpc :LaunchTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse - # Get the template associated with a template. - # - # To get the template, we recommend using `projects.locations.templates.get` - # with a [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - # `projects.templates.get` is not recommended, because only - # templates that are running in `us-central1` are retrieved. - rpc :GetTemplate, ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse - end - - Stub = Service.rpc_stub_class - end - module FlexTemplatesService - # Provides a service for Flex templates. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.dataflow.v1beta3.FlexTemplatesService' - - # Launch a job with a FlexTemplate. - rpc :LaunchFlexTemplate, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md deleted file mode 100644 index 98e2b412b7d8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Dataflow V1beta3 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb deleted file mode 100644 index 5089551e9ea4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/client.rb +++ /dev/null @@ -1,589 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb deleted file mode 100644 index feeeae1eab79..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/environment.rb +++ /dev/null @@ -1,682 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Describes the environment in which a Dataflow Job runs. - # @!attribute [rw] temp_storage_prefix - # @return [::String] - # The prefix of the resources the system should use for temporary - # storage. The system will append the suffix "/temp-\\{JOBNAME} to - # this resource prefix, where \\{JOBNAME} is the value of the - # job_name field. The resulting bucket and object prefix is used - # as the prefix of the resources used to store temporary data - # needed during the job execution. NOTE: This will override the - # value in taskrunner_settings. - # The supported resource type is: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] cluster_manager_api_service - # @return [::String] - # The type of cluster manager API to use. If unknown or - # unspecified, the service will attempt to choose a reasonable - # default. This should be in the form of the API service name, - # e.g. "compute.googleapis.com". - # @!attribute [rw] experiments - # @return [::Array<::String>] - # The list of experiments to enable. This field should be used for SDK - # related experiments and not for service related experiments. The proper - # field for service related experiments is service_options. - # @!attribute [rw] service_options - # @return [::Array<::String>] - # Optional. The list of service options to enable. This field should be used - # for service related experiments only. These experiments, when graduating to - # GA, should be replaced by dedicated fields or become default (i.e. always - # on). - # @!attribute [rw] service_kms_key_name - # @return [::String] - # Optional. If set, contains the Cloud KMS key identifier used to encrypt - # data at rest, AKA a Customer Managed Encryption Key (CMEK). - # - # Format: - # projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - # @!attribute [rw] worker_pools - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerPool>] - # The worker pools. At least one "harness" worker pool must be - # specified in order for the job to have workers. - # @!attribute [rw] user_agent - # @return [::Google::Protobuf::Struct] - # Optional. A description of the process that generated the request. - # @!attribute [rw] version - # @return [::Google::Protobuf::Struct] - # A structure describing which components and their versions of the service - # are required in order to run the job. - # @!attribute [rw] dataset - # @return [::String] - # Optional. The dataset for the current project where various workflow - # related tables are stored. - # - # The supported resource type is: - # - # Google BigQuery: - # bigquery.googleapis.com/\\{dataset} - # @!attribute [rw] sdk_pipeline_options - # @return [::Google::Protobuf::Struct] - # The Cloud Dataflow SDK pipeline options specified by the user. These - # options are passed through the service and are used to recreate the - # SDK pipeline options on the worker in a language agnostic and platform - # independent way. - # @!attribute [rw] internal_experiments - # @return [::Google::Protobuf::Any] - # Experimental settings. - # @!attribute [rw] service_account_email - # @return [::String] - # Optional. Identity to run virtual machines as. Defaults to the default - # account. - # @!attribute [rw] flex_resource_scheduling_goal - # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] - # Optional. Which Flexible Resource Scheduling mode to run in. - # @!attribute [rw] worker_region - # @return [::String] - # Optional. The Compute Engine region - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1". Mutually exclusive - # with worker_zone. If neither worker_region nor worker_zone is specified, - # default to the control plane's region. - # @!attribute [rw] worker_zone - # @return [::String] - # Optional. The Compute Engine zone - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - # with worker_region. If neither worker_region nor worker_zone is specified, - # a zone in the control plane's region is chosen based on available capacity. - # @!attribute [r] shuffle_mode - # @return [::Google::Cloud::Dataflow::V1beta3::ShuffleMode] - # Output only. The shuffle mode used for the job. - # @!attribute [rw] debug_options - # @return [::Google::Cloud::Dataflow::V1beta3::DebugOptions] - # Optional. Any debugging options to be supplied to the job. - # @!attribute [r] use_streaming_engine_resource_based_billing - # @return [::Boolean] - # Output only. Whether the job uses the Streaming Engine resource-based - # billing model. - # @!attribute [rw] streaming_mode - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] - # Optional. Specifies the Streaming Engine message processing guarantees. - # Reduces cost and latency but might result in duplicate messages committed - # to storage. Designed to run simple mapping streaming ETL jobs at the lowest - # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - # @!attribute [rw] use_public_ips - # @return [::Boolean] - # Optional. True when any worker pool that uses public IPs is present. - class Environment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The packages that must be installed in order for a worker to run the - # steps of the Cloud Dataflow job that will be assigned to its worker - # pool. - # - # This is the mechanism by which the Cloud Dataflow SDK causes code to - # be loaded onto the workers. For example, the Cloud Dataflow Java SDK - # might use this to install jars containing the user's code and all of the - # various dependencies (libraries, data files, etc.) required in order - # for that code to run. - # @!attribute [rw] name - # @return [::String] - # The name of the package. - # @!attribute [rw] location - # @return [::String] - # The resource to read the package from. The supported resource type is: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket} - # bucket.storage.googleapis.com/ - # @!attribute [rw] sha256 - # @return [::String] - # Optional. The hex-encoded SHA256 checksum of the package. - # If the checksum is provided, the worker will verify the checksum of the - # package before using it. If the checksum does not match, the worker will - # fail to start. - class Package - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes the data disk used by a workflow job. - # @!attribute [rw] size_gb - # @return [::Integer] - # Size of disk in GB. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] disk_type - # @return [::String] - # Disk storage type, as defined by Google Compute Engine. This - # must be a disk type appropriate to the project and zone in which - # the workers will run. If unknown or unspecified, the service - # will attempt to choose a reasonable default. - # - # For example, the standard persistent disk type is a resource name - # typically ending in "pd-standard". If SSD persistent disks are - # available, the resource name typically ends with "pd-ssd". The - # actual valid values are defined the Google Compute Engine API, - # not by the Cloud Dataflow API; consult the Google Compute Engine - # documentation for more information about determining the set of - # available disk types for a particular project and zone. - # - # Google Compute Engine Disk types are local to a particular - # project in a particular zone, and so the resource name will - # typically look something like this: - # - # compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - # @!attribute [rw] mount_point - # @return [::String] - # Directory in a VM where disk is mounted. - class Disk - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Provides data to pass through to the worker harness. - # @!attribute [rw] base_url - # @return [::String] - # The base URL for accessing Google Cloud APIs. - # - # When workers access Google Cloud APIs, they logically do so via - # relative URLs. If this field is specified, it supplies the base - # URL to use for resolving these relative URLs. The normative - # algorithm used is defined by RFC 1808, "Relative Uniform Resource - # Locators". - # - # If not specified, the default value is "http://www.googleapis.com/" - # @!attribute [rw] reporting_enabled - # @return [::Boolean] - # Whether to send work progress updates to the service. - # @!attribute [rw] service_path - # @return [::String] - # The Cloud Dataflow service path relative to the root URL, for example, - # "dataflow/v1b3/projects". - # @!attribute [rw] shuffle_service_path - # @return [::String] - # The Shuffle service path relative to the root URL, for example, - # "shuffle/v1beta1". - # @!attribute [rw] worker_id - # @return [::String] - # The ID of the worker running this pipeline. - # @!attribute [rw] temp_storage_prefix - # @return [::String] - # The prefix of the resources the system should use for temporary - # storage. - # - # The supported resource type is: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - class WorkerSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Taskrunner configuration settings. - # @!attribute [rw] task_user - # @return [::String] - # The UNIX user ID on the worker VM to use for tasks launched by - # taskrunner; e.g. "root". - # @!attribute [rw] task_group - # @return [::String] - # The UNIX group ID on the worker VM to use for tasks launched by - # taskrunner; e.g. "wheel". - # @!attribute [rw] oauth_scopes - # @return [::Array<::String>] - # The OAuth2 scopes to be requested by the taskrunner in order to - # access the Cloud Dataflow API. - # @!attribute [rw] base_url - # @return [::String] - # The base URL for the taskrunner to use when accessing Google Cloud APIs. - # - # When workers access Google Cloud APIs, they logically do so via - # relative URLs. If this field is specified, it supplies the base - # URL to use for resolving these relative URLs. The normative - # algorithm used is defined by RFC 1808, "Relative Uniform Resource - # Locators". - # - # If not specified, the default value is "http://www.googleapis.com/" - # @!attribute [rw] dataflow_api_version - # @return [::String] - # The API version of endpoint, e.g. "v1b3" - # @!attribute [rw] parallel_worker_settings - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerSettings] - # The settings to pass to the parallel worker harness. - # @!attribute [rw] base_task_dir - # @return [::String] - # The location on the worker for task-specific subdirectories. - # @!attribute [rw] continue_on_exception - # @return [::Boolean] - # Whether to continue taskrunner if an exception is hit. - # @!attribute [rw] log_to_serialconsole - # @return [::Boolean] - # Whether to send taskrunner log info to Google Compute Engine VM serial - # console. - # @!attribute [rw] alsologtostderr - # @return [::Boolean] - # Whether to also send taskrunner log info to stderr. - # @!attribute [rw] log_upload_location - # @return [::String] - # Indicates where to put logs. If this is not specified, the logs - # will not be uploaded. - # - # The supported resource type is: - # - # Google Cloud Storage: - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] log_dir - # @return [::String] - # The directory on the VM to store logs. - # @!attribute [rw] temp_storage_prefix - # @return [::String] - # The prefix of the resources the taskrunner should use for - # temporary storage. - # - # The supported resource type is: - # - # Google Cloud Storage: - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] harness_command - # @return [::String] - # The command to launch the worker harness. - # @!attribute [rw] workflow_file_name - # @return [::String] - # The file to store the workflow in. - # @!attribute [rw] commandlines_file_name - # @return [::String] - # The file to store preprocessing commands in. - # @!attribute [rw] vm_id - # @return [::String] - # The ID string of the VM. - # @!attribute [rw] language_hint - # @return [::String] - # The suggested backend language. - # @!attribute [rw] streaming_worker_main_class - # @return [::String] - # The streaming worker main class name. - class TaskRunnerSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for WorkerPool autoscaling. - # @!attribute [rw] algorithm - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] - # The algorithm to use for autoscaling. - # @!attribute [rw] max_num_workers - # @return [::Integer] - # The maximum number of workers to cap scaling at. - class AutoscalingSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines an SDK harness container for executing Dataflow pipelines. - # @!attribute [rw] container_image - # @return [::String] - # A docker container image that resides in Google Container Registry. - # @!attribute [rw] use_single_core_per_container - # @return [::Boolean] - # If true, recommends the Dataflow service to use only one core per SDK - # container instance with this image. If false (or unset) recommends using - # more than one core per SDK container instance with this image for - # efficiency. Note that Dataflow service may choose to override this property - # if needed. - # @!attribute [rw] environment_id - # @return [::String] - # Environment ID for the Beam runner API proto Environment that corresponds - # to the current SDK Harness. - # @!attribute [rw] capabilities - # @return [::Array<::String>] - # The set of capabilities enumerated in the above Environment proto. See also - # [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto) - class SdkHarnessContainerImage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes one particular pool of Cloud Dataflow workers to be - # instantiated by the Cloud Dataflow service in order to perform the - # computations required by a job. Note that a workflow job may use - # multiple pools, in order to match the various computational - # requirements of the various stages of the job. - # @!attribute [rw] kind - # @return [::String] - # The kind of the worker pool; currently only `harness` and `shuffle` - # are supported. - # @!attribute [rw] num_workers - # @return [::Integer] - # Number of Google Compute Engine workers in this pool needed to - # execute the job. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] packages - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Package>] - # Packages to be installed on workers. - # @!attribute [rw] default_package_set - # @return [::Google::Cloud::Dataflow::V1beta3::DefaultPackageSet] - # The default package set to install. This allows the service to - # select a default set of packages which are useful to worker - # harnesses written in a particular language. - # @!attribute [rw] machine_type - # @return [::String] - # Machine type (e.g. "n1-standard-1"). If empty or unspecified, the - # service will attempt to choose a reasonable default. - # @!attribute [rw] teardown_policy - # @return [::Google::Cloud::Dataflow::V1beta3::TeardownPolicy] - # Sets the policy for determining when to turndown worker pool. - # Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and - # `TEARDOWN_NEVER`. - # `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether - # the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down - # if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn - # down. - # - # If the workers are not torn down by the service, they will - # continue to run and use Google Compute Engine VM resources in the - # user's project until they are explicitly terminated by the user. - # Because of this, Google recommends using the `TEARDOWN_ALWAYS` - # policy except for small, manually supervised test jobs. - # - # If unknown or unspecified, the service will attempt to choose a reasonable - # default. - # @!attribute [rw] disk_size_gb - # @return [::Integer] - # Size of root disk for VMs, in GB. If zero or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] disk_type - # @return [::String] - # Type of root disk for VMs. If empty or unspecified, the service will - # attempt to choose a reasonable default. - # @!attribute [rw] disk_provisioned_iops - # @return [::Integer] - # Optional. IOPS provisioned for the root disk for VMs. - # @!attribute [rw] disk_provisioned_throughput_mibps - # @return [::Integer] - # Optional. Throughput provisioned for the root disk for VMs. - # @!attribute [rw] disk_source_image - # @return [::String] - # Fully qualified source image for disks. - # @!attribute [rw] zone - # @return [::String] - # Zone to run the worker pools in. If empty or unspecified, the service - # will attempt to choose a reasonable default. - # @!attribute [rw] taskrunner_settings - # @return [::Google::Cloud::Dataflow::V1beta3::TaskRunnerSettings] - # Settings passed through to Google Compute Engine workers when - # using the standard Dataflow task runner. Users should ignore - # this field. - # @!attribute [rw] on_host_maintenance - # @return [::String] - # The action to take on host maintenance, as defined by the Google - # Compute Engine API. - # @!attribute [rw] data_disks - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Disk>] - # Data disks that are used by a VM in this workflow. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Map{::String => ::String}] - # Metadata to set on the Google Compute Engine VMs. - # @!attribute [rw] autoscaling_settings - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingSettings] - # Settings for autoscaling of this WorkerPool. - # @!attribute [rw] pool_args - # @return [::Google::Protobuf::Any] - # Extra arguments for this worker pool. - # @!attribute [rw] network - # @return [::String] - # Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # @!attribute [rw] subnetwork - # @return [::String] - # Subnetwork to which VMs will be assigned, if desired. Expected to be of - # the form "regions/REGION/subnetworks/SUBNETWORK". - # @!attribute [rw] worker_harness_container_image - # @return [::String] - # Required. Docker container image that executes the Cloud Dataflow worker - # harness, residing in Google Container Registry. - # - # Deprecated for the Fn API path. Use sdk_harness_container_images instead. - # @!attribute [rw] num_threads_per_worker - # @return [::Integer] - # The number of threads per worker harness. If empty or unspecified, the - # service will choose a number of threads (according to the number of cores - # on the selected machine type for batch, or 1 by convention for streaming). - # @!attribute [rw] ip_configuration - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] - # Configuration for VM IPs. - # @!attribute [rw] sdk_harness_container_images - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkHarnessContainerImage>] - # Set of SDK harness containers needed to execute this pipeline. This will - # only be set in the Fn API path. For non-cross-language pipelines this - # should have only one entry. Cross-language pipelines will have two or more - # entries. - class WorkerPool - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class MetadataEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Configuration options for sampling elements. - # @!attribute [rw] behaviors - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior>] - # List of given sampling behaviors to enable. For example, specifying - # behaviors = [ALWAYS_ON] samples in-flight elements but does not sample - # exceptions. Can be used to specify multiple behaviors like, - # behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and - # exception sampling. - # - # If DISABLED is in the list, then sampling will be disabled and ignore the - # other given behaviors. - # - # Ordering does not matter. - class DataSamplingConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The following enum defines what to sample for a running job. - module DataSamplingBehavior - # If given, has no effect on sampling behavior. Used as an unknown or unset - # sentinel value. - DATA_SAMPLING_BEHAVIOR_UNSPECIFIED = 0 - - # When given, disables element sampling. Has same behavior as not setting - # the behavior. - DISABLED = 1 - - # When given, enables sampling in-flight from all PCollections. - ALWAYS_ON = 2 - - # When given, enables sampling input elements when a user-defined DoFn - # causes an exception. - EXCEPTIONS = 3 - end - end - - # Describes any options that have an effect on the debugging of pipelines. - # @!attribute [rw] enable_hot_key_logging - # @return [::Boolean] - # Optional. When true, enables the logging of the literal hot key to the - # user's Cloud Logging. - # @!attribute [rw] data_sampling - # @return [::Google::Cloud::Dataflow::V1beta3::DataSamplingConfig] - # Configuration options for sampling elements from a running pipeline. - class DebugOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Specifies the processing model used by a - # [google.dataflow.v1beta3.Job], which determines the way the Job is - # managed by the Cloud Dataflow service (how workers are scheduled, how - # inputs are sharded, etc). - module JobType - # The type of the job is unspecified, or unknown. - JOB_TYPE_UNKNOWN = 0 - - # A batch job with a well-defined end point: data is read, data is - # processed, data is written, and the job is done. - JOB_TYPE_BATCH = 1 - - # A continuously streaming job with no end: data is read, - # processed, and written continuously. - JOB_TYPE_STREAMING = 2 - end - - # Specifies the resource to optimize for in Flexible Resource Scheduling. - module FlexResourceSchedulingGoal - # Run in the default mode. - FLEXRS_UNSPECIFIED = 0 - - # Optimize for lower execution time. - FLEXRS_SPEED_OPTIMIZED = 1 - - # Optimize for lower cost. - FLEXRS_COST_OPTIMIZED = 2 - end - - # Specifies what happens to a resource when a Cloud Dataflow - # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job} has completed. - module TeardownPolicy - # The teardown policy isn't specified, or is unknown. - TEARDOWN_POLICY_UNKNOWN = 0 - - # Always teardown the resource. - TEARDOWN_ALWAYS = 1 - - # Teardown the resource on success. This is useful for debugging - # failures. - TEARDOWN_ON_SUCCESS = 2 - - # Never teardown the resource. This is useful for debugging and - # development. - TEARDOWN_NEVER = 3 - end - - # The default set of packages to be staged on a pool of workers. - module DefaultPackageSet - # The default set of packages to stage is unknown, or unspecified. - DEFAULT_PACKAGE_SET_UNKNOWN = 0 - - # Indicates that no packages should be staged at the worker unless - # explicitly specified by the job. - DEFAULT_PACKAGE_SET_NONE = 1 - - # Stage packages typically useful to workers written in Java. - DEFAULT_PACKAGE_SET_JAVA = 2 - - # Stage packages typically useful to workers written in Python. - DEFAULT_PACKAGE_SET_PYTHON = 3 - end - - # Specifies the algorithm used to determine the number of worker - # processes to run at any given point in time, based on the amount of - # data left to process, the number of workers, and how quickly - # existing workers are processing data. - module AutoscalingAlgorithm - # The algorithm is unknown, or unspecified. - AUTOSCALING_ALGORITHM_UNKNOWN = 0 - - # Disable autoscaling. - AUTOSCALING_ALGORITHM_NONE = 1 - - # Increase worker count over time to reduce job execution time. - AUTOSCALING_ALGORITHM_BASIC = 2 - end - - # Specifies how to allocate IP addresses to worker machines. You can also use - # [pipeline - # options](https://cloud.google.com/dataflow/docs/reference/pipeline-options#security_and_networking) - # to specify whether Dataflow workers use external IP addresses. - module WorkerIPAddressConfiguration - # The configuration is unknown, or unspecified. - WORKER_IP_UNSPECIFIED = 0 - - # Workers should have public IP addresses. - WORKER_IP_PUBLIC = 1 - - # Workers should have private IP addresses. - WORKER_IP_PRIVATE = 2 - end - - # Specifies the shuffle mode used by a - # [google.dataflow.v1beta3.Job], which determines the approach data is shuffled - # during processing. More details in: - # https://cloud.google.com/dataflow/docs/guides/deploying-a-pipeline#dataflow-shuffle - module ShuffleMode - # Shuffle mode information is not available. - SHUFFLE_MODE_UNSPECIFIED = 0 - - # Shuffle is done on the worker VMs. - VM_BASED = 1 - - # Shuffle is done on the service side. - SERVICE_BASED = 2 - end - - # Specifies the Streaming Engine message processing guarantees. Reduces cost - # and latency but might result in duplicate messages written to storage. - # Designed to run simple mapping streaming ETL jobs at the lowest cost. - # For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - module StreamingMode - # Run in the default mode. - STREAMING_MODE_UNSPECIFIED = 0 - - # In this mode, message deduplication is performed against persistent state - # to make sure each message is processed and committed to storage exactly - # once. - STREAMING_MODE_EXACTLY_ONCE = 1 - - # Message deduplication is not performed. Messages might be processed - # multiple times, and the results are applied multiple times. - # Note: Setting this value also enables Streaming Engine and - # Streaming Engine resource-based billing. - STREAMING_MODE_AT_LEAST_ONCE = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb deleted file mode 100644 index e9900a0a2b40..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/jobs.rb +++ /dev/null @@ -1,1100 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Defines a job to be run by the Cloud Dataflow service. Do not enter - # confidential information when you supply string values using the API. - # @!attribute [rw] id - # @return [::String] - # The unique ID of this job. - # - # This field is set by the Dataflow service when the job is - # created, and is immutable for the life of the job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Google Cloud project that the job belongs to. - # @!attribute [rw] name - # @return [::String] - # Optional. The user-specified Dataflow job name. - # - # Only one active job with a given name can exist in a project within one - # region at - # any given time. Jobs in different regions can have the same name. - # If a caller attempts to create a job with the same - # name as an active job that already exists, the attempt returns the - # existing job. - # - # The name must match the regular expression - # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - # @!attribute [rw] type - # @return [::Google::Cloud::Dataflow::V1beta3::JobType] - # Optional. The type of Dataflow job. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::Environment] - # Optional. The environment for the job. - # @!attribute [rw] steps - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Step>] - # Exactly one of step or steps_location should be specified. - # - # The top-level steps that constitute the entire job. Only retrieved with - # JOB_VIEW_ALL. - # @!attribute [rw] steps_location - # @return [::String] - # The Cloud Storage location where the steps are stored. - # @!attribute [rw] current_state - # @return [::Google::Cloud::Dataflow::V1beta3::JobState] - # The current state of the job. - # - # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - # specified. - # - # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - # terminal state. After a job has reached a terminal state, no - # further state updates may be made. - # - # This field might be mutated by the Dataflow service; - # callers cannot mutate it. - # @!attribute [rw] current_state_time - # @return [::Google::Protobuf::Timestamp] - # The timestamp associated with the current state. - # @!attribute [rw] requested_state - # @return [::Google::Cloud::Dataflow::V1beta3::JobState] - # The job's requested state. Applies to `UpdateJob` requests. - # - # Set `requested_state` with `UpdateJob` requests to switch between the - # states `JOB_STATE_STOPPED` and `JOB_STATE_RUNNING`. You can also use - # `UpdateJob` requests to change a job's - # state from `JOB_STATE_RUNNING` to `JOB_STATE_CANCELLED`, - # `JOB_STATE_DONE`, or `JOB_STATE_DRAINED`. These states irrevocably - # terminate the job if it hasn't already reached a terminal state. - # - # This field has no effect on `CreateJob` requests. - # @!attribute [rw] execution_info - # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionInfo] - # Deprecated. - # @!attribute [rw] create_time - # @return [::Google::Protobuf::Timestamp] - # The timestamp when the job was initially created. Immutable and set by the - # Cloud Dataflow service. - # @!attribute [rw] replace_job_id - # @return [::String] - # If this job is an update of an existing job, this field is the job ID - # of the job it replaced. - # - # When sending a `CreateJobRequest`, you can update a job by specifying it - # here. The job named here is stopped, and its intermediate state is - # transferred to this job. - # @!attribute [rw] transform_name_mapping - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The map of transform name prefixes of the job to be replaced to - # the corresponding name prefixes of the new job. - # @!attribute [rw] client_request_id - # @return [::String] - # The client's unique identifier of the job, re-used across retried attempts. - # If this field is set, the service will ensure its uniqueness. - # The request to create a job will fail if the service has knowledge of a - # previously submitted job with the same client's ID and job name. - # The caller may use this field to ensure idempotence of job - # creation across retried attempts to create a job. - # By default, the field is empty and, in that case, the service ignores it. - # @!attribute [rw] replaced_by_job_id - # @return [::String] - # If another job is an update of this job (and thus, this job is in - # `JOB_STATE_UPDATED`), this field contains the ID of that job. - # @!attribute [rw] temp_files - # @return [::Array<::String>] - # A set of files the system should be aware of that are used - # for temporary storage. These temporary files will be - # removed on job completion. - # No duplicates are allowed. - # No file patterns are supported. - # - # The supported files are: - # - # Google Cloud Storage: - # - # storage.googleapis.com/\\{bucket}/\\{object} - # bucket.storage.googleapis.com/\\{object} - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # User-defined labels for this job. - # - # The labels map can contain no more than 64 entries. Entries of the labels - # map are UTF8 strings that comply with the following restrictions: - # - # * Keys must conform to regexp: [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62} - # * Values must conform to regexp: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63} - # * Both keys and values are additionally constrained to be <= 128 bytes in - # size. - # @!attribute [rw] location - # @return [::String] - # Optional. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @!attribute [rw] pipeline_description - # @return [::Google::Cloud::Dataflow::V1beta3::PipelineDescription] - # Preliminary field: The format of this data may change at any time. - # A description of the user pipeline and stages through which it is executed. - # Created by Cloud Dataflow service. Only retrieved with - # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - # @!attribute [rw] stage_states - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageState>] - # This field may be mutated by the Cloud Dataflow service; - # callers cannot mutate it. - # @!attribute [rw] job_metadata - # @return [::Google::Cloud::Dataflow::V1beta3::JobMetadata] - # This field is populated by the Dataflow service to support filtering jobs - # by the metadata values provided here. Populated for ListJobs and all GetJob - # views SUMMARY and higher. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The timestamp when the job was started (transitioned to JOB_STATE_PENDING). - # Flexible resource scheduling jobs are started with some delay after job - # creation, so start_time is unset before start and is updated when the - # job is started by the Cloud Dataflow service. For other jobs, start_time - # always equals to create_time and is immutable and set by the Cloud Dataflow - # service. - # @!attribute [rw] created_from_snapshot_id - # @return [::String] - # If this is specified, the job's initial state is populated from the given - # snapshot. - # @!attribute [rw] satisfies_pzs - # @return [::Boolean] - # Reserved for future use. This field is set only in responses from the - # server; it is ignored if it is set in any requests. - # @!attribute [rw] runtime_updatable_params - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeUpdatableParams] - # This field may ONLY be modified at runtime using the projects.jobs.update - # method to adjust job behavior. This field has no effect when specified at - # job creation. - # @!attribute [r] satisfies_pzi - # @return [::Boolean] - # Output only. Reserved for future use. This field is set only in responses - # from the server; it is ignored if it is set in any requests. - # @!attribute [r] service_resources - # @return [::Google::Cloud::Dataflow::V1beta3::ServiceResources] - # Output only. Resources used by the Dataflow Service to run the job. - # @!attribute [r] pausable - # @return [::Boolean] - # Output only. Indicates whether the job can be paused. - class Job - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TransformNameMappingEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Resources used by the Dataflow Service to run the job. - # @!attribute [r] zones - # @return [::Array<::String>] - # Output only. List of Cloud Zones being used by the Dataflow Service for - # this job. Example: us-central1-c - class ServiceResources - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Additional job parameters that can only be updated during runtime using the - # projects.jobs.update method. These fields have no effect when specified - # during job creation. - # @!attribute [rw] max_num_workers - # @return [::Integer] - # The maximum number of workers to cap autoscaling at. This field is - # currently only supported for Streaming Engine jobs. - # @!attribute [rw] min_num_workers - # @return [::Integer] - # The minimum number of workers to scale down to. This field is currently - # only supported for Streaming Engine jobs. - # @!attribute [rw] worker_utilization_hint - # @return [::Float] - # Target worker utilization, compared against the aggregate utilization of - # the worker pool by autoscaler, to determine upscaling and downscaling when - # absent other constraints such as backlog. - # For more information, see - # [Update an existing - # pipeline](https://cloud.google.com/dataflow/docs/guides/updating-a-pipeline). - # @!attribute [rw] acceptable_backlog_duration - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Protobuf::Duration] - # Optional. Deprecated: Use `autoscaling_tier` instead. - # The backlog threshold duration in seconds for autoscaling. Value must be - # non-negative. - # @!attribute [rw] autoscaling_tier - # @return [::String] - # Optional. The backlog threshold tier for autoscaling. Value must be one of - # "low-latency", "medium-latency", or "high-latency". - class RuntimeUpdatableParams - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Datastore connector used by the job. - # @!attribute [rw] namespace - # @return [::String] - # Namespace used in the connection. - # @!attribute [rw] project_id - # @return [::String] - # ProjectId accessed in the connection. - class DatastoreIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Pub/Sub connector used by the job. - # @!attribute [rw] topic - # @return [::String] - # Topic accessed in the connection. - # @!attribute [rw] subscription - # @return [::String] - # Subscription used in the connection. - class PubSubIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a File connector used by the job. - # @!attribute [rw] file_pattern - # @return [::String] - # File Pattern used to access files by the connector. - class FileIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Cloud Bigtable connector used by the job. - # @!attribute [rw] project_id - # @return [::String] - # ProjectId accessed in the connection. - # @!attribute [rw] instance_id - # @return [::String] - # InstanceId accessed in the connection. - # @!attribute [rw] table_id - # @return [::String] - # TableId accessed in the connection. - class BigTableIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a BigQuery connector used by the job. - # @!attribute [rw] table - # @return [::String] - # Table accessed in the connection. - # @!attribute [rw] dataset - # @return [::String] - # Dataset accessed in the connection. - # @!attribute [rw] project_id - # @return [::String] - # Project accessed in the connection. - # @!attribute [rw] query - # @return [::String] - # Query used to access data in the connection. - class BigQueryIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a Spanner connector used by the job. - # @!attribute [rw] project_id - # @return [::String] - # ProjectId accessed in the connection. - # @!attribute [rw] instance_id - # @return [::String] - # InstanceId accessed in the connection. - # @!attribute [rw] database_id - # @return [::String] - # DatabaseId accessed in the connection. - class SpannerIODetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The version of the SDK used to run the job. - # @!attribute [rw] version - # @return [::String] - # The version of the SDK used to run the job. - # @!attribute [rw] version_display_name - # @return [::String] - # A readable string describing the version of the SDK. - # @!attribute [rw] sdk_support_status - # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion::SdkSupportStatus] - # The support status for this SDK version. - # @!attribute [r] bugs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SdkBug>] - # Output only. Known bugs found in this SDK version. - class SdkVersion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The support status of the SDK used to run the job. - module SdkSupportStatus - # Cloud Dataflow is unaware of this version. - UNKNOWN = 0 - - # This is a known version of an SDK, and is supported. - SUPPORTED = 1 - - # A newer version of the SDK family exists, and an update is recommended. - STALE = 2 - - # This version of the SDK is deprecated and will eventually be - # unsupported. - DEPRECATED = 3 - - # Support for this SDK version has ended and it should no longer be used. - UNSUPPORTED = 4 - end - end - - # A bug found in the Dataflow SDK. - # @!attribute [r] type - # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Type] - # Output only. Describes the impact of this SDK bug. - # @!attribute [r] severity - # @return [::Google::Cloud::Dataflow::V1beta3::SdkBug::Severity] - # Output only. How severe the SDK bug is. - # @!attribute [r] uri - # @return [::String] - # Output only. Link to more information on the bug. - class SdkBug - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Nature of the issue, ordered from least severe to most. Other bug types may - # be added to this list in the future. - module Type - # Unknown issue with this SDK. - TYPE_UNSPECIFIED = 0 - - # Catch-all for SDK bugs that don't fit in the below categories. - GENERAL = 1 - - # Using this version of the SDK may result in degraded performance. - PERFORMANCE = 2 - - # Using this version of the SDK may cause data loss. - DATALOSS = 3 - end - - # Indicates the severity of the bug. Other severities may be added to this - # list in the future. - module Severity - # A bug of unknown severity. - SEVERITY_UNSPECIFIED = 0 - - # A minor bug that that may reduce reliability or performance for some - # jobs. Impact will be minimal or non-existent for most jobs. - NOTICE = 1 - - # A bug that has some likelihood of causing performance degradation, data - # loss, or job failures. - WARNING = 2 - - # A bug with extremely significant impact. Jobs may fail erroneously, - # performance may be severely degraded, and data loss may be very likely. - SEVERE = 3 - end - end - - # Metadata available primarily for filtering jobs. Will be included in the - # ListJob response and Job SUMMARY view. - # @!attribute [rw] sdk_version - # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion] - # The SDK version used to run the job. - # @!attribute [rw] spanner_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SpannerIODetails>] - # Identification of a Spanner source used in the Dataflow job. - # @!attribute [rw] bigquery_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigQueryIODetails>] - # Identification of a BigQuery source used in the Dataflow job. - # @!attribute [rw] big_table_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigTableIODetails>] - # Identification of a Cloud Bigtable source used in the Dataflow job. - # @!attribute [rw] pubsub_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubSubIODetails>] - # Identification of a Pub/Sub source used in the Dataflow job. - # @!attribute [rw] file_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FileIODetails>] - # Identification of a File source used in the Dataflow job. - # @!attribute [rw] datastore_details - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DatastoreIODetails>] - # Identification of a Datastore source used in the Dataflow job. - # @!attribute [rw] user_display_properties - # @return [::Google::Protobuf::Map{::String => ::String}] - # List of display properties to help UI filter jobs. - class JobMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class UserDisplayPropertiesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A message describing the state of a particular execution stage. - # @!attribute [rw] execution_stage_name - # @return [::String] - # The name of the execution stage. - # @!attribute [rw] execution_stage_state - # @return [::Google::Cloud::Dataflow::V1beta3::JobState] - # Executions stage states allow the same set of values as JobState. - # @!attribute [rw] current_state_time - # @return [::Google::Protobuf::Timestamp] - # The time at which the stage transitioned to this state. - class ExecutionStageState - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A descriptive representation of submitted pipeline as well as the executed - # form. This data is provided by the Dataflow service for ease of visualizing - # the pipeline and interpreting Dataflow provided metrics. - # @!attribute [rw] original_pipeline_transform - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::TransformSummary>] - # Description of each transform in the pipeline and collections between them. - # @!attribute [rw] execution_pipeline_stage - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary>] - # Description of each stage of execution of the pipeline. - # @!attribute [rw] display_data - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] - # Pipeline level display data. - # @!attribute [rw] step_names_hash - # @return [::String] - # A hash value of the submitted pipeline portable graph step names if exists. - class PipelineDescription - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of the type, names/ids, and input/outputs for a transform. - # @!attribute [rw] kind - # @return [::Google::Cloud::Dataflow::V1beta3::KindType] - # Type of transform. - # @!attribute [rw] id - # @return [::String] - # SDK generated id of this transform instance. - # @!attribute [rw] name - # @return [::String] - # User provided name for this transform instance. - # @!attribute [rw] display_data - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>] - # Transform-specific display data. - # @!attribute [rw] output_collection_name - # @return [::Array<::String>] - # User names for all collection outputs to this transform. - # @!attribute [rw] input_collection_name - # @return [::Array<::String>] - # User names for all collection inputs to this transform. - class TransformSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of the composing transforms, names/ids, and input/outputs of a - # stage of execution. Some composing transforms and sources may have been - # generated by the Dataflow service during execution planning. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this stage. - # @!attribute [rw] id - # @return [::String] - # Dataflow service generated id for this stage. - # @!attribute [rw] kind - # @return [::Google::Cloud::Dataflow::V1beta3::KindType] - # Type of transform this stage is executing. - # @!attribute [rw] input_source - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] - # Input sources for this stage. - # @!attribute [rw] output_source - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>] - # Output sources for this stage. - # @!attribute [rw] prerequisite_stage - # @return [::Array<::String>] - # Other stages that must complete before this stage can run. - # @!attribute [rw] component_transform - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentTransform>] - # Transforms that comprise this execution stage. - # @!attribute [rw] component_source - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentSource>] - # Collections produced and consumed by component transforms of this stage. - class ExecutionStageSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Description of an input or output of an execution stage. - # @!attribute [rw] user_name - # @return [::String] - # Human-readable name for this source; may be user or system generated. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this source. - # @!attribute [rw] original_transform_or_collection - # @return [::String] - # User name for the original user transform or collection with which this - # source is most closely associated. - # @!attribute [rw] size_bytes - # @return [::Integer] - # Size of the source, if measurable. - class StageSource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of a transform executed as part of an execution stage. - # @!attribute [rw] user_name - # @return [::String] - # Human-readable name for this transform; may be user or system generated. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this source. - # @!attribute [rw] original_transform - # @return [::String] - # User name for the original user transform with which this transform is - # most closely associated. - class ComponentTransform - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Description of an interstitial value between transforms in an execution - # stage. - # @!attribute [rw] user_name - # @return [::String] - # Human-readable name for this transform; may be user or system generated. - # @!attribute [rw] name - # @return [::String] - # Dataflow service generated name for this source. - # @!attribute [rw] original_transform_or_collection - # @return [::String] - # User name for the original user transform or collection with which this - # source is most closely associated. - class ComponentSource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Data provided with a pipeline or transform to provide descriptive info. - # @!attribute [rw] key - # @return [::String] - # The key identifying the display data. - # This is intended to be used as a label for the display data - # when viewed in a dax monitoring system. - # @!attribute [rw] namespace - # @return [::String] - # The namespace for the key. This is usually a class name or programming - # language namespace (i.e. python module) which defines the display data. - # This allows a dax monitoring system to specially handle the data - # and perform custom rendering. - # @!attribute [rw] str_value - # @return [::String] - # Contains value if the data is of string type. - # - # Note: The following fields are mutually exclusive: `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] int64_value - # @return [::Integer] - # Contains value if the data is of int64 type. - # - # Note: The following fields are mutually exclusive: `int64_value`, `str_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] float_value - # @return [::Float] - # Contains value if the data is of float type. - # - # Note: The following fields are mutually exclusive: `float_value`, `str_value`, `int64_value`, `java_class_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] java_class_value - # @return [::String] - # Contains value if the data is of java class type. - # - # Note: The following fields are mutually exclusive: `java_class_value`, `str_value`, `int64_value`, `float_value`, `timestamp_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] timestamp_value - # @return [::Google::Protobuf::Timestamp] - # Contains value if the data is of timestamp type. - # - # Note: The following fields are mutually exclusive: `timestamp_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `duration_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] duration_value - # @return [::Google::Protobuf::Duration] - # Contains value if the data is of duration type. - # - # Note: The following fields are mutually exclusive: `duration_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_value - # @return [::Boolean] - # Contains value if the data is of a boolean type. - # - # Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `int64_value`, `float_value`, `java_class_value`, `timestamp_value`, `duration_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] short_str_value - # @return [::String] - # A possible additional shorter value to display. - # For example a java_class_name_value of com.mypackage.MyDoFn - # will be stored with MyDoFn as the short_str_value and - # com.mypackage.MyDoFn as the java_class_name value. - # short_str_value can be displayed and java_class_name_value - # will be displayed as a tooltip. - # @!attribute [rw] url - # @return [::String] - # An optional full URL. - # @!attribute [rw] label - # @return [::String] - # An optional label to display in a dax UI for the element. - class DisplayData - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a particular step within a Cloud Dataflow job. - # - # A job consists of multiple steps, each of which performs some - # specific operation as part of the overall job. Data is typically - # passed from one step to another as part of the job. - # - # **Note:** The properties of this object are not stable and might change. - # - # Here's an example of a sequence of steps which together implement a - # Map-Reduce job: - # - # * Read a collection of data from some source, parsing the - # collection's elements. - # - # * Validate the elements. - # - # * Apply a user-defined function to map each element to some value - # and extract an element-specific key value. - # - # * Group elements with the same key into a single element with - # that key, transforming a multiply-keyed collection into a - # uniquely-keyed collection. - # - # * Write the elements out to some data sink. - # - # Note that the Cloud Dataflow service may be used to run many different - # types of jobs, not just Map-Reduce. - # @!attribute [rw] kind - # @return [::String] - # The kind of step in the Cloud Dataflow job. - # @!attribute [rw] name - # @return [::String] - # The name that identifies the step. This must be unique for each - # step with respect to all other steps in the Cloud Dataflow job. - # @!attribute [rw] properties - # @return [::Google::Protobuf::Struct] - # Named properties associated with the step. Each kind of - # predefined step has its own required set of properties. - # Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - class Step - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Additional information about how a Cloud Dataflow job will be executed that - # isn't contained in the submitted job. - # @!attribute [rw] stages - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo}] - # A mapping from each stage to the information about that stage. - class JobExecutionInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo] - class StagesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Contains information about how a particular - # {::Google::Cloud::Dataflow::V1beta3::Step google.dataflow.v1beta3.Step} will be - # executed. - # @!attribute [rw] step_name - # @return [::Array<::String>] - # The steps associated with the execution stage. - # Note that stages may have several steps, and that a given step - # might be run by more than one stage. - class JobExecutionStageInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to create a Cloud Dataflow job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The job to create. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @!attribute [rw] replace_job_id - # @return [::String] - # Deprecated. This field is now in the Job message. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - class CreateJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get the state of a Cloud Dataflow job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job_id - # @return [::String] - # The job ID. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataflow::V1beta3::JobView] - # The level of information requested in response. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - class GetJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to update a Cloud Dataflow job. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job_id - # @return [::String] - # The job ID. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The updated job. - # Only the job state is updatable; other fields will be ignored. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # The list of fields to update relative to Job. If empty, only - # RequestedJobState will be considered for update. If the FieldMask is not - # empty and RequestedJobState is none/empty, The fields specified in the - # update mask will be the only ones considered for update. If both - # RequestedJobState and update_mask are specified, an error will be returned - # as we cannot update both state and mask. - class UpdateJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to list Cloud Dataflow jobs. - # @!attribute [rw] filter - # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter] - # The kind of filter to use. - # @!attribute [rw] project_id - # @return [::String] - # The project which owns the jobs. - # @!attribute [rw] view - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Google::Cloud::Dataflow::V1beta3::JobView] - # Deprecated. ListJobs always returns summaries now. - # Use GetJob for other JobViews. - # @!attribute [rw] page_size - # @return [::Integer] - # If there are many jobs, limit response to at most this many. - # The actual number of jobs returned will be the lesser of max_responses - # and an unspecified server-defined limit. - # @!attribute [rw] page_token - # @return [::String] - # Set this to the 'next_page_token' field of a previous response - # to request additional results in a long list. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains this job. - # @!attribute [rw] name - # @return [::String] - # Optional. The job name. - class ListJobsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # This field filters out and returns jobs in the specified job state. The - # order of data returned is determined by the filter used, and is subject to - # change. - module Filter - # The filter isn't specified, or is unknown. This returns all jobs ordered - # on descending `JobUuid`. - UNKNOWN = 0 - - # Returns all running jobs first ordered on creation timestamp, then - # returns all terminated jobs ordered on the termination timestamp. - ALL = 1 - - # Filters the jobs that have a terminated state, ordered on the - # termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, - # `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc. - TERMINATED = 2 - - # Filters the jobs that are running ordered on the creation timestamp. - ACTIVE = 3 - end - end - - # Indicates which [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed - # to respond to a request for data. - # @!attribute [rw] name - # @return [::String] - # The name of the [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # failed to respond. - class FailedLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response to a request to list Cloud Dataflow jobs in a project. This might - # be a partial response, depending on the page size in the ListJobsRequest. - # However, if the project does not have any jobs, an instance of - # ListJobsResponse is not returned and the requests's response - # body is empty {}. - # @!attribute [rw] jobs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Job>] - # A subset of the requested job information. - # @!attribute [rw] next_page_token - # @return [::String] - # Set if there may be more results than fit in this response. - # @!attribute [rw] failed_location - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FailedLocation>] - # Zero or more messages describing the [regional endpoints] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # failed to respond. - class ListJobsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to create a snapshot of a job. - # @!attribute [rw] project_id - # @return [::String] - # The project which owns the job to be snapshotted. - # @!attribute [rw] job_id - # @return [::String] - # The job to be snapshotted. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # TTL for the snapshot. - # @!attribute [rw] location - # @return [::String] - # The location that contains this job. - # @!attribute [rw] snapshot_sources - # @return [::Boolean] - # If true, perform snapshots for sources which support this. - # @!attribute [rw] description - # @return [::String] - # User specified description of the snapshot. Maybe empty. - class SnapshotJobRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to check is active jobs exists for a project - # @!attribute [rw] project_id - # @return [::String] - # The project which owns the jobs. - class CheckActiveJobsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response for CheckActiveJobsRequest. - # @!attribute [rw] active_jobs_exist - # @return [::Boolean] - # If True, active jobs exists for project. False otherwise. - class CheckActiveJobsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Type of transform or stage operation. - module KindType - # Unrecognized transform type. - UNKNOWN_KIND = 0 - - # ParDo transform. - PAR_DO_KIND = 1 - - # Group By Key transform. - GROUP_BY_KEY_KIND = 2 - - # Flatten transform. - FLATTEN_KIND = 3 - - # Read transform. - READ_KIND = 4 - - # Write transform. - WRITE_KIND = 5 - - # Constructs from a constant value, such as with Create.of. - CONSTANT_KIND = 6 - - # Creates a Singleton view of a collection. - SINGLETON_KIND = 7 - - # Opening or closing a shuffle session, often as part of a GroupByKey. - SHUFFLE_KIND = 8 - end - - # Describes the overall state of a - # {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job}. - module JobState - # The job's run state isn't specified. - JOB_STATE_UNKNOWN = 0 - - # `JOB_STATE_STOPPED` indicates that the job has not - # yet started to run. - JOB_STATE_STOPPED = 1 - - # `JOB_STATE_RUNNING` indicates that the job is currently running. - JOB_STATE_RUNNING = 2 - - # `JOB_STATE_DONE` indicates that the job has successfully completed. - # This is a terminal job state. This state may be set by the Cloud Dataflow - # service, as a transition from `JOB_STATE_RUNNING`. It may also be set via a - # Cloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal - # state. - JOB_STATE_DONE = 3 - - # `JOB_STATE_FAILED` indicates that the job has failed. This is a - # terminal job state. This state may only be set by the Cloud Dataflow - # service, and only as a transition from `JOB_STATE_RUNNING`. - JOB_STATE_FAILED = 4 - - # `JOB_STATE_CANCELLED` indicates that the job has been explicitly - # cancelled. This is a terminal job state. This state may only be - # set via a Cloud Dataflow `UpdateJob` call, and only if the job has not - # yet reached another terminal state. - JOB_STATE_CANCELLED = 5 - - # `JOB_STATE_UPDATED` indicates that the job was successfully updated, - # meaning that this job was stopped and another job was started, inheriting - # state from this one. This is a terminal job state. This state may only be - # set by the Cloud Dataflow service, and only as a transition from - # `JOB_STATE_RUNNING`. - JOB_STATE_UPDATED = 6 - - # `JOB_STATE_DRAINING` indicates that the job is in the process of draining. - # A draining job has stopped pulling from its input sources and is processing - # any data that remains in-flight. This state may be set via a Cloud Dataflow - # `UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs - # that are draining may only transition to `JOB_STATE_DRAINED`, - # `JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`. - JOB_STATE_DRAINING = 7 - - # `JOB_STATE_DRAINED` indicates that the job has been drained. - # A drained job terminated by stopping pulling from its input sources and - # processing any data that remained in-flight when draining was requested. - # This state is a terminal state, may only be set by the Cloud Dataflow - # service, and only as a transition from `JOB_STATE_DRAINING`. - JOB_STATE_DRAINED = 8 - - # `JOB_STATE_PENDING` indicates that the job has been created but is not yet - # running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, - # or `JOB_STATE_FAILED`. - JOB_STATE_PENDING = 9 - - # `JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled - # and is in the process of stopping. Jobs that are cancelling may only - # transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`. - JOB_STATE_CANCELLING = 10 - - # `JOB_STATE_QUEUED` indicates that the job has been created but is being - # delayed until launch. Jobs that are queued may only transition to - # `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`. - JOB_STATE_QUEUED = 11 - - # `JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated - # resources are currently being cleaned up after a successful run. - # Currently, this is an opt-in feature, please reach out to Cloud support - # team if you are interested. - JOB_STATE_RESOURCE_CLEANING_UP = 12 - - # `JOB_STATE_PAUSING` is not implemented yet. - JOB_STATE_PAUSING = 13 - - # `JOB_STATE_PAUSED` is not implemented yet. - JOB_STATE_PAUSED = 14 - end - - # Selector for how much information is returned in Job responses. - module JobView - # The job view to return isn't specified, or is unknown. - # Responses will contain at least the `JOB_VIEW_SUMMARY` information, - # and may contain additional information. - JOB_VIEW_UNKNOWN = 0 - - # Request summary information only: - # Project ID, Job ID, job name, job type, job status, start/end time, - # and Cloud SDK version details. - JOB_VIEW_SUMMARY = 1 - - # Request all information available for this job. When the job is in - # `JOB_STATE_PENDING`, the job has been created but is not yet running, and - # not all job information is available. For complete - # job information, wait until the job in is `JOB_STATE_RUNNING`. For more - # information, see - # [JobState](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#jobstate). - JOB_VIEW_ALL = 2 - - # Request summary info and limited job description data for steps, labels and - # environment. - JOB_VIEW_DESCRIPTION = 3 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb deleted file mode 100644 index 726654a43823..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/messages.rb +++ /dev/null @@ -1,225 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # A particular message pertaining to a Dataflow job. - # @!attribute [rw] id - # @return [::String] - # Deprecated. - # @!attribute [rw] time - # @return [::Google::Protobuf::Timestamp] - # The timestamp of the message. - # @!attribute [rw] message_text - # @return [::String] - # The text of the message. - # @!attribute [rw] message_importance - # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Importance level of the message. - class JobMessage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A rich message format, including a human readable string, a key for - # identifying the message, and structured data associated with the message for - # programmatic consumption. - # @!attribute [rw] message_text - # @return [::String] - # Human-readable version of message. - # @!attribute [rw] message_key - # @return [::String] - # Identifier for this message type. Used by external systems to - # internationalize or personalize message. - # @!attribute [rw] parameters - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StructuredMessage::Parameter>] - # The structured data associated with this message. - class StructuredMessage - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Structured data associated with this message. - # @!attribute [rw] key - # @return [::String] - # Key or name for this parameter. - # @!attribute [rw] value - # @return [::Google::Protobuf::Value] - # Value for this parameter. - class Parameter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A structured message reporting an autoscaling decision made by the Dataflow - # service. - # @!attribute [rw] current_num_workers - # @return [::Integer] - # The current number of workers the job has. - # @!attribute [rw] target_num_workers - # @return [::Integer] - # The target number of workers the worker pool wants to resize to use. - # @!attribute [rw] event_type - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent::AutoscalingEventType] - # The type of autoscaling event to report. - # @!attribute [rw] description - # @return [::Google::Cloud::Dataflow::V1beta3::StructuredMessage] - # A message describing why the system decided to adjust the current - # number of workers, why it failed, or why the system decided to - # not make any changes to the number of workers. - # @!attribute [rw] time - # @return [::Google::Protobuf::Timestamp] - # The time this event was emitted to indicate a new target or current - # num_workers value. - # @!attribute [rw] worker_pool - # @return [::String] - # A short and friendly name for the worker pool this event refers to. - class AutoscalingEvent - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Indicates the type of autoscaling event. - module AutoscalingEventType - # Default type for the enum. Value should never be returned. - TYPE_UNKNOWN = 0 - - # The TARGET_NUM_WORKERS_CHANGED type should be used when the target - # worker pool size has changed at the start of an actuation. An event - # should always be specified as TARGET_NUM_WORKERS_CHANGED if it reflects - # a change in the target_num_workers. - TARGET_NUM_WORKERS_CHANGED = 1 - - # The CURRENT_NUM_WORKERS_CHANGED type should be used when actual worker - # pool size has been changed, but the target_num_workers has not changed. - CURRENT_NUM_WORKERS_CHANGED = 2 - - # The ACTUATION_FAILURE type should be used when we want to report - # an error to the user indicating why the current number of workers - # in the pool could not be changed. - # Displayed in the current status and history widgets. - ACTUATION_FAILURE = 3 - - # Used when we want to report to the user a reason why we are - # not currently adjusting the number of workers. - # Should specify both target_num_workers, current_num_workers and a - # decision_message. - NO_CHANGE = 4 - end - end - - # Request to list job messages. - # Up to max_results messages will be returned in the time range specified - # starting with the oldest messages first. If no time range is specified - # the results with start with the oldest message. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get messages about. - # @!attribute [rw] minimum_importance - # @return [::Google::Cloud::Dataflow::V1beta3::JobMessageImportance] - # Filter to only get messages with importance >= level - # @!attribute [rw] page_size - # @return [::Integer] - # If specified, determines the maximum number of messages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @!attribute [rw] page_token - # @return [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # If specified, return only messages with timestamps >= start_time. - # The default is the job creation time (i.e. beginning of messages). - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Return only messages with timestamps < end_time. The default is now - # (i.e. return up to the latest messages available). - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - class ListJobMessagesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response to a request to list job messages. - # @!attribute [rw] job_messages - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::JobMessage>] - # Messages in ascending timestamp order. - # @!attribute [rw] next_page_token - # @return [::String] - # The token to obtain the next page of results if there are more. - # @!attribute [rw] autoscaling_events - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::AutoscalingEvent>] - # Autoscaling events in ascending timestamp order. - class ListJobMessagesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Indicates the importance of the message. - module JobMessageImportance - # The message importance isn't specified, or is unknown. - JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0 - - # The message is at the 'debug' level: typically only useful for - # software engineers working on the code the job is running. - # Typically, Dataflow pipeline runners do not display log messages - # at this level by default. - JOB_MESSAGE_DEBUG = 1 - - # The message is at the 'detailed' level: somewhat verbose, but - # potentially useful to users. Typically, Dataflow pipeline - # runners do not display log messages at this level by default. - # These messages are displayed by default in the Dataflow - # monitoring UI. - JOB_MESSAGE_DETAILED = 2 - - # The message is at the 'basic' level: useful for keeping - # track of the execution of a Dataflow pipeline. Typically, - # Dataflow pipeline runners display log messages at this level by - # default, and these messages are displayed by default in the - # Dataflow monitoring UI. - JOB_MESSAGE_BASIC = 5 - - # The message is at the 'warning' level: indicating a condition - # pertaining to a job which may require human intervention. - # Typically, Dataflow pipeline runners display log messages at this - # level by default, and these messages are displayed by default in - # the Dataflow monitoring UI. - JOB_MESSAGE_WARNING = 3 - - # The message is at the 'error' level: indicating a condition - # preventing a job from succeeding. Typically, Dataflow pipeline - # runners display log messages at this level by default, and these - # messages are displayed by default in the Dataflow monitoring UI. - JOB_MESSAGE_ERROR = 4 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb deleted file mode 100644 index 48590e3d26f4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/metrics.rb +++ /dev/null @@ -1,517 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Identifies a metric, by describing the source which generated the - # metric. - # @!attribute [rw] origin - # @return [::String] - # Origin (namespace) of metric name. May be blank for user-define metrics; - # will be "dataflow" for metrics defined by the Dataflow service or SDK. - # @!attribute [rw] name - # @return [::String] - # Worker-defined metric name. - # @!attribute [rw] context - # @return [::Google::Protobuf::Map{::String => ::String}] - # Zero or more labeled fields which identify the part of the job this - # metric is associated with, such as the name of a step or collection. - # - # For example, built-in counters associated with steps will have - # context['step'] = . Counters associated with PCollections - # in the SDK will have context['pcollection'] = . - class MetricStructuredName - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ContextEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the state of a metric. - # @!attribute [rw] name - # @return [::Google::Cloud::Dataflow::V1beta3::MetricStructuredName] - # Name of the metric. - # @!attribute [rw] kind - # @return [::String] - # Metric aggregation kind. The possible metric aggregation kinds are - # "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". - # The specified aggregation kind is case-insensitive. - # - # If omitted, this is not an aggregated value but instead - # a single metric sample value. - # @!attribute [rw] cumulative - # @return [::Boolean] - # True if this metric is reported as the total cumulative aggregate - # value accumulated since the worker started working on this WorkItem. - # By default this is false, indicating that this metric is reported - # as a delta that is not associated with any WorkItem. - # @!attribute [rw] scalar - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", - # "And", and "Or". The possible value types are Long, Double, and Boolean. - # @!attribute [rw] mean_sum - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Mean" aggregation kind. - # This holds the sum of the aggregated values and is used in combination - # with mean_count below to obtain the actual mean aggregate value. - # The only possible value types are Long and Double. - # @!attribute [rw] mean_count - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Mean" aggregation kind. - # This holds the count of the aggregated values and is used in combination - # with mean_sum above to obtain the actual mean aggregate value. - # The only possible value type is Long. - # @!attribute [rw] set - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Set" aggregation kind. The only - # possible value type is a list of Values whose type can be Long, Double, - # String, or BoundedTrie according to the metric's type. All Values in the - # list must be of the same type. - # @!attribute [rw] trie - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Trie" aggregation kind. The only - # possible value type is a BoundedTrieNode. - # @!attribute [rw] bounded_trie - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for the "Trie" aggregation kind. The only - # possible value type is a BoundedTrieNode. - # Introduced this field to avoid breaking older SDKs when Dataflow service - # starts to populate the `bounded_trie` field. - # @!attribute [rw] distribution - # @return [::Google::Protobuf::Value] - # A struct value describing properties of a distribution of numeric values. - # @!attribute [rw] gauge - # @return [::Google::Protobuf::Value] - # A struct value describing properties of a Gauge. - # Metrics of gauge type show the value of a metric across time, and is - # aggregated based on the newest value. - # @!attribute [rw] internal - # @return [::Google::Protobuf::Value] - # Worker-computed aggregate value for internal use by the Dataflow - # service. - # @!attribute [rw] update_time - # @return [::Google::Protobuf::Timestamp] - # Timestamp associated with the metric value. Optional when workers are - # reporting work progress; it will be filled in responses from the - # metrics API. - class MetricUpdate - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get job metrics. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get metrics for. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Return only metric data that has changed since this time. - # Default is to return all information about all metrics for the job. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - class GetJobMetricsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # JobMetrics contains a collection of metrics describing the detailed progress - # of a Dataflow job. Metrics correspond to user-defined and system-defined - # metrics in the job. For more information, see [Dataflow job metrics] - # (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf). - # - # This resource captures only the most recent values of each metric; - # time-series data can be queried for them (under the same metric names) - # from Cloud Monitoring. - # @!attribute [rw] metric_time - # @return [::Google::Protobuf::Timestamp] - # Timestamp as of which metric values are current. - # @!attribute [rw] metrics - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] - # All metrics for this job. - class JobMetrics - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get job execution details. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get execution details for. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @!attribute [rw] page_size - # @return [::Integer] - # If specified, determines the maximum number of stages to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @!attribute [rw] page_token - # @return [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - class GetJobExecutionDetailsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about the progress of some component of job execution. - # @!attribute [rw] current_progress - # @return [::Float] - # The current progress of the component, in the range [0,1]. - # @!attribute [rw] data_points - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries::Point>] - # History of progress for the component. - # - # Points are sorted by time. - class ProgressTimeseries - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A point in the timeseries. - # @!attribute [rw] time - # @return [::Google::Protobuf::Timestamp] - # The timestamp of the point. - # @!attribute [rw] value - # @return [::Float] - # The value of the point. - class Point - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Information useful for straggler identification and debugging. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # The time when the work item attempt became a straggler. - # @!attribute [rw] causes - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo}] - # The straggler causes, keyed by the string representation of the - # StragglerCause enum and contains specialized debugging information for each - # straggler cause. - class StragglerInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Information useful for debugging a straggler. Each type will provide - # specialized debugging information relevant for a particular cause. - # The StragglerDebuggingInfo will be 1:1 mapping to the StragglerCause enum. - # @!attribute [rw] hot_key - # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo] - # Hot key debugging details. - class StragglerDebuggingInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo::StragglerDebuggingInfo] - class CausesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Information useful for streaming straggler identification and debugging. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Start time of this straggler. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # End time of this straggler. - # @!attribute [rw] worker_name - # @return [::String] - # Name of the worker where the straggler was detected. - # @!attribute [rw] data_watermark_lag - # @return [::Google::Protobuf::Duration] - # The event-time watermark lag at the time of the straggler detection. - # @!attribute [rw] system_watermark_lag - # @return [::Google::Protobuf::Duration] - # The system watermark lag at the time of the straggler detection. - class StreamingStragglerInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information for a straggler. - # @!attribute [rw] batch_straggler - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] - # Batch straggler identification and debugging information. - # - # Note: The following fields are mutually exclusive: `batch_straggler`, `streaming_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] streaming_straggler - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStragglerInfo] - # Streaming straggler identification and debugging information. - # - # Note: The following fields are mutually exclusive: `streaming_straggler`, `batch_straggler`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Straggler - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information useful for debugging a hot key detection. - # @!attribute [rw] detected_hot_keys - # @return [::Google::Protobuf::Map{::Integer => ::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo}] - # Debugging information for each detected hot key. Keyed by a hash of the - # key. - class HotKeyDebuggingInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Information about a hot key. - # @!attribute [rw] hot_key_age - # @return [::Google::Protobuf::Duration] - # The age of the hot key measured from when it was first detected. - # @!attribute [rw] key - # @return [::String] - # A detected hot key that is causing limited parallelism. This field will - # be populated only if the following flag is set to true: - # "--enable_hot_key_logging". - # @!attribute [rw] key_truncated - # @return [::Boolean] - # If true, then the above key is truncated and cannot be deserialized. This - # occurs if the key above is populated and the key size is >5MB. - class HotKeyInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::Integer] - # @!attribute [rw] value - # @return [::Google::Cloud::Dataflow::V1beta3::HotKeyDebuggingInfo::HotKeyInfo] - class DetectedHotKeysEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Summarized straggler identification details. - # @!attribute [rw] total_straggler_count - # @return [::Integer] - # The total count of stragglers. - # @!attribute [rw] straggler_cause_count - # @return [::Google::Protobuf::Map{::String => ::Integer}] - # Aggregated counts of straggler causes, keyed by the string representation - # of the StragglerCause enum. - # @!attribute [rw] recent_stragglers - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Straggler>] - # The most recent stragglers. - class StragglerSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Integer] - class StragglerCauseCountEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Information about a particular execution stage of a job. - # @!attribute [rw] stage_id - # @return [::String] - # ID of this stage - # @!attribute [rw] state - # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] - # State of this stage. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Start time of this stage. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # End time of this stage. - # - # If the work item is completed, this is the actual end time of the stage. - # Otherwise, it is the predicted end time. - # @!attribute [rw] progress - # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] - # Progress for this stage. - # Only applicable to Batch jobs. - # @!attribute [rw] metrics - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] - # Metrics for this stage. - # @!attribute [rw] straggler_summary - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerSummary] - # Straggler summary for this stage. - class StageSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about the execution of a job. - # @!attribute [rw] stages - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StageSummary>] - # The stages of the job execution. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, this response does not contain all requested tasks. To obtain - # the next page of results, repeat the request with page_token set to this - # value. - class JobExecutionDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get information about a particular execution stage of a job. - # Currently only tracked for Batch jobs. - # @!attribute [rw] project_id - # @return [::String] - # A project id. - # @!attribute [rw] job_id - # @return [::String] - # The job to get execution details for. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - # contains the job specified by job_id. - # @!attribute [rw] stage_id - # @return [::String] - # The stage for which to fetch information. - # @!attribute [rw] page_size - # @return [::Integer] - # If specified, determines the maximum number of work items to - # return. If unspecified, the service may choose an appropriate - # default, or may return an arbitrarily large number of results. - # @!attribute [rw] page_token - # @return [::String] - # If supplied, this should be the value of next_page_token returned - # by an earlier call. This will cause the next page of results to - # be returned. - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Lower time bound of work items to include, by start time. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # Upper time bound of work items to include, by start time. - class GetStageExecutionDetailsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about an individual work item execution. - # @!attribute [rw] task_id - # @return [::String] - # Name of this work item. - # @!attribute [rw] attempt_id - # @return [::String] - # Attempt ID of this work item - # @!attribute [rw] start_time - # @return [::Google::Protobuf::Timestamp] - # Start time of this work item attempt. - # @!attribute [rw] end_time - # @return [::Google::Protobuf::Timestamp] - # End time of this work item attempt. - # - # If the work item is completed, this is the actual end time of the work - # item. Otherwise, it is the predicted end time. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataflow::V1beta3::ExecutionState] - # State of this work item. - # @!attribute [rw] progress - # @return [::Google::Cloud::Dataflow::V1beta3::ProgressTimeseries] - # Progress of this work item. - # @!attribute [rw] metrics - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::MetricUpdate>] - # Metrics for this work item. - # @!attribute [rw] straggler_info - # @return [::Google::Cloud::Dataflow::V1beta3::StragglerInfo] - # Information about straggler detections for this work item. - class WorkItemDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about a worker - # @!attribute [rw] worker_name - # @return [::String] - # Name of this worker - # @!attribute [rw] work_items - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkItemDetails>] - # Work items processed by this worker, sorted by time. - class WorkerDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Information about the workers and work items within a stage. - # @!attribute [rw] workers - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::WorkerDetails>] - # Workers that have done work on the stage. - # @!attribute [rw] next_page_token - # @return [::String] - # If present, this response does not contain all requested tasks. To obtain - # the next page of results, repeat the request with page_token set to this - # value. - class StageExecutionDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The state of some component of job execution. - module ExecutionState - # The component state is unknown or unspecified. - EXECUTION_STATE_UNKNOWN = 0 - - # The component is not yet running. - EXECUTION_STATE_NOT_STARTED = 1 - - # The component is currently running. - EXECUTION_STATE_RUNNING = 2 - - # The component succeeded. - EXECUTION_STATE_SUCCEEDED = 3 - - # The component failed. - EXECUTION_STATE_FAILED = 4 - - # Execution of the component was cancelled. - EXECUTION_STATE_CANCELLED = 5 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb deleted file mode 100644 index 17febf5681be..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/snapshots.rb +++ /dev/null @@ -1,160 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Represents a Pubsub snapshot. - # @!attribute [rw] topic_name - # @return [::String] - # The name of the Pubsub topic. - # @!attribute [rw] snapshot_name - # @return [::String] - # The name of the Pubsub snapshot. - # @!attribute [rw] expire_time - # @return [::Google::Protobuf::Timestamp] - # The expire time of the Pubsub snapshot. - class PubsubSnapshotMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a snapshot of a job. - # @!attribute [rw] id - # @return [::String] - # The unique ID of this snapshot. - # @!attribute [rw] project_id - # @return [::String] - # The project this snapshot belongs to. - # @!attribute [rw] source_job_id - # @return [::String] - # The job this snapshot was created from. - # @!attribute [rw] creation_time - # @return [::Google::Protobuf::Timestamp] - # The time this snapshot was created. - # @!attribute [rw] ttl - # @return [::Google::Protobuf::Duration] - # The time after which this snapshot will be automatically deleted. - # @!attribute [rw] state - # @return [::Google::Cloud::Dataflow::V1beta3::SnapshotState] - # State of the snapshot. - # @!attribute [rw] pubsub_metadata - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubsubSnapshotMetadata>] - # Pub/Sub snapshot metadata. - # @!attribute [rw] description - # @return [::String] - # User specified description of the snapshot. Maybe empty. - # @!attribute [rw] disk_size_bytes - # @return [::Integer] - # The disk byte size of the snapshot. Only available for snapshots in READY - # state. - # @!attribute [rw] region - # @return [::String] - # Cloud region where this snapshot lives in, e.g., "us-central1". - class Snapshot - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to get information about a snapshot - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @!attribute [rw] snapshot_id - # @return [::String] - # The ID of the snapshot. - # @!attribute [rw] location - # @return [::String] - # The location that contains this snapshot. - class GetSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to delete a snapshot. - # @!attribute [rw] project_id - # @return [::String] - # The ID of the Cloud Platform project that the snapshot belongs to. - # @!attribute [rw] snapshot_id - # @return [::String] - # The ID of the snapshot. - # @!attribute [rw] location - # @return [::String] - # The location that contains this snapshot. - class DeleteSnapshotRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response from deleting a snapshot. - class DeleteSnapshotResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request to list snapshots. - # @!attribute [rw] project_id - # @return [::String] - # The project ID to list snapshots for. - # @!attribute [rw] job_id - # @return [::String] - # If specified, list snapshots created from this job. - # @!attribute [rw] location - # @return [::String] - # The location to list snapshots in. - class ListSnapshotsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # List of snapshots. - # @!attribute [rw] snapshots - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Snapshot>] - # Returned snapshots. - class ListSnapshotsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Snapshot state. - module SnapshotState - # Unknown state. - UNKNOWN_SNAPSHOT_STATE = 0 - - # Snapshot intent to create has been persisted, snapshotting of state has not - # yet started. - PENDING = 1 - - # Snapshotting is being performed. - RUNNING = 2 - - # Snapshot has been created and is ready to be used. - READY = 3 - - # Snapshot failed to be created. - FAILED = 4 - - # Snapshot has been deleted. - DELETED = 5 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb deleted file mode 100644 index 6e5ebcb32b77..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/streaming.rb +++ /dev/null @@ -1,292 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Global topology of the streaming Dataflow job, including all - # computations and their sharded locations. - # @!attribute [rw] computations - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ComputationTopology>] - # The computations associated with a streaming Dataflow job. - # @!attribute [rw] data_disk_assignments - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataDiskAssignment>] - # The disks assigned to a streaming Dataflow job. - # @!attribute [rw] user_stage_to_computation_name_map - # @return [::Google::Protobuf::Map{::String => ::String}] - # Maps user stage names to stable computation names. - # @!attribute [rw] forwarding_key_bits - # @return [::Integer] - # The size (in bits) of keys that will be assigned to source messages. - # @!attribute [rw] persistent_state_version - # @return [::Integer] - # Version number for persistent state. - class TopologyConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class UserStageToComputationNameMapEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Identifies a pubsub location to use for transferring data into or - # out of a streaming Dataflow job. - # @!attribute [rw] topic - # @return [::String] - # A pubsub topic, in the form of - # "pubsub.googleapis.com/topics//" - # @!attribute [rw] subscription - # @return [::String] - # A pubsub subscription, in the form of - # "pubsub.googleapis.com/subscriptions//" - # @!attribute [rw] timestamp_label - # @return [::String] - # If set, contains a pubsub label from which to extract record timestamps. - # If left empty, record timestamps will be generated upon arrival. - # @!attribute [rw] id_label - # @return [::String] - # If set, contains a pubsub label from which to extract record ids. - # If left empty, record deduplication will be strictly best effort. - # @!attribute [rw] drop_late_data - # @return [::Boolean] - # Indicates whether the pipeline allows late-arriving data. - # @!attribute [rw] tracking_subscription - # @return [::String] - # If set, specifies the pubsub subscription that will be used for tracking - # custom time timestamps for watermark estimation. - # @!attribute [rw] with_attributes - # @return [::Boolean] - # If true, then the client has requested to get pubsub attributes. - # @!attribute [rw] dynamic_destinations - # @return [::Boolean] - # If true, then this location represents dynamic topics. - class PubsubLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Identifies the location of a streaming computation stage, for - # stage-to-stage communication. - # @!attribute [rw] stream_id - # @return [::String] - # Identifies the particular stream within the streaming Dataflow - # job. - class StreamingStageLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Identifies the location of a streaming side input. - # @!attribute [rw] tag - # @return [::String] - # Identifies the particular side input within the streaming Dataflow job. - # @!attribute [rw] state_family - # @return [::String] - # Identifies the state family where this side input is stored. - class StreamingSideInputLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Identifies the location of a custom souce. - # @!attribute [rw] stateful - # @return [::Boolean] - # Whether this source is stateful. - class CustomSourceLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes a stream of data, either as input to be processed or as - # output of a streaming Dataflow job. - # @!attribute [rw] streaming_stage_location - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStageLocation] - # The stream is part of another computation within the current - # streaming Dataflow job. - # - # Note: The following fields are mutually exclusive: `streaming_stage_location`, `pubsub_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] pubsub_location - # @return [::Google::Cloud::Dataflow::V1beta3::PubsubLocation] - # The stream is a pubsub stream. - # - # Note: The following fields are mutually exclusive: `pubsub_location`, `streaming_stage_location`, `side_input_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] side_input_location - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingSideInputLocation] - # The stream is a streaming side input. - # - # Note: The following fields are mutually exclusive: `side_input_location`, `streaming_stage_location`, `pubsub_location`, `custom_source_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] custom_source_location - # @return [::Google::Cloud::Dataflow::V1beta3::CustomSourceLocation] - # The stream is a custom source. - # - # Note: The following fields are mutually exclusive: `custom_source_location`, `streaming_stage_location`, `pubsub_location`, `side_input_location`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class StreamLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # State family configuration. - # @!attribute [rw] state_family - # @return [::String] - # The state family value. - # @!attribute [rw] is_read - # @return [::Boolean] - # If true, this family corresponds to a read operation. - class StateFamilyConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # All configuration data for a particular Computation. - # @!attribute [rw] system_stage_name - # @return [::String] - # The system stage name. - # @!attribute [rw] computation_id - # @return [::String] - # The ID of the computation. - # @!attribute [rw] key_ranges - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeLocation>] - # The key ranges processed by the computation. - # @!attribute [rw] inputs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] - # The inputs to the computation. - # @!attribute [rw] outputs - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>] - # The outputs from the computation. - # @!attribute [rw] state_families - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StateFamilyConfig>] - # The state family values. - class ComputationTopology - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Location information for a specific key-range of a sharded computation. - # Currently we only support UTF-8 character splits to simplify encoding into - # JSON. - # @!attribute [rw] start - # @return [::String] - # The start (inclusive) of the key range. - # @!attribute [rw] end - # @return [::String] - # The end (exclusive) of the key range. - # @!attribute [rw] delivery_endpoint - # @return [::String] - # The physical location of this range assignment to be used for - # streaming computation cross-worker message delivery. - # @!attribute [rw] data_disk - # @return [::String] - # The name of the data disk where data for this range is stored. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - # @!attribute [rw] deprecated_persistent_directory - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # DEPRECATED. The location of the persistent state for this range, as a - # persistent directory in the worker local filesystem. - class KeyRangeLocation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes mounted data disk. - # @!attribute [rw] data_disk - # @return [::String] - # The name of the data disk. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - class MountedDataDisk - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data disk assignment for a given VM instance. - # @!attribute [rw] vm_instance - # @return [::String] - # VM instance name the data disks mounted to, for example - # "myproject-1014-104817-4c2-harness-0". - # @!attribute [rw] data_disks - # @return [::Array<::String>] - # Mounted data disks. The order is important a data disk's 0-based index in - # this list defines which persistent directory the disk is mounted to, for - # example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, - # { "myproject-1014-104817-4c2-harness-0-disk-1" }. - class DataDiskAssignment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data disk assignment information for a specific key-range of a sharded - # computation. - # Currently we only support UTF-8 character splits to simplify encoding into - # JSON. - # @!attribute [rw] start - # @return [::String] - # The start (inclusive) of the key range. - # @!attribute [rw] end - # @return [::String] - # The end (exclusive) of the key range. - # @!attribute [rw] data_disk - # @return [::String] - # The name of the data disk where data for this range is stored. - # This name is local to the Google Cloud Platform project and uniquely - # identifies the disk within that project, for example - # "myproject-1014-104817-4c2-harness-0-disk-1". - class KeyRangeDataDiskAssignment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes full or partial data disk assignment information of the computation - # ranges. - # @!attribute [rw] computation_id - # @return [::String] - # The ID of the computation. - # @!attribute [rw] range_assignments - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeDataDiskAssignment>] - # Data disk assignments for ranges from this computation. - class StreamingComputationRanges - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Streaming appliance snapshot configuration. - # @!attribute [rw] snapshot_id - # @return [::String] - # If set, indicates the snapshot id for the snapshot being performed. - # @!attribute [rw] import_state_endpoint - # @return [::String] - # Indicates which endpoint is used to import appliance state. - class StreamingApplianceSnapshotConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb deleted file mode 100644 index 0ae854d8c16d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/dataflow/v1beta3/templates.rb +++ /dev/null @@ -1,856 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module Dataflow - module V1beta3 - # Response to the request to launch a job from Flex Template. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The job that was launched, if the request was not a dry run and - # the job was successfully launched. - class LaunchFlexTemplateResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Container Spec. - # @!attribute [rw] image - # @return [::String] - # Name of the docker container image. E.g., gcr.io/project/some-image - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] - # Metadata describing a template including description and validation rules. - # @!attribute [rw] sdk_info - # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] - # Required. SDK info of the Flex Template. - # @!attribute [rw] default_environment - # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] - # Default runtime environment for the job. - # @!attribute [rw] image_repository_username_secret_id - # @return [::String] - # Secret Manager secret id for username to authenticate to private registry. - # @!attribute [rw] image_repository_password_secret_id - # @return [::String] - # Secret Manager secret id for password to authenticate to private registry. - # @!attribute [rw] image_repository_cert_path - # @return [::String] - # Cloud Storage path to self-signed certificate of private registry. - class ContainerSpec - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Launch FlexTemplate Parameter. - # @!attribute [rw] job_name - # @return [::String] - # Required. The job name to use for the created job. For update job request, - # job name should be same as the existing running job. - # @!attribute [rw] container_spec - # @return [::Google::Cloud::Dataflow::V1beta3::ContainerSpec] - # Spec about the container image to launch. - # - # Note: The following fields are mutually exclusive: `container_spec`, `container_spec_gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] container_spec_gcs_path - # @return [::String] - # Cloud Storage path to a file with json serialized ContainerSpec as - # content. - # - # Note: The following fields are mutually exclusive: `container_spec_gcs_path`, `container_spec`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] parameters - # @return [::Google::Protobuf::Map{::String => ::String}] - # The parameters for FlexTemplate. - # Ex. \\{"num_workers":"5"} - # @!attribute [rw] launch_options - # @return [::Google::Protobuf::Map{::String => ::String}] - # Launch options for this flex template job. This is a common set of options - # across languages and templates. This should not be used to pass job - # parameters. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment] - # The runtime environment for the FlexTemplate job - # @!attribute [rw] update - # @return [::Boolean] - # Set this to true if you are sending a request to update a running - # streaming job. When set, the job name should be the same as the - # running job. - # @!attribute [rw] transform_name_mappings - # @return [::Google::Protobuf::Map{::String => ::String}] - # Use this to pass transform_name_mappings for streaming update jobs. - # Ex:\\{"oldTransformName":"newTransformName",...}' - class LaunchFlexTemplateParameter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ParametersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LaunchOptionsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TransformNameMappingsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The environment values to be set at runtime for flex template. - # @!attribute [rw] num_workers - # @return [::Integer] - # The initial number of Google Compute Engine instances for the job. - # @!attribute [rw] max_workers - # @return [::Integer] - # The maximum number of Google Compute Engine instances to be made - # available to your pipeline during execution, from 1 to 1000. - # @!attribute [rw] zone - # @return [::String] - # The Compute Engine [availability - # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - # for launching worker instances to run your pipeline. - # In the future, worker_zone will take precedence. - # @!attribute [rw] service_account_email - # @return [::String] - # The email address of the service account to run the job as. - # @!attribute [rw] temp_location - # @return [::String] - # The Cloud Storage path to use for temporary files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] machine_type - # @return [::String] - # The machine type to use for the job. Defaults to the value from the - # template if not specified. - # @!attribute [rw] additional_experiments - # @return [::Array<::String>] - # Additional experiment flags for the job. - # @!attribute [rw] network - # @return [::String] - # Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # @!attribute [rw] subnetwork - # @return [::String] - # Subnetwork to which VMs will be assigned, if desired. You can specify a - # subnetwork using either a complete URL or an abbreviated path. Expected to - # be of the form - # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - # a Shared VPC network, you must use the complete URL. - # @!attribute [rw] additional_user_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Additional user labels to be specified for the job. - # Keys and values must follow the restrictions specified in the [labeling - # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - # page. - # An object containing a list of "key": value pairs. - # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - # @!attribute [rw] kms_key_name - # @return [::String] - # Name for the Cloud KMS key for the job. - # Key format is: - # projects//locations//keyRings//cryptoKeys/ - # @!attribute [rw] ip_configuration - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] - # Configuration for VM IPs. - # @!attribute [rw] worker_region - # @return [::String] - # The Compute Engine region - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1". Mutually exclusive - # with worker_zone. If neither worker_region nor worker_zone is specified, - # default to the control plane's region. - # @!attribute [rw] worker_zone - # @return [::String] - # The Compute Engine zone - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - # with worker_region. If neither worker_region nor worker_zone is specified, - # a zone in the control plane's region is chosen based on available capacity. - # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - # @!attribute [rw] enable_streaming_engine - # @return [::Boolean] - # Whether to enable Streaming Engine for the job. - # @!attribute [rw] flexrs_goal - # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal] - # Set FlexRS goal for the job. - # https://cloud.google.com/dataflow/docs/guides/flexrs - # @!attribute [rw] staging_location - # @return [::String] - # The Cloud Storage path for staging local files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] sdk_container_image - # @return [::String] - # Docker registry location of container image to use for the 'worker harness. - # Default is the container for the version of the SDK. Note this field is - # only valid for portable pipelines. - # @!attribute [rw] disk_size_gb - # @return [::Integer] - # Worker disk size, in gigabytes. - # @!attribute [rw] autoscaling_algorithm - # @return [::Google::Cloud::Dataflow::V1beta3::AutoscalingAlgorithm] - # The algorithm to use for autoscaling - # @!attribute [rw] dump_heap_on_oom - # @return [::Boolean] - # If true, when processing time is spent almost entirely - # on garbage collection (GC), saves a heap dump before ending the thread - # or process. If false, ends the thread or process without saving a heap - # dump. Does not save a heap dump when the Java Virtual Machine (JVM) has an - # out of memory error during processing. The location of the heap file is - # either echoed back to the user, or the user is given the opportunity to - # download the heap file. - # @!attribute [rw] save_heap_dumps_to_gcs_path - # @return [::String] - # Cloud Storage bucket (directory) to upload heap dumps to. - # Enabling this field implies that `dump_heap_on_oom` is set to true. - # @!attribute [rw] launcher_machine_type - # @return [::String] - # The machine type to use for launching the job. The default is - # n1-standard-1. - # @!attribute [rw] enable_launcher_vm_serial_port_logging - # @return [::Boolean] - # If true serial port logging will be enabled for the launcher VM. - # @!attribute [rw] streaming_mode - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] - # Optional. Specifies the Streaming Engine message processing guarantees. - # Reduces cost and latency but might result in duplicate messages committed - # to storage. Designed to run simple mapping streaming ETL jobs at the lowest - # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - # @!attribute [rw] additional_pipeline_options - # @return [::Array<::String>] - # Optional. Additional pipeline option flags for the job. - class FlexTemplateRuntimeEnvironment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalUserLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A request to launch a Cloud Dataflow job from a FlexTemplate. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] launch_parameter - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter] - # Required. Parameter to launch a job form Flex Template. - # @!attribute [rw] location - # @return [::String] - # Required. The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. E.g., us-central1, us-west1. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - class LaunchFlexTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The environment values to set at runtime. - # @!attribute [rw] num_workers - # @return [::Integer] - # Optional. The initial number of Google Compute Engine instances for the - # job. The default value is 11. - # @!attribute [rw] max_workers - # @return [::Integer] - # Optional. The maximum number of Google Compute Engine instances to be made - # available to your pipeline during execution, from 1 to 1000. The default - # value is 1. - # @!attribute [rw] zone - # @return [::String] - # Optional. The Compute Engine [availability - # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - # for launching worker instances to run your pipeline. - # In the future, worker_zone will take precedence. - # @!attribute [rw] service_account_email - # @return [::String] - # Optional. The email address of the service account to run the job as. - # @!attribute [rw] temp_location - # @return [::String] - # Required. The Cloud Storage path to use for temporary files. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] bypass_temp_dir_validation - # @return [::Boolean] - # Optional. Whether to bypass the safety checks for the job's temporary - # directory. Use with caution. - # @!attribute [rw] machine_type - # @return [::String] - # Optional. The machine type to use for the job. Defaults to the value from - # the template if not specified. - # @!attribute [rw] additional_experiments - # @return [::Array<::String>] - # Optional. Additional experiment flags for the job, specified with the - # `--experiments` option. - # @!attribute [rw] network - # @return [::String] - # Optional. Network to which VMs will be assigned. If empty or unspecified, - # the service will use the network "default". - # @!attribute [rw] subnetwork - # @return [::String] - # Optional. Subnetwork to which VMs will be assigned, if desired. You can - # specify a subnetwork using either a complete URL or an abbreviated path. - # Expected to be of the form - # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - # a Shared VPC network, you must use the complete URL. - # @!attribute [rw] additional_user_labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Additional user labels to be specified for the job. - # Keys and values should follow the restrictions specified in the [labeling - # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - # page. - # An object containing a list of "key": value pairs. - # Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - # @!attribute [rw] kms_key_name - # @return [::String] - # Optional. Name for the Cloud KMS key for the job. - # Key format is: - # projects//locations//keyRings//cryptoKeys/ - # @!attribute [rw] ip_configuration - # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration] - # Optional. Configuration for VM IPs. - # @!attribute [rw] worker_region - # @return [::String] - # Required. The Compute Engine region - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1". Mutually exclusive - # with worker_zone. If neither worker_region nor worker_zone is specified, - # default to the control plane's region. - # @!attribute [rw] worker_zone - # @return [::String] - # Optional. The Compute Engine zone - # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - # with worker_region. If neither worker_region nor worker_zone is specified, - # a zone in the control plane's region is chosen based on available capacity. - # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - # @!attribute [rw] enable_streaming_engine - # @return [::Boolean] - # Optional. Whether to enable Streaming Engine for the job. - # @!attribute [rw] disk_size_gb - # @return [::Integer] - # Optional. The disk size, in gigabytes, to use on each remote Compute Engine - # worker instance. - # @!attribute [rw] streaming_mode - # @return [::Google::Cloud::Dataflow::V1beta3::StreamingMode] - # Optional. Specifies the Streaming Engine message processing guarantees. - # Reduces cost and latency but might result in duplicate messages committed - # to storage. Designed to run simple mapping streaming ETL jobs at the lowest - # cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use - # case. For more information, see - # [Set the pipeline streaming - # mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes). - # @!attribute [rw] additional_pipeline_options - # @return [::Array<::String>] - # Optional. Additional pipeline option flags for the job. - class RuntimeEnvironment - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AdditionalUserLabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # ParameterMetadataEnumOption specifies the option shown in the enum form. - # @!attribute [rw] value - # @return [::String] - # Required. The value of the enum option. - # @!attribute [rw] label - # @return [::String] - # Optional. The label to display for the enum option. - # @!attribute [rw] description - # @return [::String] - # Optional. The description to display for the enum option. - class ParameterMetadataEnumOption - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Metadata for a specific parameter. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the parameter. - # @!attribute [rw] label - # @return [::String] - # Required. The label to display for the parameter. - # @!attribute [rw] help_text - # @return [::String] - # Required. The help text to display for the parameter. - # @!attribute [rw] is_optional - # @return [::Boolean] - # Optional. Whether the parameter is optional. Defaults to false. - # @!attribute [rw] regexes - # @return [::Array<::String>] - # Optional. Regexes that the parameter must match. - # @!attribute [rw] param_type - # @return [::Google::Cloud::Dataflow::V1beta3::ParameterType] - # Optional. The type of the parameter. - # Used for selecting input picker. - # @!attribute [rw] custom_metadata - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Additional metadata for describing this parameter. - # @!attribute [rw] group_name - # @return [::String] - # Optional. Specifies a group name for this parameter to be rendered under. - # Group header text will be rendered exactly as specified in this field. Only - # considered when parent_name is NOT provided. - # @!attribute [rw] parent_name - # @return [::String] - # Optional. Specifies the name of the parent parameter. Used in conjunction - # with 'parent_trigger_values' to make this parameter conditional (will only - # be rendered conditionally). Should be mappable to a ParameterMetadata.name - # field. - # @!attribute [rw] parent_trigger_values - # @return [::Array<::String>] - # Optional. The value(s) of the 'parent_name' parameter which will trigger - # this parameter to be shown. If left empty, ANY non-empty value in - # parent_name will trigger this parameter to be shown. Only considered when - # this parameter is conditional (when 'parent_name' has been provided). - # @!attribute [rw] enum_options - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadataEnumOption>] - # Optional. The options shown when ENUM ParameterType is specified. - # @!attribute [rw] default_value - # @return [::String] - # Optional. The default values will pre-populate the parameter with the - # given value from the proto. If default_value is left empty, the parameter - # will be populated with a default of the relevant type, e.g. false for a - # boolean. - # @!attribute [rw] hidden_ui - # @return [::Boolean] - # Optional. Whether the parameter should be hidden in the UI. - class ParameterMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class CustomMetadataEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Metadata describing a template. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the template. - # @!attribute [rw] description - # @return [::String] - # Optional. A description of the template. - # @!attribute [rw] parameters - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] - # The parameters for the template. - # @!attribute [rw] streaming - # @return [::Boolean] - # Optional. Indicates if the template is streaming or not. - # @!attribute [rw] supports_at_least_once - # @return [::Boolean] - # Optional. Indicates if the streaming template supports at least once mode. - # @!attribute [rw] supports_exactly_once - # @return [::Boolean] - # Optional. Indicates if the streaming template supports exactly once mode. - # @!attribute [rw] default_streaming_mode - # @return [::String] - # Optional. Indicates the default streaming mode for a streaming template. - # Only valid if both supports_at_least_once and supports_exactly_once are - # true. Possible values: UNSPECIFIED, EXACTLY_ONCE and AT_LEAST_ONCE - class TemplateMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # SDK Information. - # @!attribute [rw] language - # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo::Language] - # Required. The SDK Language. - # @!attribute [rw] version - # @return [::String] - # Optional. The SDK version. - class SDKInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # SDK Language. - module Language - # UNKNOWN Language. - UNKNOWN = 0 - - # Java. - JAVA = 1 - - # Python. - PYTHON = 2 - - # Go. - GO = 3 - - # YAML. - YAML = 4 - end - end - - # RuntimeMetadata describing a runtime environment. - # @!attribute [rw] sdk_info - # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo] - # SDK Info for the template. - # @!attribute [rw] parameters - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>] - # The parameters for the template. - class RuntimeMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A request to create a Cloud Dataflow job from a template. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] job_name - # @return [::String] - # Required. The job name to use for the created job. - # @!attribute [rw] gcs_path - # @return [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - # @!attribute [rw] parameters - # @return [::Google::Protobuf::Map{::String => ::String}] - # The runtime parameters to pass to the job. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] - # The runtime environment for the job. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - class CreateJobFromTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ParametersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A request to retrieve a Cloud Dataflow job template. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] gcs_path - # @return [::String] - # Required. A Cloud Storage path to the template from which to - # create the job. - # Must be valid Cloud Storage URL, beginning with 'gs://'. - # @!attribute [rw] view - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView] - # The view to retrieve. Defaults to METADATA_ONLY. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - class GetTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various views of a template that may be retrieved. - module TemplateView - # Template view that retrieves only the metadata associated with the - # template. - METADATA_ONLY = 0 - end - end - - # The response to a GetTemplate request. - # @!attribute [rw] status - # @return [::Google::Rpc::Status] - # The status of the get template request. Any problems with the - # request will be indicated in the error_details. - # @!attribute [rw] metadata - # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata] - # The template metadata describing the template name, available - # parameters, etc. - # @!attribute [rw] template_type - # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse::TemplateType] - # Template Type. - # @!attribute [rw] runtime_metadata - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeMetadata] - # Describes the runtime metadata with SDKInfo and available parameters. - class GetTemplateResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Template Type. - module TemplateType - # Unknown Template Type. - UNKNOWN = 0 - - # Legacy Template. - LEGACY = 1 - - # Flex Template. - FLEX = 2 - end - end - - # Parameters to provide to the template being launched. Note that the - # [metadata in the pipeline code] - # (https://cloud.google.com/dataflow/docs/guides/templates/creating-templates#metadata) - # determines which runtime parameters are valid. - # @!attribute [rw] job_name - # @return [::String] - # Required. The job name to use for the created job. - # - # The name must match the regular expression - # `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - # @!attribute [rw] parameters - # @return [::Google::Protobuf::Map{::String => ::String}] - # The runtime parameters to pass to the job. - # @!attribute [rw] environment - # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment] - # The runtime environment for the job. - # @!attribute [rw] update - # @return [::Boolean] - # If set, replace the existing pipeline with the name specified by jobName - # with this pipeline, preserving state. - # @!attribute [rw] transform_name_mapping - # @return [::Google::Protobuf::Map{::String => ::String}] - # Only applicable when updating a pipeline. Map of transform name prefixes of - # the job to be replaced to the corresponding name prefixes of the new job. - class LaunchTemplateParameters - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ParametersEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TransformNameMappingEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A request to launch a template. - # @!attribute [rw] project_id - # @return [::String] - # Required. The ID of the Cloud Platform project that the job belongs to. - # @!attribute [rw] validate_only - # @return [::Boolean] - # If true, the request is validated but not actually executed. - # Defaults to false. - # @!attribute [rw] gcs_path - # @return [::String] - # A Cloud Storage path to the template to use to create - # the job. - # Must be valid Cloud Storage URL, beginning with `gs://`. - # - # Note: The following fields are mutually exclusive: `gcs_path`, `dynamic_template`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dynamic_template - # @return [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams] - # Parameters for launching a dynamic template. - # - # Note: The following fields are mutually exclusive: `dynamic_template`, `gcs_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] launch_parameters - # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters] - # The parameters of the template to launch. Part of the - # body of the POST request. - # @!attribute [rw] location - # @return [::String] - # The [regional endpoint] - # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - # which to direct the request. - class LaunchTemplateRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response to the request to launch a template. - # @!attribute [rw] job - # @return [::Google::Cloud::Dataflow::V1beta3::Job] - # The job that was launched, if the request was not a dry run and - # the job was successfully launched. - class LaunchTemplateResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Used in the error_details field of a google.rpc.Status message, this - # indicates problems with the template parameter. - # @!attribute [rw] parameter_violations - # @return [::Array<::Google::Cloud::Dataflow::V1beta3::InvalidTemplateParameters::ParameterViolation>] - # Describes all parameter violations in a template request. - class InvalidTemplateParameters - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A specific template-parameter violation. - # @!attribute [rw] parameter - # @return [::String] - # The parameter that failed to validate. - # @!attribute [rw] description - # @return [::String] - # A description of why the parameter failed to validate. - class ParameterViolation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Parameters to pass when launching a dynamic template. - # @!attribute [rw] gcs_path - # @return [::String] - # Path to the dynamic template specification file on Cloud Storage. - # The file must be a JSON serialized `DynamicTemplateFileSpec` object. - # @!attribute [rw] staging_location - # @return [::String] - # Cloud Storage path for staging dependencies. - # Must be a valid Cloud Storage URL, beginning with `gs://`. - class DynamicTemplateLaunchParams - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # ParameterType specifies what kind of input we need for this parameter. - module ParameterType - # Default input type. - DEFAULT = 0 - - # The parameter specifies generic text input. - TEXT = 1 - - # The parameter specifies a Cloud Storage Bucket to read from. - GCS_READ_BUCKET = 2 - - # The parameter specifies a Cloud Storage Bucket to write to. - GCS_WRITE_BUCKET = 3 - - # The parameter specifies a Cloud Storage file path to read from. - GCS_READ_FILE = 4 - - # The parameter specifies a Cloud Storage file path to write to. - GCS_WRITE_FILE = 5 - - # The parameter specifies a Cloud Storage folder path to read from. - GCS_READ_FOLDER = 6 - - # The parameter specifies a Cloud Storage folder to write to. - GCS_WRITE_FOLDER = 7 - - # The parameter specifies a Pub/Sub Topic. - PUBSUB_TOPIC = 8 - - # The parameter specifies a Pub/Sub Subscription. - PUBSUB_SUBSCRIPTION = 9 - - # The parameter specifies a BigQuery table. - BIGQUERY_TABLE = 10 - - # The parameter specifies a JavaScript UDF in Cloud Storage. - JAVASCRIPT_UDF_FILE = 11 - - # The parameter specifies a Service Account email. - SERVICE_ACCOUNT = 12 - - # The parameter specifies a Machine Type. - MACHINE_TYPE = 13 - - # The parameter specifies a KMS Key name. - KMS_KEY_NAME = 14 - - # The parameter specifies a Worker Region. - WORKER_REGION = 15 - - # The parameter specifies a Worker Zone. - WORKER_ZONE = 16 - - # The parameter specifies a boolean input. - BOOLEAN = 17 - - # The parameter specifies an enum input. - ENUM = 18 - - # The parameter specifies a number input. - NUMBER = 19 - - # Deprecated. Please use KAFKA_READ_TOPIC instead. - KAFKA_TOPIC = 20 - - # The parameter specifies the fully-qualified name of an Apache Kafka topic. - # This can be either a Google Managed Kafka topic or a non-managed Kafka - # topic. - KAFKA_READ_TOPIC = 21 - - # The parameter specifies the fully-qualified name of an Apache Kafka topic. - # This can be an existing Google Managed Kafka topic, the name for a new - # Google Managed Kafka topic, or an existing non-managed Kafka topic. - KAFKA_WRITE_TOPIC = 22 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb deleted file mode 100644 index 39e1aca868d2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/struct.rb +++ /dev/null @@ -1,108 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Struct` represents a structured data value, consisting of fields - # which map to dynamically typed values. In some languages, `Struct` - # might be supported by a native representation. For example, in - # scripting languages like JS a struct is represented as an - # object. The details of that representation are described together - # with the proto support for the language. - # - # The JSON representation for `Struct` is JSON object. - # @!attribute [rw] fields - # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] - # Unordered map of dynamically typed values. - class Struct - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Protobuf::Value] - class FieldsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # `Value` represents a dynamically typed value which can be either - # null, a number, a string, a boolean, a recursive struct value, or a - # list of values. A producer of value is expected to set one of these - # variants. Absence of any variant indicates an error. - # - # The JSON representation for `Value` is JSON value. - # @!attribute [rw] null_value - # @return [::Google::Protobuf::NullValue] - # Represents a null value. - # - # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] number_value - # @return [::Float] - # Represents a double value. - # - # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_value - # @return [::String] - # Represents a string value. - # - # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bool_value - # @return [::Boolean] - # Represents a boolean value. - # - # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] struct_value - # @return [::Google::Protobuf::Struct] - # Represents a structured value. - # - # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] list_value - # @return [::Google::Protobuf::ListValue] - # Represents a repeated `Value`. - # - # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `ListValue` is a wrapper around a repeated field of values. - # - # The JSON representation for `ListValue` is JSON array. - # @!attribute [rw] values - # @return [::Array<::Google::Protobuf::Value>] - # Repeated field of dynamically typed values. - class ListValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `NullValue` is a singleton enumeration to represent the null value for the - # `Value` type union. - # - # The JSON representation for `NullValue` is JSON `null`. - module NullValue - # Null value. - NULL_VALUE = 0 - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile deleted file mode 100644 index 01167825a42e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-dataflow-v1beta3", path: "../" -else - gem "google-cloud-dataflow-v1beta3" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb deleted file mode 100644 index c35bc1a9c0d8..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/flex_templates_service/launch_flex_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the launch_flex_template call in the FlexTemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template. -# -def launch_flex_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new - - # Call the launch_flex_template method. - result = client.launch_flex_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. - p result -end -# [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb deleted file mode 100644 index 350fd7267981..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/aggregated_list_jobs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the aggregated_list_jobs call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs. -# -def aggregated_list_jobs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - - # Call the aggregated_list_jobs method. - result = client.aggregated_list_jobs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - p item - end -end -# [END dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb deleted file mode 100644 index 63db36fb5f30..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/check_active_jobs.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the check_active_jobs call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs. -# -def check_active_jobs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new - - # Call the check_active_jobs method. - result = client.check_active_jobs request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse. - p result -end -# [END dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb deleted file mode 100644 index 0146cf807873..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/create_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_CreateJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the create_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job. -# -def create_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new - - # Call the create_job method. - result = client.create_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_Jobs_CreateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb deleted file mode 100644 index 3ef8f929a9a3..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/get_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_GetJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job. -# -def get_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetJobRequest.new - - # Call the get_job method. - result = client.get_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_Jobs_GetJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb deleted file mode 100644 index f162cd9f38bb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/list_jobs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_ListJobs_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the list_jobs call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs. -# -def list_jobs - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new - - # Call the list_jobs method. - result = client.list_jobs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::Job. - p item - end -end -# [END dataflow_v1beta3_generated_Jobs_ListJobs_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb deleted file mode 100644 index 3977d863c903..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/snapshot_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the snapshot_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job. -# -def snapshot_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new - - # Call the snapshot_job method. - result = client.snapshot_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - p result -end -# [END dataflow_v1beta3_generated_Jobs_SnapshotJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb deleted file mode 100644 index 48a87bd69ab6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/jobs/update_job.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Jobs_UpdateJob_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the update_job call in the Jobs service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job. -# -def update_job - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Jobs::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new - - # Call the update_job method. - result = client.update_job request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_Jobs_UpdateJob_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb deleted file mode 100644 index 08252fdfefb9..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/messages/list_job_messages.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Messages_ListJobMessages_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the list_job_messages call in the Messages service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages. -# -def list_job_messages - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Messages::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new - - # Call the list_job_messages method. - result = client.list_job_messages request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::JobMessage. - p item - end -end -# [END dataflow_v1beta3_generated_Messages_ListJobMessages_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb deleted file mode 100644 index 3a9fe8c49ae6..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_execution_details.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_job_execution_details call in the Metrics service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details. -# -def get_job_execution_details - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new - - # Call the get_job_execution_details method. - result = client.get_job_execution_details request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::StageSummary. - p item - end -end -# [END dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb deleted file mode 100644 index f1e36d3c56cf..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_job_metrics.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_job_metrics call in the Metrics service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics. -# -def get_job_metrics - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new - - # Call the get_job_metrics method. - result = client.get_job_metrics request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::JobMetrics. - p result -end -# [END dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb deleted file mode 100644 index f2e1803d1483..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/metrics/get_stage_execution_details.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_stage_execution_details call in the Metrics service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details. -# -def get_stage_execution_details - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Metrics::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new - - # Call the get_stage_execution_details method. - result = client.get_stage_execution_details request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::Dataflow::V1beta3::WorkerDetails. - p item - end -end -# [END dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb deleted file mode 100644 index a16cafd731d2..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/delete_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the delete_snapshot call in the Snapshots service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot. -# -def delete_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new - - # Call the delete_snapshot method. - result = client.delete_snapshot request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse. - p result -end -# [END dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb deleted file mode 100644 index e6f4de5a2ddb..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/get_snapshot.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_snapshot call in the Snapshots service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot. -# -def get_snapshot - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new - - # Call the get_snapshot method. - result = client.get_snapshot request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Snapshot. - p result -end -# [END dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb deleted file mode 100644 index a724bf4f121b..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snapshots/list_snapshots.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the list_snapshots call in the Snapshots service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots. -# -def list_snapshots - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new - - # Call the list_snapshots method. - result = client.list_snapshots request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse. - p result -end -# [END dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json deleted file mode 100644 index 9760df90c641..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/snippet_metadata_google.dataflow.v1beta3.json +++ /dev/null @@ -1,735 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-dataflow-v1beta3", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.dataflow.v1beta3", - "version": "v1beta3" - } - ] - }, - "snippets": [ - { - "region_tag": "dataflow_v1beta3_generated_Snapshots_GetSnapshot_sync", - "title": "Snippet for the get_snapshot call in the Snapshots service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot.", - "file": "snapshots/get_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_snapshot", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#get_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", - "client": { - "short_name": "Snapshots::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" - }, - "method": { - "short_name": "GetSnapshot", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", - "service": { - "short_name": "Snapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Snapshots_DeleteSnapshot_sync", - "title": "Snippet for the delete_snapshot call in the Snapshots service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot.", - "file": "snapshots/delete_snapshot.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_snapshot", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#delete_snapshot", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse", - "client": { - "short_name": "Snapshots::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" - }, - "method": { - "short_name": "DeleteSnapshot", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "service": { - "short_name": "Snapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Snapshots_ListSnapshots_sync", - "title": "Snippet for the list_snapshots call in the Snapshots service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots.", - "file": "snapshots/list_snapshots.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_snapshots", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client#list_snapshots", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse", - "client": { - "short_name": "Snapshots::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Snapshots::Client" - }, - "method": { - "short_name": "ListSnapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", - "service": { - "short_name": "Snapshots", - "full_name": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_CreateJob_sync", - "title": "Snippet for the create_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job.", - "file": "jobs/create_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#create_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "CreateJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_GetJob_sync", - "title": "Snippet for the get_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job.", - "file": "jobs/get_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#get_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "GetJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_UpdateJob_sync", - "title": "Snippet for the update_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job.", - "file": "jobs/update_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#update_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "UpdateJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_ListJobs_sync", - "title": "Snippet for the list_jobs call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs.", - "file": "jobs/list_jobs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_jobs", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#list_jobs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "ListJobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_AggregatedListJobs_sync", - "title": "Snippet for the aggregated_list_jobs call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs.", - "file": "jobs/aggregated_list_jobs.rb", - "language": "RUBY", - "client_method": { - "short_name": "aggregated_list_jobs", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#aggregated_list_jobs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListJobsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobsResponse", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "AggregatedListJobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_CheckActiveJobs_sync", - "title": "Snippet for the check_active_jobs call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs.", - "file": "jobs/check_active_jobs.rb", - "language": "RUBY", - "client_method": { - "short_name": "check_active_jobs", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#check_active_jobs", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "CheckActiveJobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Jobs_SnapshotJob_sync", - "title": "Snippet for the snapshot_job call in the Jobs service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job.", - "file": "jobs/snapshot_job.rb", - "language": "RUBY", - "client_method": { - "short_name": "snapshot_job", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client#snapshot_job", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Snapshot", - "client": { - "short_name": "Jobs::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Jobs::Client" - }, - "method": { - "short_name": "SnapshotJob", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", - "service": { - "short_name": "Jobs", - "full_name": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Messages_ListJobMessages_sync", - "title": "Snippet for the list_job_messages call in the Messages service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages.", - "file": "messages/list_job_messages.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_job_messages", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client#list_job_messages", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse", - "client": { - "short_name": "Messages::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Messages::Client" - }, - "method": { - "short_name": "ListJobMessages", - "full_name": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "service": { - "short_name": "Messages", - "full_name": "google.dataflow.v1beta3.MessagesV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobMetrics_sync", - "title": "Snippet for the get_job_metrics call in the Metrics service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics.", - "file": "metrics/get_job_metrics.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_job_metrics", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_metrics", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::JobMetrics", - "client": { - "short_name": "Metrics::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" - }, - "method": { - "short_name": "GetJobMetrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "service": { - "short_name": "Metrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Metrics_GetJobExecutionDetails_sync", - "title": "Snippet for the get_job_execution_details call in the Metrics service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details.", - "file": "metrics/get_job_execution_details.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_job_execution_details", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_job_execution_details", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails", - "client": { - "short_name": "Metrics::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" - }, - "method": { - "short_name": "GetJobExecutionDetails", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "service": { - "short_name": "Metrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_Metrics_GetStageExecutionDetails_sync", - "title": "Snippet for the get_stage_execution_details call in the Metrics service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details.", - "file": "metrics/get_stage_execution_details.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_stage_execution_details", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client#get_stage_execution_details", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails", - "client": { - "short_name": "Metrics::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::Metrics::Client" - }, - "method": { - "short_name": "GetStageExecutionDetails", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "service": { - "short_name": "Metrics", - "full_name": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync", - "title": "Snippet for the create_job_from_template call in the TemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template.", - "file": "templates_service/create_job_from_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_job_from_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::Job", - "client": { - "short_name": "TemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" - }, - "method": { - "short_name": "CreateJobFromTemplate", - "full_name": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", - "service": { - "short_name": "TemplatesService", - "full_name": "google.dataflow.v1beta3.TemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync", - "title": "Snippet for the launch_template call in the TemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template.", - "file": "templates_service/launch_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "launch_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse", - "client": { - "short_name": "TemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" - }, - "method": { - "short_name": "LaunchTemplate", - "full_name": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", - "service": { - "short_name": "TemplatesService", - "full_name": "google.dataflow.v1beta3.TemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync", - "title": "Snippet for the get_template call in the TemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template.", - "file": "templates_service/get_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse", - "client": { - "short_name": "TemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client" - }, - "method": { - "short_name": "GetTemplate", - "full_name": "google.dataflow.v1beta3.TemplatesService.GetTemplate", - "service": { - "short_name": "TemplatesService", - "full_name": "google.dataflow.v1beta3.TemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync", - "title": "Snippet for the launch_flex_template call in the FlexTemplatesService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template.", - "file": "flex_templates_service/launch_flex_template.rb", - "language": "RUBY", - "client_method": { - "short_name": "launch_flex_template", - "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client#launch_flex_template", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse", - "client": { - "short_name": "FlexTemplatesService::Client", - "full_name": "::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client" - }, - "method": { - "short_name": "LaunchFlexTemplate", - "full_name": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", - "service": { - "short_name": "FlexTemplatesService", - "full_name": "google.dataflow.v1beta3.FlexTemplatesService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb deleted file mode 100644 index 26f922f93b7a..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/create_job_from_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the create_job_from_template call in the TemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#create_job_from_template. -# -def create_job_from_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new - - # Call the create_job_from_template method. - result = client.create_job_from_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::Job. - p result -end -# [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb deleted file mode 100644 index c7b6af16bd9f..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/get_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the get_template call in the TemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#get_template. -# -def get_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new - - # Call the get_template method. - result = client.get_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::GetTemplateResponse. - p result -end -# [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb deleted file mode 100644 index 4ae948746683..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/snippets/templates_service/launch_template.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] -require "google/cloud/dataflow/v1beta3" - -## -# Snippet for the launch_template call in the TemplatesService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::Dataflow::V1beta3::TemplatesService::Client#launch_template. -# -def launch_template - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new - - # Call the launch_template method. - result = client.launch_template request - - # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse. - p result -end -# [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb deleted file mode 100644 index 600598d57b37..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_rest_test.rb +++ /dev/null @@ -1,156 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/flex_templates_service/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_launch_flex_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - launch_parameter = {} - location = "hello world" - validate_only = true - - launch_flex_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::ServiceStub.stub :transcode_launch_flex_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, launch_flex_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, launch_flex_template_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb deleted file mode 100644 index eea77dd3921e..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/flex_templates_service_test.rb +++ /dev/null @@ -1,168 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/flex_templates_service" - -class ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_launch_flex_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - launch_parameter = {} - location = "hello world" - validate_only = true - - launch_flex_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :launch_flex_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter), request["launch_parameter"] - assert_equal "hello world", request["location"] - assert_equal true, request["validate_only"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, launch_flex_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.launch_flex_template project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.launch_flex_template ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.launch_flex_template({ project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.launch_flex_template(::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new(project_id: project_id, launch_parameter: launch_parameter, location: location, validate_only: validate_only), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, launch_flex_template_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb deleted file mode 100644 index f3581d57744c..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_rest_test.rb +++ /dev/null @@ -1,451 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/jobs_pb" -require "google/cloud/dataflow/v1beta3/jobs/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job = {} - view = :JOB_VIEW_UNKNOWN - replace_job_id = "hello world" - location = "hello world" - - create_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_create_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_job_client_stub.call_count - end - end - end - - def test_get_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - view = :JOB_VIEW_UNKNOWN - location = "hello world" - - get_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_get_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_job_client_stub.call_count - end - end - end - - def test_update_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - job = {} - location = "hello world" - update_mask = {} - - update_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_update_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_job_client_stub.call_count - end - end - end - - def test_list_jobs - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_list_jobs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_jobs_client_stub.call_count - end - end - end - - def test_aggregated_list_jobs - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - aggregated_list_jobs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_aggregated_list_jobs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, aggregated_list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, aggregated_list_jobs_client_stub.call_count - end - end - end - - def test_snapshot_job - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - ttl = {} - location = "hello world" - snapshot_sources = true - description = "hello world" - - snapshot_job_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::ServiceStub.stub :transcode_snapshot_job_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, snapshot_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, snapshot_job_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb deleted file mode 100644 index e34decfc428d..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/jobs_test.rb +++ /dev/null @@ -1,579 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/jobs_pb" -require "google/cloud/dataflow/v1beta3/jobs" - -class ::Google::Cloud::Dataflow::V1beta3::Jobs::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job = {} - view = :JOB_VIEW_UNKNOWN - replace_job_id = "hello world" - location = "hello world" - - create_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal "hello world", request["replace_job_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_job project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_job ::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_job({ project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_job(::Google::Cloud::Dataflow::V1beta3::CreateJobRequest.new(project_id: project_id, job: job, view: view, replace_job_id: replace_job_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_job_client_stub.call_rpc_count - end - end - - def test_get_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - view = :JOB_VIEW_UNKNOWN - location = "hello world" - - get_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_job project_id: project_id, job_id: job_id, view: view, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_job ::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_job({ project_id: project_id, job_id: job_id, view: view, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_job(::Google::Cloud::Dataflow::V1beta3::GetJobRequest.new(project_id: project_id, job_id: job_id, view: view, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_job_client_stub.call_rpc_count - end - end - - def test_update_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - job = {} - location = "hello world" - update_mask = {} - - update_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::Job), request["job"] - assert_equal "hello world", request["location"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert request.has_update_mask? - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_job project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_job ::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_job({ project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_job(::Google::Cloud::Dataflow::V1beta3::UpdateJobRequest.new(project_id: project_id, job_id: job_id, job: job, location: location, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_job_client_stub.call_rpc_count - end - end - - def test_list_jobs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_jobs, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request - assert_equal :UNKNOWN, request["filter"] - assert_equal "hello world", request["project_id"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["location"] - assert_equal "hello world", request["name"] - assert request.has_name? - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_jobs_client_stub.call_rpc_count - end - end - - def test_aggregated_list_jobs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - filter = :UNKNOWN - project_id = "hello world" - view = :JOB_VIEW_UNKNOWN - page_size = 42 - page_token = "hello world" - location = "hello world" - name = "hello world" - - aggregated_list_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :aggregated_list_jobs, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest, request - assert_equal :UNKNOWN, request["filter"] - assert_equal "hello world", request["project_id"] - assert_equal :JOB_VIEW_UNKNOWN, request["view"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["location"] - assert_equal "hello world", request["name"] - assert request.has_name? - refute_nil options - end - - Gapic::ServiceStub.stub :new, aggregated_list_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.aggregated_list_jobs filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.aggregated_list_jobs ::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.aggregated_list_jobs({ filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.aggregated_list_jobs(::Google::Cloud::Dataflow::V1beta3::ListJobsRequest.new(filter: filter, project_id: project_id, view: view, page_size: page_size, page_token: page_token, location: location, name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, aggregated_list_jobs_client_stub.call_rpc_count - end - end - - def test_check_active_jobs - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - - check_active_jobs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :check_active_jobs, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest, request - assert_equal "hello world", request["project_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, check_active_jobs_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.check_active_jobs({ project_id: project_id }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.check_active_jobs project_id: project_id do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.check_active_jobs ::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.check_active_jobs({ project_id: project_id }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.check_active_jobs(::Google::Cloud::Dataflow::V1beta3::CheckActiveJobsRequest.new(project_id: project_id), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, check_active_jobs_client_stub.call_rpc_count - end - end - - def test_snapshot_job - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - ttl = {} - location = "hello world" - snapshot_sources = true - description = "hello world" - - snapshot_job_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :snapshot_job, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["ttl"] - assert_equal "hello world", request["location"] - assert_equal true, request["snapshot_sources"] - assert_equal "hello world", request["description"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, snapshot_job_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.snapshot_job project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.snapshot_job ::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.snapshot_job({ project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.snapshot_job(::Google::Cloud::Dataflow::V1beta3::SnapshotJobRequest.new(project_id: project_id, job_id: job_id, ttl: ttl, location: location, snapshot_sources: snapshot_sources, description: description), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, snapshot_job_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Jobs::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Jobs::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb deleted file mode 100644 index 9d98fbddafb4..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_rest_test.rb +++ /dev/null @@ -1,160 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/messages_pb" -require "google/cloud/dataflow/v1beta3/messages/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_job_messages - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - location = "hello world" - - list_job_messages_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::ServiceStub.stub :transcode_list_job_messages_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_job_messages_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_job_messages_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb deleted file mode 100644 index fc61069e09ce..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/messages_test.rb +++ /dev/null @@ -1,181 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/messages_pb" -require "google/cloud/dataflow/v1beta3/messages" - -class ::Google::Cloud::Dataflow::V1beta3::Messages::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_job_messages - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - minimum_importance = :JOB_MESSAGE_IMPORTANCE_UNKNOWN - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - location = "hello world" - - list_job_messages_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_job_messages, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal :JOB_MESSAGE_IMPORTANCE_UNKNOWN, request["minimum_importance"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_job_messages_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_job_messages project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_job_messages ::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_job_messages({ project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_job_messages(::Google::Cloud::Dataflow::V1beta3::ListJobMessagesRequest.new(project_id: project_id, job_id: job_id, minimum_importance: minimum_importance, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time, location: location), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_job_messages_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Messages::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Messages::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb deleted file mode 100644 index 16beba2b9d68..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_rest_test.rb +++ /dev/null @@ -1,275 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/metrics_pb" -require "google/cloud/dataflow/v1beta3/metrics/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_job_metrics - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - start_time = {} - location = "hello world" - - get_job_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_metrics_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_job_metrics_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_job_metrics_client_stub.call_count - end - end - end - - def test_get_job_execution_details - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - page_size = 42 - page_token = "hello world" - - get_job_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_job_execution_details_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_job_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_job_execution_details_client_stub.call_count - end - end - end - - def test_get_stage_execution_details - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - stage_id = "hello world" - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - - get_stage_execution_details_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::ServiceStub.stub :transcode_get_stage_execution_details_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_stage_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_stage_execution_details_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb deleted file mode 100644 index f50377f49643..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/metrics_test.rb +++ /dev/null @@ -1,316 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/metrics_pb" -require "google/cloud/dataflow/v1beta3/metrics" - -class ::Google::Cloud::Dataflow::V1beta3::Metrics::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_job_metrics - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobMetrics.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - start_time = {} - location = "hello world" - - get_job_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_job_metrics, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_job_metrics_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_job_metrics project_id: project_id, job_id: job_id, start_time: start_time, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_job_metrics ::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_job_metrics({ project_id: project_id, job_id: job_id, start_time: start_time, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_job_metrics(::Google::Cloud::Dataflow::V1beta3::GetJobMetricsRequest.new(project_id: project_id, job_id: job_id, start_time: start_time, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_job_metrics_client_stub.call_rpc_count - end - end - - def test_get_job_execution_details - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::JobExecutionDetails.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - page_size = 42 - page_token = "hello world" - - get_job_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_job_execution_details, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal "hello world", request["location"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_job_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_job_execution_details project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_job_execution_details ::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_job_execution_details({ project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_job_execution_details(::Google::Cloud::Dataflow::V1beta3::GetJobExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_job_execution_details_client_stub.call_rpc_count - end - end - - def test_get_stage_execution_details - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::StageExecutionDetails.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - stage_id = "hello world" - page_size = 42 - page_token = "hello world" - start_time = {} - end_time = {} - - get_stage_execution_details_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_stage_execution_details, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal "hello world", request["location"] - assert_equal "hello world", request["stage_id"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["start_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_stage_execution_details_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_stage_execution_details project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_stage_execution_details ::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_stage_execution_details({ project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_stage_execution_details(::Google::Cloud::Dataflow::V1beta3::GetStageExecutionDetailsRequest.new(project_id: project_id, job_id: job_id, location: location, stage_id: stage_id, page_size: page_size, page_token: page_token, start_time: start_time, end_time: end_time), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_stage_execution_details_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Metrics::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Metrics::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb deleted file mode 100644 index 2cb7d22a9fc3..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_rest_test.rb +++ /dev/null @@ -1,267 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/snapshots_pb" -require "google/cloud/dataflow/v1beta3/snapshots/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_snapshot - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - get_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_get_snapshot_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_count - end - end - end - - def test_delete_snapshot - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - delete_snapshot_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_delete_snapshot_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_count - end - end - end - - def test_list_snapshots - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - - list_snapshots_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::ServiceStub.stub :transcode_list_snapshots_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_snapshots project_id: project_id, job_id: job_id, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb deleted file mode 100644 index e7cd1d6620f5..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/snapshots_test.rb +++ /dev/null @@ -1,290 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/snapshots_pb" -require "google/cloud/dataflow/v1beta3/snapshots" - -class ::Google::Cloud::Dataflow::V1beta3::Snapshots::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Snapshot.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - get_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_snapshot, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["snapshot_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_snapshot ::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_snapshot(::Google::Cloud::Dataflow::V1beta3::GetSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_snapshot_client_stub.call_rpc_count - end - end - - def test_delete_snapshot - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - snapshot_id = "hello world" - location = "hello world" - - delete_snapshot_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_snapshot, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["snapshot_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_snapshot_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_snapshot project_id: project_id, snapshot_id: snapshot_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_snapshot ::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_snapshot({ project_id: project_id, snapshot_id: snapshot_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_snapshot(::Google::Cloud::Dataflow::V1beta3::DeleteSnapshotRequest.new(project_id: project_id, snapshot_id: snapshot_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_snapshot_client_stub.call_rpc_count - end - end - - def test_list_snapshots - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_id = "hello world" - location = "hello world" - - list_snapshots_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_snapshots, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_id"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_snapshots_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_snapshots project_id: project_id, job_id: job_id, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_snapshots ::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_snapshots({ project_id: project_id, job_id: job_id, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_snapshots(::Google::Cloud::Dataflow::V1beta3::ListSnapshotsRequest.new(project_id: project_id, job_id: job_id, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_snapshots_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::Snapshots::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb deleted file mode 100644 index 5cada9799f44..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_rest_test.rb +++ /dev/null @@ -1,273 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/templates_service/rest" - - -class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job_from_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::Job.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_name = "hello world" - gcs_path = "hello world" - parameters = {} - environment = {} - location = "hello world" - - create_job_from_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_create_job_from_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_job_from_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_job_from_template_client_stub.call_count - end - end - end - - def test_launch_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - validate_only = true - gcs_path = "hello world" - launch_parameters = {} - location = "hello world" - - launch_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_launch_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, launch_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, launch_template_client_stub.call_count - end - end - end - - def test_get_template - # Create test objects. - client_result = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - gcs_path = "hello world" - view = :METADATA_ONLY - location = "hello world" - - get_template_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::ServiceStub.stub :transcode_get_template_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_template_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb deleted file mode 100644 index 84507da8e8ce..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/google/cloud/dataflow/v1beta3/templates_service_test.rb +++ /dev/null @@ -1,305 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/dataflow/v1beta3/templates_pb" -require "google/cloud/dataflow/v1beta3/templates_service" - -class ::Google::Cloud::Dataflow::V1beta3::TemplatesService::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_create_job_from_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::Job.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - job_name = "hello world" - gcs_path = "hello world" - parameters = {} - environment = {} - location = "hello world" - - create_job_from_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_job_from_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["job_name"] - assert_equal "hello world", request["gcs_path"] - assert_equal :gcs_path, request.template - assert_equal({}, request["parameters"].to_h) - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment), request["environment"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_job_from_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_job_from_template project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_job_from_template ::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_job_from_template({ project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_job_from_template(::Google::Cloud::Dataflow::V1beta3::CreateJobFromTemplateRequest.new(project_id: project_id, job_name: job_name, gcs_path: gcs_path, parameters: parameters, environment: environment, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_job_from_template_client_stub.call_rpc_count - end - end - - def test_launch_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - validate_only = true - gcs_path = "hello world" - launch_parameters = {} - location = "hello world" - - launch_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :launch_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal true, request["validate_only"] - assert_equal "hello world", request["gcs_path"] - assert_equal :gcs_path, request.template - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters), request["launch_parameters"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, launch_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.launch_template project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.launch_template ::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.launch_template({ project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.launch_template(::Google::Cloud::Dataflow::V1beta3::LaunchTemplateRequest.new(project_id: project_id, validate_only: validate_only, gcs_path: gcs_path, launch_parameters: launch_parameters, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, launch_template_client_stub.call_rpc_count - end - end - - def test_get_template - # Create GRPC objects. - grpc_response = ::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - project_id = "hello world" - gcs_path = "hello world" - view = :METADATA_ONLY - location = "hello world" - - get_template_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_template, name - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest, request - assert_equal "hello world", request["project_id"] - assert_equal "hello world", request["gcs_path"] - assert_equal :gcs_path, request.template - assert_equal :METADATA_ONLY, request["view"] - assert_equal "hello world", request["location"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_template_client_stub do - # Create client - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_template project_id: project_id, gcs_path: gcs_path, view: view, location: location do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_template ::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_template({ project_id: project_id, gcs_path: gcs_path, view: view, location: location }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_template(::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest.new(project_id: project_id, gcs_path: gcs_path, view: view, location: location), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_template_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::Dataflow::V1beta3::TemplatesService::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb b/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-dataflow-v1beta3/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct"