google-cloud-dataflow-v1beta3 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +3 -3
- data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb +1 -3
- data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest/client.rb +2 -2
- data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/rest.rb +1 -1
- data/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +1 -1
- data/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +28 -7
- data/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb +1 -3
- data/lib/google/cloud/dataflow/v1beta3/jobs/rest/client.rb +27 -6
- data/lib/google/cloud/dataflow/v1beta3/messages/client.rb +2 -2
- data/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb +1 -3
- data/lib/google/cloud/dataflow/v1beta3/messages/rest/client.rb +1 -1
- data/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +2 -2
- data/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb +1 -3
- data/lib/google/cloud/dataflow/v1beta3/metrics/rest/client.rb +1 -1
- data/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +2 -2
- data/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb +1 -3
- data/lib/google/cloud/dataflow/v1beta3/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +27 -8
- data/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb +1 -3
- data/lib/google/cloud/dataflow/v1beta3/templates_service/rest/client.rb +26 -7
- data/lib/google/cloud/dataflow/v1beta3/version.rb +1 -1
- data/lib/google/dataflow/v1beta3/environment_pb.rb +4 -1
- data/lib/google/dataflow/v1beta3/jobs_pb.rb +9 -1
- data/lib/google/dataflow/v1beta3/jobs_services_pb.rb +12 -2
- data/lib/google/dataflow/v1beta3/messages_pb.rb +1 -1
- data/lib/google/dataflow/v1beta3/metrics_pb.rb +10 -1
- data/lib/google/dataflow/v1beta3/snapshots_pb.rb +1 -1
- data/lib/google/dataflow/v1beta3/streaming_pb.rb +1 -1
- data/lib/google/dataflow/v1beta3/templates_pb.rb +3 -1
- data/lib/google/dataflow/v1beta3/templates_services_pb.rb +22 -3
- data/proto_docs/google/api/client.rb +6 -0
- data/proto_docs/google/dataflow/v1beta3/environment.rb +96 -16
- data/proto_docs/google/dataflow/v1beta3/jobs.rb +163 -23
- data/proto_docs/google/dataflow/v1beta3/metrics.rb +148 -3
- data/proto_docs/google/dataflow/v1beta3/streaming.rb +3 -0
- data/proto_docs/google/dataflow/v1beta3/templates.rb +183 -35
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- metadata +9 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae8e59cc484127c18628aa854ba081a8cb3820a148ddb14dac6ee046b2094ca8
|
4
|
+
data.tar.gz: eaaf28e7e7a4f0f9c01e5deb535e72cda2f3260c33c3a31c1c0788b3503279d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79e19052202fa5f8fb90fc3867591dee99c2c6808f61c9b308975a9ecce8d7a5f699201718843a6917633918c7145ee91300c8c780fed372be6ca8d1a1940adb
|
7
|
+
data.tar.gz: 5ca914b5a86f285cc2efbde77c98553ae903e02c12cb03d0a75e2600ccbe6a01d45b694bf127353e9b09c873ed40d07018433565a41ad7d762f331e9e7eb46de
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Client for the FlexTemplatesService service.
|
29
29
|
#
|
30
|
-
# Provides a service for Flex templates.
|
30
|
+
# Provides a service for Flex templates.
|
31
31
|
#
|
32
32
|
class Client
|
33
33
|
# @private
|
@@ -383,8 +383,8 @@ module Google
|
|
383
383
|
|
384
384
|
config_attr :endpoint, nil, ::String, nil
|
385
385
|
config_attr :credentials, nil do |value|
|
386
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
387
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
386
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
387
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
388
388
|
allowed.any? { |klass| klass === value }
|
389
389
|
end
|
390
390
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -27,9 +27,7 @@ module Google
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/compute"
|
31
|
-
"https://www.googleapis.com/auth/compute.readonly",
|
32
|
-
"https://www.googleapis.com/auth/userinfo.email"
|
30
|
+
"https://www.googleapis.com/auth/compute"
|
33
31
|
]
|
34
32
|
self.env_vars = [
|
35
33
|
"DATAFLOW_CREDENTIALS",
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
##
|
30
30
|
# REST client for the FlexTemplatesService service.
|
31
31
|
#
|
32
|
-
# Provides a service for Flex templates.
|
32
|
+
# Provides a service for Flex templates.
|
33
33
|
#
|
34
34
|
class Client
|
35
35
|
# @private
|
@@ -357,7 +357,7 @@ module Google
|
|
357
357
|
|
358
358
|
config_attr :endpoint, nil, ::String, nil
|
359
359
|
config_attr :credentials, nil do |value|
|
360
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
360
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
361
361
|
allowed.any? { |klass| klass === value }
|
362
362
|
end
|
363
363
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -193,6 +193,9 @@ module Google
|
|
193
193
|
# `projects.jobs.create` is not recommended, as your job will always start
|
194
194
|
# in `us-central1`.
|
195
195
|
#
|
196
|
+
# Do not enter confidential information when you supply string values using
|
197
|
+
# the API.
|
198
|
+
#
|
196
199
|
# @overload create_job(request, options = nil)
|
197
200
|
# Pass arguments to `create_job` via a request object, either of type
|
198
201
|
# {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash.
|
@@ -412,7 +415,7 @@ module Google
|
|
412
415
|
# @param options [::Gapic::CallOptions, ::Hash]
|
413
416
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
414
417
|
#
|
415
|
-
# @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil)
|
418
|
+
# @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil)
|
416
419
|
# Pass arguments to `update_job` via keyword arguments. Note that at
|
417
420
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
418
421
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -428,6 +431,13 @@ module Google
|
|
428
431
|
# The [regional endpoint]
|
429
432
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
|
430
433
|
# contains this job.
|
434
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
435
|
+
# The list of fields to update relative to Job. If empty, only
|
436
|
+
# RequestedJobState will be considered for update. If the FieldMask is not
|
437
|
+
# empty and RequestedJobState is none/empty, The fields specified in the
|
438
|
+
# update mask will be the only ones considered for update. If both
|
439
|
+
# RequestedJobState and update_mask are specified, an error will be returned
|
440
|
+
# as we cannot update both state and mask.
|
431
441
|
#
|
432
442
|
# @yield [response, operation] Access the result along with the RPC operation
|
433
443
|
# @yieldparam response [::Google::Cloud::Dataflow::V1beta3::Job]
|
@@ -506,8 +516,12 @@ module Google
|
|
506
516
|
# `projects.locations.jobs.list` with a [regional endpoint]
|
507
517
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To
|
508
518
|
# list the all jobs across all regions, use `projects.jobs.aggregated`. Using
|
509
|
-
# `projects.jobs.list` is not recommended,
|
510
|
-
# jobs that are running in `us-central1`.
|
519
|
+
# `projects.jobs.list` is not recommended, because you can only get the list
|
520
|
+
# of jobs that are running in `us-central1`.
|
521
|
+
#
|
522
|
+
# `projects.locations.jobs.list` and `projects.jobs.list` support filtering
|
523
|
+
# the list of jobs by name. Filtering by name isn't supported by
|
524
|
+
# `projects.jobs.aggregated`.
|
511
525
|
#
|
512
526
|
# @overload list_jobs(request, options = nil)
|
513
527
|
# Pass arguments to `list_jobs` via a request object, either of type
|
@@ -519,7 +533,7 @@ module Google
|
|
519
533
|
# @param options [::Gapic::CallOptions, ::Hash]
|
520
534
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
521
535
|
#
|
522
|
-
# @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil)
|
536
|
+
# @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil)
|
523
537
|
# Pass arguments to `list_jobs` via keyword arguments. Note that at
|
524
538
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
525
539
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -542,6 +556,8 @@ module Google
|
|
542
556
|
# The [regional endpoint]
|
543
557
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
|
544
558
|
# contains this job.
|
559
|
+
# @param name [::String]
|
560
|
+
# Optional. The job name.
|
545
561
|
#
|
546
562
|
# @yield [response, operation] Access the result along with the RPC operation
|
547
563
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>]
|
@@ -619,6 +635,9 @@ module Google
|
|
619
635
|
##
|
620
636
|
# List the jobs of a project across all regions.
|
621
637
|
#
|
638
|
+
# **Note:** This method doesn't support filtering the list of
|
639
|
+
# jobs by name.
|
640
|
+
#
|
622
641
|
# @overload aggregated_list_jobs(request, options = nil)
|
623
642
|
# Pass arguments to `aggregated_list_jobs` via a request object, either of type
|
624
643
|
# {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash.
|
@@ -629,7 +648,7 @@ module Google
|
|
629
648
|
# @param options [::Gapic::CallOptions, ::Hash]
|
630
649
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
631
650
|
#
|
632
|
-
# @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil)
|
651
|
+
# @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil)
|
633
652
|
# Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at
|
634
653
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
635
654
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -652,6 +671,8 @@ module Google
|
|
652
671
|
# The [regional endpoint]
|
653
672
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
|
654
673
|
# contains this job.
|
674
|
+
# @param name [::String]
|
675
|
+
# Optional. The job name.
|
655
676
|
#
|
656
677
|
# @yield [response, operation] Access the result along with the RPC operation
|
657
678
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>]
|
@@ -1006,8 +1027,8 @@ module Google
|
|
1006
1027
|
|
1007
1028
|
config_attr :endpoint, nil, ::String, nil
|
1008
1029
|
config_attr :credentials, nil do |value|
|
1009
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1010
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1030
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1031
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
1011
1032
|
allowed.any? { |klass| klass === value }
|
1012
1033
|
end
|
1013
1034
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -27,9 +27,7 @@ module Google
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/compute"
|
31
|
-
"https://www.googleapis.com/auth/compute.readonly",
|
32
|
-
"https://www.googleapis.com/auth/userinfo.email"
|
30
|
+
"https://www.googleapis.com/auth/compute"
|
33
31
|
]
|
34
32
|
self.env_vars = [
|
35
33
|
"DATAFLOW_CREDENTIALS",
|
@@ -186,6 +186,9 @@ module Google
|
|
186
186
|
# `projects.jobs.create` is not recommended, as your job will always start
|
187
187
|
# in `us-central1`.
|
188
188
|
#
|
189
|
+
# Do not enter confidential information when you supply string values using
|
190
|
+
# the API.
|
191
|
+
#
|
189
192
|
# @overload create_job(request, options = nil)
|
190
193
|
# Pass arguments to `create_job` via a request object, either of type
|
191
194
|
# {::Google::Cloud::Dataflow::V1beta3::CreateJobRequest} or an equivalent Hash.
|
@@ -382,7 +385,7 @@ module Google
|
|
382
385
|
# @param options [::Gapic::CallOptions, ::Hash]
|
383
386
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
384
387
|
#
|
385
|
-
# @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil)
|
388
|
+
# @overload update_job(project_id: nil, job_id: nil, job: nil, location: nil, update_mask: nil)
|
386
389
|
# Pass arguments to `update_job` via keyword arguments. Note that at
|
387
390
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
388
391
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -398,6 +401,13 @@ module Google
|
|
398
401
|
# The [regional endpoint]
|
399
402
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
|
400
403
|
# contains this job.
|
404
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
405
|
+
# The list of fields to update relative to Job. If empty, only
|
406
|
+
# RequestedJobState will be considered for update. If the FieldMask is not
|
407
|
+
# empty and RequestedJobState is none/empty, The fields specified in the
|
408
|
+
# update mask will be the only ones considered for update. If both
|
409
|
+
# RequestedJobState and update_mask are specified, an error will be returned
|
410
|
+
# as we cannot update both state and mask.
|
401
411
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
402
412
|
# @yieldparam result [::Google::Cloud::Dataflow::V1beta3::Job]
|
403
413
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -463,8 +473,12 @@ module Google
|
|
463
473
|
# `projects.locations.jobs.list` with a [regional endpoint]
|
464
474
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To
|
465
475
|
# list the all jobs across all regions, use `projects.jobs.aggregated`. Using
|
466
|
-
# `projects.jobs.list` is not recommended,
|
467
|
-
# jobs that are running in `us-central1`.
|
476
|
+
# `projects.jobs.list` is not recommended, because you can only get the list
|
477
|
+
# of jobs that are running in `us-central1`.
|
478
|
+
#
|
479
|
+
# `projects.locations.jobs.list` and `projects.jobs.list` support filtering
|
480
|
+
# the list of jobs by name. Filtering by name isn't supported by
|
481
|
+
# `projects.jobs.aggregated`.
|
468
482
|
#
|
469
483
|
# @overload list_jobs(request, options = nil)
|
470
484
|
# Pass arguments to `list_jobs` via a request object, either of type
|
@@ -476,7 +490,7 @@ module Google
|
|
476
490
|
# @param options [::Gapic::CallOptions, ::Hash]
|
477
491
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
478
492
|
#
|
479
|
-
# @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil)
|
493
|
+
# @overload list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil)
|
480
494
|
# Pass arguments to `list_jobs` via keyword arguments. Note that at
|
481
495
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
482
496
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -499,6 +513,8 @@ module Google
|
|
499
513
|
# The [regional endpoint]
|
500
514
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
|
501
515
|
# contains this job.
|
516
|
+
# @param name [::String]
|
517
|
+
# Optional. The job name.
|
502
518
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
503
519
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>]
|
504
520
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -566,6 +582,9 @@ module Google
|
|
566
582
|
##
|
567
583
|
# List the jobs of a project across all regions.
|
568
584
|
#
|
585
|
+
# **Note:** This method doesn't support filtering the list of
|
586
|
+
# jobs by name.
|
587
|
+
#
|
569
588
|
# @overload aggregated_list_jobs(request, options = nil)
|
570
589
|
# Pass arguments to `aggregated_list_jobs` via a request object, either of type
|
571
590
|
# {::Google::Cloud::Dataflow::V1beta3::ListJobsRequest} or an equivalent Hash.
|
@@ -576,7 +595,7 @@ module Google
|
|
576
595
|
# @param options [::Gapic::CallOptions, ::Hash]
|
577
596
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
578
597
|
#
|
579
|
-
# @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil)
|
598
|
+
# @overload aggregated_list_jobs(filter: nil, project_id: nil, view: nil, page_size: nil, page_token: nil, location: nil, name: nil)
|
580
599
|
# Pass arguments to `aggregated_list_jobs` via keyword arguments. Note that at
|
581
600
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
582
601
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -599,6 +618,8 @@ module Google
|
|
599
618
|
# The [regional endpoint]
|
600
619
|
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
|
601
620
|
# contains this job.
|
621
|
+
# @param name [::String]
|
622
|
+
# Optional. The job name.
|
602
623
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
603
624
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataflow::V1beta3::Job>]
|
604
625
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -847,7 +868,7 @@ module Google
|
|
847
868
|
|
848
869
|
config_attr :endpoint, nil, ::String, nil
|
849
870
|
config_attr :credentials, nil do |value|
|
850
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
871
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
851
872
|
allowed.any? { |klass| klass === value }
|
852
873
|
end
|
853
874
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -414,8 +414,8 @@ module Google
|
|
414
414
|
|
415
415
|
config_attr :endpoint, nil, ::String, nil
|
416
416
|
config_attr :credentials, nil do |value|
|
417
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
418
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
417
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
418
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
419
419
|
allowed.any? { |klass| klass === value }
|
420
420
|
end
|
421
421
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -27,9 +27,7 @@ module Google
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/compute"
|
31
|
-
"https://www.googleapis.com/auth/compute.readonly",
|
32
|
-
"https://www.googleapis.com/auth/userinfo.email"
|
30
|
+
"https://www.googleapis.com/auth/compute"
|
33
31
|
]
|
34
32
|
self.env_vars = [
|
35
33
|
"DATAFLOW_CREDENTIALS",
|
@@ -385,7 +385,7 @@ module Google
|
|
385
385
|
|
386
386
|
config_attr :endpoint, nil, ::String, nil
|
387
387
|
config_attr :credentials, nil do |value|
|
388
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
388
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
389
389
|
allowed.any? { |klass| klass === value }
|
390
390
|
end
|
391
391
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -631,8 +631,8 @@ module Google
|
|
631
631
|
|
632
632
|
config_attr :endpoint, nil, ::String, nil
|
633
633
|
config_attr :credentials, nil do |value|
|
634
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
635
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
634
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
635
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
636
636
|
allowed.any? { |klass| klass === value }
|
637
637
|
end
|
638
638
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -27,9 +27,7 @@ module Google
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/compute"
|
31
|
-
"https://www.googleapis.com/auth/compute.readonly",
|
32
|
-
"https://www.googleapis.com/auth/userinfo.email"
|
30
|
+
"https://www.googleapis.com/auth/compute"
|
33
31
|
]
|
34
32
|
self.env_vars = [
|
35
33
|
"DATAFLOW_CREDENTIALS",
|
@@ -573,7 +573,7 @@ module Google
|
|
573
573
|
|
574
574
|
config_attr :endpoint, nil, ::String, nil
|
575
575
|
config_attr :credentials, nil do |value|
|
576
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
576
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
577
577
|
allowed.any? { |klass| klass === value }
|
578
578
|
end
|
579
579
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -573,8 +573,8 @@ module Google
|
|
573
573
|
|
574
574
|
config_attr :endpoint, nil, ::String, nil
|
575
575
|
config_attr :credentials, nil do |value|
|
576
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
577
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
576
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
577
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
578
578
|
allowed.any? { |klass| klass === value }
|
579
579
|
end
|
580
580
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -27,9 +27,7 @@ module Google
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/compute"
|
31
|
-
"https://www.googleapis.com/auth/compute.readonly",
|
32
|
-
"https://www.googleapis.com/auth/userinfo.email"
|
30
|
+
"https://www.googleapis.com/auth/compute"
|
33
31
|
]
|
34
32
|
self.env_vars = [
|
35
33
|
"DATAFLOW_CREDENTIALS",
|
@@ -518,7 +518,7 @@ module Google
|
|
518
518
|
|
519
519
|
config_attr :endpoint, nil, ::String, nil
|
520
520
|
config_attr :credentials, nil do |value|
|
521
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
521
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
522
522
|
allowed.any? { |klass| klass === value }
|
523
523
|
end
|
524
524
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -184,7 +184,14 @@ module Google
|
|
184
184
|
# Service calls
|
185
185
|
|
186
186
|
##
|
187
|
-
# Creates a Cloud Dataflow job from a template.
|
187
|
+
# Creates a Cloud Dataflow job from a template. Do not enter confidential
|
188
|
+
# information when you supply string values using the API.
|
189
|
+
#
|
190
|
+
# To create a job, we recommend using `projects.locations.templates.create`
|
191
|
+
# with a [regional endpoint]
|
192
|
+
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
|
193
|
+
# `projects.templates.create` is not recommended, because your job will
|
194
|
+
# always start in `us-central1`.
|
188
195
|
#
|
189
196
|
# @overload create_job_from_template(request, options = nil)
|
190
197
|
# Pass arguments to `create_job_from_template` via a request object, either of type
|
@@ -286,7 +293,13 @@ module Google
|
|
286
293
|
end
|
287
294
|
|
288
295
|
##
|
289
|
-
#
|
296
|
+
# Launches a template.
|
297
|
+
#
|
298
|
+
# To launch a template, we recommend using
|
299
|
+
# `projects.locations.templates.launch` with a [regional endpoint]
|
300
|
+
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
|
301
|
+
# `projects.templates.launch` is not recommended, because jobs launched
|
302
|
+
# from the template will always start in `us-central1`.
|
290
303
|
#
|
291
304
|
# @overload launch_template(request, options = nil)
|
292
305
|
# Pass arguments to `launch_template` via a request object, either of type
|
@@ -309,17 +322,17 @@ module Google
|
|
309
322
|
# If true, the request is validated but not actually executed.
|
310
323
|
# Defaults to false.
|
311
324
|
# @param gcs_path [::String]
|
312
|
-
# A Cloud Storage path to the template
|
325
|
+
# A Cloud Storage path to the template to use to create
|
313
326
|
# the job.
|
314
|
-
# Must be valid Cloud Storage URL, beginning with
|
327
|
+
# Must be valid Cloud Storage URL, beginning with `gs://`.
|
315
328
|
#
|
316
329
|
# 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.
|
317
330
|
# @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash]
|
318
|
-
#
|
331
|
+
# Parameters for launching a dynamic template.
|
319
332
|
#
|
320
333
|
# 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.
|
321
334
|
# @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash]
|
322
|
-
# The parameters of the template to launch.
|
335
|
+
# The parameters of the template to launch. Part of the
|
323
336
|
# body of the POST request.
|
324
337
|
# @param location [::String]
|
325
338
|
# The [regional endpoint]
|
@@ -396,6 +409,12 @@ module Google
|
|
396
409
|
##
|
397
410
|
# Get the template associated with a template.
|
398
411
|
#
|
412
|
+
# To get the template, we recommend using `projects.locations.templates.get`
|
413
|
+
# with a [regional endpoint]
|
414
|
+
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
|
415
|
+
# `projects.templates.get` is not recommended, because only
|
416
|
+
# templates that are running in `us-central1` are retrieved.
|
417
|
+
#
|
399
418
|
# @overload get_template(request, options = nil)
|
400
419
|
# Pass arguments to `get_template` via a request object, either of type
|
401
420
|
# {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash.
|
@@ -596,8 +615,8 @@ module Google
|
|
596
615
|
|
597
616
|
config_attr :endpoint, nil, ::String, nil
|
598
617
|
config_attr :credentials, nil do |value|
|
599
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
600
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
618
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
619
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
601
620
|
allowed.any? { |klass| klass === value }
|
602
621
|
end
|
603
622
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -27,9 +27,7 @@ module Google
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
28
28
|
self.scope = [
|
29
29
|
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
-
"https://www.googleapis.com/auth/compute"
|
31
|
-
"https://www.googleapis.com/auth/compute.readonly",
|
32
|
-
"https://www.googleapis.com/auth/userinfo.email"
|
30
|
+
"https://www.googleapis.com/auth/compute"
|
33
31
|
]
|
34
32
|
self.env_vars = [
|
35
33
|
"DATAFLOW_CREDENTIALS",
|
@@ -177,7 +177,14 @@ module Google
|
|
177
177
|
# Service calls
|
178
178
|
|
179
179
|
##
|
180
|
-
# Creates a Cloud Dataflow job from a template.
|
180
|
+
# Creates a Cloud Dataflow job from a template. Do not enter confidential
|
181
|
+
# information when you supply string values using the API.
|
182
|
+
#
|
183
|
+
# To create a job, we recommend using `projects.locations.templates.create`
|
184
|
+
# with a [regional endpoint]
|
185
|
+
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
|
186
|
+
# `projects.templates.create` is not recommended, because your job will
|
187
|
+
# always start in `us-central1`.
|
181
188
|
#
|
182
189
|
# @overload create_job_from_template(request, options = nil)
|
183
190
|
# Pass arguments to `create_job_from_template` via a request object, either of type
|
@@ -269,7 +276,13 @@ module Google
|
|
269
276
|
end
|
270
277
|
|
271
278
|
##
|
272
|
-
#
|
279
|
+
# Launches a template.
|
280
|
+
#
|
281
|
+
# To launch a template, we recommend using
|
282
|
+
# `projects.locations.templates.launch` with a [regional endpoint]
|
283
|
+
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
|
284
|
+
# `projects.templates.launch` is not recommended, because jobs launched
|
285
|
+
# from the template will always start in `us-central1`.
|
273
286
|
#
|
274
287
|
# @overload launch_template(request, options = nil)
|
275
288
|
# Pass arguments to `launch_template` via a request object, either of type
|
@@ -292,17 +305,17 @@ module Google
|
|
292
305
|
# If true, the request is validated but not actually executed.
|
293
306
|
# Defaults to false.
|
294
307
|
# @param gcs_path [::String]
|
295
|
-
# A Cloud Storage path to the template
|
308
|
+
# A Cloud Storage path to the template to use to create
|
296
309
|
# the job.
|
297
|
-
# Must be valid Cloud Storage URL, beginning with
|
310
|
+
# Must be valid Cloud Storage URL, beginning with `gs://`.
|
298
311
|
#
|
299
312
|
# 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.
|
300
313
|
# @param dynamic_template [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams, ::Hash]
|
301
|
-
#
|
314
|
+
# Parameters for launching a dynamic template.
|
302
315
|
#
|
303
316
|
# 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.
|
304
317
|
# @param launch_parameters [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters, ::Hash]
|
305
|
-
# The parameters of the template to launch.
|
318
|
+
# The parameters of the template to launch. Part of the
|
306
319
|
# body of the POST request.
|
307
320
|
# @param location [::String]
|
308
321
|
# The [regional endpoint]
|
@@ -369,6 +382,12 @@ module Google
|
|
369
382
|
##
|
370
383
|
# Get the template associated with a template.
|
371
384
|
#
|
385
|
+
# To get the template, we recommend using `projects.locations.templates.get`
|
386
|
+
# with a [regional endpoint]
|
387
|
+
# (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using
|
388
|
+
# `projects.templates.get` is not recommended, because only
|
389
|
+
# templates that are running in `us-central1` are retrieved.
|
390
|
+
#
|
372
391
|
# @overload get_template(request, options = nil)
|
373
392
|
# Pass arguments to `get_template` via a request object, either of type
|
374
393
|
# {::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest} or an equivalent Hash.
|
@@ -550,7 +569,7 @@ module Google
|
|
550
569
|
|
551
570
|
config_attr :endpoint, nil, ::String, nil
|
552
571
|
config_attr :credentials, nil do |value|
|
553
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
572
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
554
573
|
allowed.any? { |klass| klass === value }
|
555
574
|
end
|
556
575
|
config_attr :scope, nil, ::String, ::Array, nil
|