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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59d087bded22ed2ca963a03f5e00fba7e0d7e37a8f47f0bc96f6dee85fa49cd6
4
- data.tar.gz: 7bdebfe1edeaa0b21b790a4efdc528ab928e9281125d2b9032fc3f0d38967416
3
+ metadata.gz: 57cdafe892c5546ce46041f6ab8e0a8830b2078b5b69506ae3058ca9411b8686
4
+ data.tar.gz: d581925ee787baced846b8ae149a57631b241cb753b0e60bcb3fefc8e4bce59c
5
5
  SHA512:
6
- metadata.gz: 0fb6daa713848cafc4c45bf6ef8ee400464be4a61be9d6cb904294eb5e9fae7310292983a034a7c570f5632910e4b21cf836656cbf84430495d998f091611ced
7
- data.tar.gz: 9d32bc98b5466a57c89932c72195faaf1742f5811340a1581ca186f298361e488835d3d39b6e41928ec146778505da6c0a5ec937dcfd8ec04a98ad732b55df6f
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 = 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::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, "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
@@ -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, "dataproc.googleapis.com", String
864
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
870
- config_attr :lib_name, nil, ::String, nil
871
- config_attr :lib_version, nil, ::String, nil
872
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
873
- config_attr :interceptors, nil, ::Array, nil
874
- config_attr :timeout, nil, ::Numeric, nil
875
- config_attr :metadata, nil, ::Hash, nil
876
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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, "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 V1
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
@@ -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, "dataproc.googleapis.com", String
911
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
917
- config_attr :lib_name, nil, ::String, nil
918
- config_attr :lib_version, nil, ::String, nil
919
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
920
- config_attr :interceptors, nil, ::Array, nil
921
- config_attr :timeout, nil, ::Numeric, nil
922
- config_attr :metadata, nil, ::Hash, nil
923
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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, "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-v1
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