google-cloud-dataproc-v1 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +16 -11
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +16 -11
- data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +14 -10
- data/lib/google/cloud/dataproc/v1/job_controller/client.rb +16 -11
- data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +14 -10
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +16 -11
- data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +14 -10
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57cdafe892c5546ce46041f6ab8e0a8830b2078b5b69506ae3058ca9411b8686
|
4
|
+
data.tar.gz: d581925ee787baced846b8ae149a57631b241cb753b0e60bcb3fefc8e4bce59c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd36dd225df2f908ea687d9789ba7d47f8e205fc3f33f4ba5c44fd7af435a9a3c64f9a791057989c7e26f8e3ee236288ea5e11f13437d8e12f0bbb893b95b004
|
7
|
+
data.tar.gz: 96e32cff99e2f2031d6ee010b857beab04c76dd068547cc1e29562290a52aab11133be90405c2c01ebc6e211ba7842c354812c78034ec688df942798842f675c
|
@@ -159,7 +159,8 @@ module Google
|
|
159
159
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
160
160
|
credentials = Credentials.new credentials, scope: @config.scope
|
161
161
|
end
|
162
|
-
@quota_project_id =
|
162
|
+
@quota_project_id = @config.quota_project
|
163
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
163
164
|
|
164
165
|
@autoscaling_policy_service_stub = ::Gapic::ServiceStub.new(
|
165
166
|
::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Stub,
|
@@ -627,24 +628,28 @@ module Google
|
|
627
628
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
628
629
|
# trigger a retry.
|
629
630
|
# @return [::Hash]
|
631
|
+
# @!attribute [rw] quota_project
|
632
|
+
# A separate project against which to charge quota.
|
633
|
+
# @return [::String]
|
630
634
|
#
|
631
635
|
class Configuration
|
632
636
|
extend ::Gapic::Config
|
633
637
|
|
634
|
-
config_attr :endpoint,
|
635
|
-
config_attr :credentials,
|
638
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
639
|
+
config_attr :credentials, nil do |value|
|
636
640
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
637
641
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
638
642
|
allowed.any? { |klass| klass === value }
|
639
643
|
end
|
640
|
-
config_attr :scope,
|
641
|
-
config_attr :lib_name,
|
642
|
-
config_attr :lib_version,
|
643
|
-
config_attr(:channel_args,
|
644
|
-
config_attr :interceptors,
|
645
|
-
config_attr :timeout,
|
646
|
-
config_attr :metadata,
|
647
|
-
config_attr :retry_policy,
|
644
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
645
|
+
config_attr :lib_name, nil, ::String, nil
|
646
|
+
config_attr :lib_version, nil, ::String, nil
|
647
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
648
|
+
config_attr :interceptors, nil, ::Array, nil
|
649
|
+
config_attr :timeout, nil, ::Numeric, nil
|
650
|
+
config_attr :metadata, nil, ::Hash, nil
|
651
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
652
|
+
config_attr :quota_project, nil, ::String, nil
|
648
653
|
|
649
654
|
# @private
|
650
655
|
def initialize parent_config = nil
|
@@ -177,7 +177,8 @@ module Google
|
|
177
177
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
178
178
|
credentials = Credentials.new credentials, scope: @config.scope
|
179
179
|
end
|
180
|
-
@quota_project_id =
|
180
|
+
@quota_project_id = @config.quota_project
|
181
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
181
182
|
|
182
183
|
@operations_client = Operations.new do |config|
|
183
184
|
config.credentials = credentials
|
@@ -856,24 +857,28 @@ module Google
|
|
856
857
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
857
858
|
# trigger a retry.
|
858
859
|
# @return [::Hash]
|
860
|
+
# @!attribute [rw] quota_project
|
861
|
+
# A separate project against which to charge quota.
|
862
|
+
# @return [::String]
|
859
863
|
#
|
860
864
|
class Configuration
|
861
865
|
extend ::Gapic::Config
|
862
866
|
|
863
|
-
config_attr :endpoint,
|
864
|
-
config_attr :credentials,
|
867
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
868
|
+
config_attr :credentials, nil do |value|
|
865
869
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
866
870
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
867
871
|
allowed.any? { |klass| klass === value }
|
868
872
|
end
|
869
|
-
config_attr :scope,
|
870
|
-
config_attr :lib_name,
|
871
|
-
config_attr :lib_version,
|
872
|
-
config_attr(:channel_args,
|
873
|
-
config_attr :interceptors,
|
874
|
-
config_attr :timeout,
|
875
|
-
config_attr :metadata,
|
876
|
-
config_attr :retry_policy,
|
873
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
874
|
+
config_attr :lib_name, nil, ::String, nil
|
875
|
+
config_attr :lib_version, nil, ::String, nil
|
876
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
877
|
+
config_attr :interceptors, nil, ::Array, nil
|
878
|
+
config_attr :timeout, nil, ::Numeric, nil
|
879
|
+
config_attr :metadata, nil, ::Hash, nil
|
880
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
881
|
+
config_attr :quota_project, nil, ::String, nil
|
877
882
|
|
878
883
|
# @private
|
879
884
|
def initialize parent_config = nil
|
@@ -464,24 +464,28 @@ module Google
|
|
464
464
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
465
465
|
# trigger a retry.
|
466
466
|
# @return [::Hash]
|
467
|
+
# @!attribute [rw] quota_project
|
468
|
+
# A separate project against which to charge quota.
|
469
|
+
# @return [::String]
|
467
470
|
#
|
468
471
|
class Configuration
|
469
472
|
extend ::Gapic::Config
|
470
473
|
|
471
|
-
config_attr :endpoint,
|
472
|
-
config_attr :credentials,
|
474
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
475
|
+
config_attr :credentials, nil do |value|
|
473
476
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
474
477
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
475
478
|
allowed.any? { |klass| klass === value }
|
476
479
|
end
|
477
|
-
config_attr :scope,
|
478
|
-
config_attr :lib_name,
|
479
|
-
config_attr :lib_version,
|
480
|
-
config_attr(:channel_args,
|
481
|
-
config_attr :interceptors,
|
482
|
-
config_attr :timeout,
|
483
|
-
config_attr :metadata,
|
484
|
-
config_attr :retry_policy,
|
480
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
481
|
+
config_attr :lib_name, nil, ::String, nil
|
482
|
+
config_attr :lib_version, nil, ::String, nil
|
483
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
484
|
+
config_attr :interceptors, nil, ::Array, nil
|
485
|
+
config_attr :timeout, nil, ::Numeric, nil
|
486
|
+
config_attr :metadata, nil, ::Hash, nil
|
487
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
488
|
+
config_attr :quota_project, nil, ::String, nil
|
485
489
|
|
486
490
|
# @private
|
487
491
|
def initialize parent_config = nil
|
@@ -184,7 +184,8 @@ module Google
|
|
184
184
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
185
185
|
credentials = Credentials.new credentials, scope: @config.scope
|
186
186
|
end
|
187
|
-
@quota_project_id =
|
187
|
+
@quota_project_id = @config.quota_project
|
188
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
188
189
|
|
189
190
|
@operations_client = Operations.new do |config|
|
190
191
|
config.credentials = credentials
|
@@ -859,24 +860,28 @@ module Google
|
|
859
860
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
860
861
|
# trigger a retry.
|
861
862
|
# @return [::Hash]
|
863
|
+
# @!attribute [rw] quota_project
|
864
|
+
# A separate project against which to charge quota.
|
865
|
+
# @return [::String]
|
862
866
|
#
|
863
867
|
class Configuration
|
864
868
|
extend ::Gapic::Config
|
865
869
|
|
866
|
-
config_attr :endpoint,
|
867
|
-
config_attr :credentials,
|
870
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
871
|
+
config_attr :credentials, nil do |value|
|
868
872
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
869
873
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
870
874
|
allowed.any? { |klass| klass === value }
|
871
875
|
end
|
872
|
-
config_attr :scope,
|
873
|
-
config_attr :lib_name,
|
874
|
-
config_attr :lib_version,
|
875
|
-
config_attr(:channel_args,
|
876
|
-
config_attr :interceptors,
|
877
|
-
config_attr :timeout,
|
878
|
-
config_attr :metadata,
|
879
|
-
config_attr :retry_policy,
|
876
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
877
|
+
config_attr :lib_name, nil, ::String, nil
|
878
|
+
config_attr :lib_version, nil, ::String, nil
|
879
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
880
|
+
config_attr :interceptors, nil, ::Array, nil
|
881
|
+
config_attr :timeout, nil, ::Numeric, nil
|
882
|
+
config_attr :metadata, nil, ::Hash, nil
|
883
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
884
|
+
config_attr :quota_project, nil, ::String, nil
|
880
885
|
|
881
886
|
# @private
|
882
887
|
def initialize parent_config = nil
|
@@ -464,24 +464,28 @@ module Google
|
|
464
464
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
465
465
|
# trigger a retry.
|
466
466
|
# @return [::Hash]
|
467
|
+
# @!attribute [rw] quota_project
|
468
|
+
# A separate project against which to charge quota.
|
469
|
+
# @return [::String]
|
467
470
|
#
|
468
471
|
class Configuration
|
469
472
|
extend ::Gapic::Config
|
470
473
|
|
471
|
-
config_attr :endpoint,
|
472
|
-
config_attr :credentials,
|
474
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
475
|
+
config_attr :credentials, nil do |value|
|
473
476
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
474
477
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
475
478
|
allowed.any? { |klass| klass === value }
|
476
479
|
end
|
477
|
-
config_attr :scope,
|
478
|
-
config_attr :lib_name,
|
479
|
-
config_attr :lib_version,
|
480
|
-
config_attr(:channel_args,
|
481
|
-
config_attr :interceptors,
|
482
|
-
config_attr :timeout,
|
483
|
-
config_attr :metadata,
|
484
|
-
config_attr :retry_policy,
|
480
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
481
|
+
config_attr :lib_name, nil, ::String, nil
|
482
|
+
config_attr :lib_version, nil, ::String, nil
|
483
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
484
|
+
config_attr :interceptors, nil, ::Array, nil
|
485
|
+
config_attr :timeout, nil, ::Numeric, nil
|
486
|
+
config_attr :metadata, nil, ::Hash, nil
|
487
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
488
|
+
config_attr :quota_project, nil, ::String, nil
|
485
489
|
|
486
490
|
# @private
|
487
491
|
def initialize parent_config = nil
|
@@ -187,7 +187,8 @@ module Google
|
|
187
187
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
188
188
|
credentials = Credentials.new credentials, scope: @config.scope
|
189
189
|
end
|
190
|
-
@quota_project_id =
|
190
|
+
@quota_project_id = @config.quota_project
|
191
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
191
192
|
|
192
193
|
@operations_client = Operations.new do |config|
|
193
194
|
config.credentials = credentials
|
@@ -903,24 +904,28 @@ module Google
|
|
903
904
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
904
905
|
# trigger a retry.
|
905
906
|
# @return [::Hash]
|
907
|
+
# @!attribute [rw] quota_project
|
908
|
+
# A separate project against which to charge quota.
|
909
|
+
# @return [::String]
|
906
910
|
#
|
907
911
|
class Configuration
|
908
912
|
extend ::Gapic::Config
|
909
913
|
|
910
|
-
config_attr :endpoint,
|
911
|
-
config_attr :credentials,
|
914
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
915
|
+
config_attr :credentials, nil do |value|
|
912
916
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
913
917
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
914
918
|
allowed.any? { |klass| klass === value }
|
915
919
|
end
|
916
|
-
config_attr :scope,
|
917
|
-
config_attr :lib_name,
|
918
|
-
config_attr :lib_version,
|
919
|
-
config_attr(:channel_args,
|
920
|
-
config_attr :interceptors,
|
921
|
-
config_attr :timeout,
|
922
|
-
config_attr :metadata,
|
923
|
-
config_attr :retry_policy,
|
920
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
921
|
+
config_attr :lib_name, nil, ::String, nil
|
922
|
+
config_attr :lib_version, nil, ::String, nil
|
923
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
924
|
+
config_attr :interceptors, nil, ::Array, nil
|
925
|
+
config_attr :timeout, nil, ::Numeric, nil
|
926
|
+
config_attr :metadata, nil, ::Hash, nil
|
927
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
928
|
+
config_attr :quota_project, nil, ::String, nil
|
924
929
|
|
925
930
|
# @private
|
926
931
|
def initialize parent_config = nil
|
@@ -464,24 +464,28 @@ module Google
|
|
464
464
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
465
465
|
# trigger a retry.
|
466
466
|
# @return [::Hash]
|
467
|
+
# @!attribute [rw] quota_project
|
468
|
+
# A separate project against which to charge quota.
|
469
|
+
# @return [::String]
|
467
470
|
#
|
468
471
|
class Configuration
|
469
472
|
extend ::Gapic::Config
|
470
473
|
|
471
|
-
config_attr :endpoint,
|
472
|
-
config_attr :credentials,
|
474
|
+
config_attr :endpoint, "dataproc.googleapis.com", ::String
|
475
|
+
config_attr :credentials, nil do |value|
|
473
476
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
474
477
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
475
478
|
allowed.any? { |klass| klass === value }
|
476
479
|
end
|
477
|
-
config_attr :scope,
|
478
|
-
config_attr :lib_name,
|
479
|
-
config_attr :lib_version,
|
480
|
-
config_attr(:channel_args,
|
481
|
-
config_attr :interceptors,
|
482
|
-
config_attr :timeout,
|
483
|
-
config_attr :metadata,
|
484
|
-
config_attr :retry_policy,
|
480
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
481
|
+
config_attr :lib_name, nil, ::String, nil
|
482
|
+
config_attr :lib_version, nil, ::String, nil
|
483
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
484
|
+
config_attr :interceptors, nil, ::Array, nil
|
485
|
+
config_attr :timeout, nil, ::Numeric, nil
|
486
|
+
config_attr :metadata, nil, ::Hash, nil
|
487
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
488
|
+
config_attr :quota_project, nil, ::String, nil
|
485
489
|
|
486
490
|
# @private
|
487
491
|
def initialize parent_config = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dataproc-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|