google-cloud-dataproc-v1beta2 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a369acdf3e665982ac8e7f66611be5abd95a9f1d84c639f8a5e97d3ac4ea23f
4
- data.tar.gz: e2fc906e2829592c41c27caa0ed7417ee901c11d68ca5b8af353cf243120a202
3
+ metadata.gz: b35f53a0ac346f6fd1eda512e2fdce0ab5e45940ddbff3e2a1dee2c8bbd19585
4
+ data.tar.gz: cad810727a51cc78223e390894843a621c27a16e8260d5956ead4a38c8e2f330
5
5
  SHA512:
6
- metadata.gz: 37567e804801b891fdbe12ae8b44e9a7e040e0ea47e13527d30e18ba27dd0d902c316282a55fbb63b682065a02be1939375627ccde0bd7a25624df925a321801
7
- data.tar.gz: c5961a9092bc235f1b903466d3350f4b2fc3bbc69ccf164166d68b2717fe1dd277b2803aa1da3192dc203724611f4cfbe2bd6b515ae74b70902f2825edf601ad
6
+ metadata.gz: f2100a2c9739e7194ef8b0a5b705b9dd570551ae016502dc17bf48c1d41621382473a1e062ec9b9eb7bdcd118f0886123df9d40d9a5ce7883708a4f74bcd6c44
7
+ data.tar.gz: 6b81514a130d32372f57f5ddb893f096fb87377323cdbbb8c58504d098bea55cb4f25807b0f971f06c9e916b6bcd9e057dfc47f199754372ea9545d273397176
@@ -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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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::V1beta2::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, "dataproc.googleapis.com", String
635
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
641
- config_attr :lib_name, nil, ::String, nil
642
- config_attr :lib_version, nil, ::String, nil
643
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
644
- config_attr :interceptors, nil, ::Array, nil
645
- config_attr :timeout, nil, ::Numeric, nil
646
- config_attr :metadata, nil, ::Hash, nil
647
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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
@@ -865,24 +866,28 @@ module Google
865
866
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
866
867
  # trigger a retry.
867
868
  # @return [::Hash]
869
+ # @!attribute [rw] quota_project
870
+ # A separate project against which to charge quota.
871
+ # @return [::String]
868
872
  #
869
873
  class Configuration
870
874
  extend ::Gapic::Config
871
875
 
872
- config_attr :endpoint, "dataproc.googleapis.com", String
873
- config_attr :credentials, nil do |value|
876
+ config_attr :endpoint, "dataproc.googleapis.com", ::String
877
+ config_attr :credentials, nil do |value|
874
878
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
875
879
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
876
880
  allowed.any? { |klass| klass === value }
877
881
  end
878
- config_attr :scope, nil, ::String, ::Array, nil
879
- config_attr :lib_name, nil, ::String, nil
880
- config_attr :lib_version, nil, ::String, nil
881
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
882
- config_attr :interceptors, nil, ::Array, nil
883
- config_attr :timeout, nil, ::Numeric, nil
884
- config_attr :metadata, nil, ::Hash, nil
885
- config_attr :retry_policy, nil, ::Hash, Proc, nil
882
+ config_attr :scope, nil, ::String, ::Array, nil
883
+ config_attr :lib_name, nil, ::String, nil
884
+ config_attr :lib_version, nil, ::String, nil
885
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
886
+ config_attr :interceptors, nil, ::Array, nil
887
+ config_attr :timeout, nil, ::Numeric, nil
888
+ config_attr :metadata, nil, ::Hash, nil
889
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
890
+ config_attr :quota_project, nil, ::String, nil
886
891
 
887
892
  # @private
888
893
  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, "dataproc.googleapis.com", String
472
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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, "dataproc.googleapis.com", String
867
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
873
- config_attr :lib_name, nil, ::String, nil
874
- config_attr :lib_version, nil, ::String, nil
875
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
876
- config_attr :interceptors, nil, ::Array, nil
877
- config_attr :timeout, nil, ::Numeric, nil
878
- config_attr :metadata, nil, ::Hash, nil
879
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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, "dataproc.googleapis.com", String
472
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataproc
23
23
  module V1beta2
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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
@@ -907,24 +908,28 @@ module Google
907
908
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
908
909
  # trigger a retry.
909
910
  # @return [::Hash]
911
+ # @!attribute [rw] quota_project
912
+ # A separate project against which to charge quota.
913
+ # @return [::String]
910
914
  #
911
915
  class Configuration
912
916
  extend ::Gapic::Config
913
917
 
914
- config_attr :endpoint, "dataproc.googleapis.com", String
915
- config_attr :credentials, nil do |value|
918
+ config_attr :endpoint, "dataproc.googleapis.com", ::String
919
+ config_attr :credentials, nil do |value|
916
920
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
917
921
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
918
922
  allowed.any? { |klass| klass === value }
919
923
  end
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
924
+ config_attr :scope, nil, ::String, ::Array, nil
925
+ config_attr :lib_name, nil, ::String, nil
926
+ config_attr :lib_version, nil, ::String, nil
927
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
928
+ config_attr :interceptors, nil, ::Array, nil
929
+ config_attr :timeout, nil, ::Numeric, nil
930
+ config_attr :metadata, nil, ::Hash, nil
931
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
932
+ config_attr :quota_project, nil, ::String, nil
928
933
 
929
934
  # @private
930
935
  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, "dataproc.googleapis.com", String
472
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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-v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
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-05 00:00:00.000000000 Z
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.10'
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.10'
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