google-cloud-dataproc 2.0.0 → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 136ad7d286cf08460d9fde44aaa03c0876ae10aedaadfef81b3d5e2a93b92191
4
- data.tar.gz: 1213801cc62677e95fb0e38bac47ca8cdebf94ab8a7d8f6b9e06098cc3582ad5
3
+ metadata.gz: 5d00917acf7fa53dafd7e7833b7c2d923398fab72b1e0cbeaad76a1f01cc3098
4
+ data.tar.gz: ed19aba93109b589a9346798f5eac6557145f7c54f2e8a6f30dc576e55724129
5
5
  SHA512:
6
- metadata.gz: 790c8f8ae0c4ea99cd7a88a5f6c3c66c9207209f21031eced8b58dd30571daf59d793f26a4ee3bfc30ce6635e13b9a66e095f9dd42a74bb7266fad93fb34a9b5
7
- data.tar.gz: 258f650e9e19c6c9845768c423e75eb9693a7dff99998cf51d3a0cc83d3a9bfa70f9995c59d02bc1f2a908fe4c78f72dd1a5e221863c4f63e4fcc88be8884147
6
+ metadata.gz: b7b22953a293572d98c1dd22fc8d665319c0fe45eeb45cc112cc35e171ad1231c6a2834da95e016089802b94d73abb7ce41f3d281a9c0077bff4a938d14035c7
7
+ data.tar.gz: 4f1b2cb1019a036b3cb4e0f30f0845ae938a45886a58e9bb4315c5a9b04905369c6b19f747dfa92a237da3a23e0e8eda96abc0a7a016ed3537851187a5c4975c
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -45,7 +45,7 @@ See the {file:MIGRATING.md MIGRATING.md} document for more information.
45
45
  ## Enabling Logging
46
46
 
47
47
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
48
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
48
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
49
49
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
50
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
51
51
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -70,14 +70,14 @@ end
70
70
 
71
71
  ## Supported Ruby Versions
72
72
 
73
- This library is supported on Ruby 2.5+.
73
+ This library is supported on Ruby 2.6+.
74
74
 
75
75
  Google provides official support for Ruby versions that are actively supported
76
76
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
77
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
78
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
79
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
80
- about the Ruby support schedule.
77
+ in security maintenance, and not end of life. Older versions of Ruby _may_
78
+ still work, but are unsupported and not recommended. See
79
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
80
+ support schedule.
81
81
 
82
82
  ## Which client should I use?
83
83
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataproc
23
- VERSION = "2.0.0"
23
+ VERSION = "2.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -49,8 +49,8 @@ module Google
49
49
  #
50
50
  # By default, this returns an instance of
51
51
  # [Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/AutoscalingPolicyService/Client.html)
52
- # for version V1 of the API.
53
- # However, you can specify specify a different API version by passing it in the
52
+ # for a gRPC client for version V1 of the API.
53
+ # However, you can specify a different API version by passing it in the
54
54
  # `version` parameter. If the AutoscalingPolicyService service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
@@ -62,7 +62,7 @@ module Google
62
62
  #
63
63
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
64
64
  # Defaults to `:v1`.
65
- # @return [AutoscalingPolicyService::Client] A client object for the specified version.
65
+ # @return [::Object] A client object for the specified version.
66
66
  #
67
67
  def self.autoscaling_policy_service version: :v1, &block
68
68
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -71,8 +71,8 @@ module Google
71
71
  .constants
72
72
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
73
73
  .first
74
- package_module = Google::Cloud::Dataproc.const_get package_name
75
- package_module.const_get(:AutoscalingPolicyService).const_get(:Client).new(&block)
74
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:AutoscalingPolicyService)
75
+ service_module.const_get(:Client).new(&block)
76
76
  end
77
77
 
78
78
  ##
@@ -80,8 +80,8 @@ module Google
80
80
  #
81
81
  # By default, this returns an instance of
82
82
  # [Google::Cloud::Dataproc::V1::BatchController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/BatchController/Client.html)
83
- # for version V1 of the API.
84
- # However, you can specify specify a different API version by passing it in the
83
+ # for a gRPC client for version V1 of the API.
84
+ # However, you can specify a different API version by passing it in the
85
85
  # `version` parameter. If the BatchController service is
86
86
  # supported by that API version, and the corresponding gem is available, the
87
87
  # appropriate versioned client will be returned.
@@ -92,7 +92,7 @@ module Google
92
92
  #
93
93
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
94
  # Defaults to `:v1`.
95
- # @return [BatchController::Client] A client object for the specified version.
95
+ # @return [::Object] A client object for the specified version.
96
96
  #
97
97
  def self.batch_controller version: :v1, &block
98
98
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -101,8 +101,8 @@ module Google
101
101
  .constants
102
102
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
103
103
  .first
104
- package_module = Google::Cloud::Dataproc.const_get package_name
105
- package_module.const_get(:BatchController).const_get(:Client).new(&block)
104
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:BatchController)
105
+ service_module.const_get(:Client).new(&block)
106
106
  end
107
107
 
108
108
  ##
@@ -110,8 +110,8 @@ module Google
110
110
  #
111
111
  # By default, this returns an instance of
112
112
  # [Google::Cloud::Dataproc::V1::ClusterController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/ClusterController/Client.html)
113
- # for version V1 of the API.
114
- # However, you can specify specify a different API version by passing it in the
113
+ # for a gRPC client for version V1 of the API.
114
+ # However, you can specify a different API version by passing it in the
115
115
  # `version` parameter. If the ClusterController service is
116
116
  # supported by that API version, and the corresponding gem is available, the
117
117
  # appropriate versioned client will be returned.
@@ -123,7 +123,7 @@ module Google
123
123
  #
124
124
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
125
125
  # Defaults to `:v1`.
126
- # @return [ClusterController::Client] A client object for the specified version.
126
+ # @return [::Object] A client object for the specified version.
127
127
  #
128
128
  def self.cluster_controller version: :v1, &block
129
129
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -132,8 +132,8 @@ module Google
132
132
  .constants
133
133
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
134
134
  .first
135
- package_module = Google::Cloud::Dataproc.const_get package_name
136
- package_module.const_get(:ClusterController).const_get(:Client).new(&block)
135
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:ClusterController)
136
+ service_module.const_get(:Client).new(&block)
137
137
  end
138
138
 
139
139
  ##
@@ -141,8 +141,8 @@ module Google
141
141
  #
142
142
  # By default, this returns an instance of
143
143
  # [Google::Cloud::Dataproc::V1::JobController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/JobController/Client.html)
144
- # for version V1 of the API.
145
- # However, you can specify specify a different API version by passing it in the
144
+ # for a gRPC client for version V1 of the API.
145
+ # However, you can specify a different API version by passing it in the
146
146
  # `version` parameter. If the JobController service is
147
147
  # supported by that API version, and the corresponding gem is available, the
148
148
  # appropriate versioned client will be returned.
@@ -153,7 +153,7 @@ module Google
153
153
  #
154
154
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
155
155
  # Defaults to `:v1`.
156
- # @return [JobController::Client] A client object for the specified version.
156
+ # @return [::Object] A client object for the specified version.
157
157
  #
158
158
  def self.job_controller version: :v1, &block
159
159
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -162,8 +162,8 @@ module Google
162
162
  .constants
163
163
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
164
164
  .first
165
- package_module = Google::Cloud::Dataproc.const_get package_name
166
- package_module.const_get(:JobController).const_get(:Client).new(&block)
165
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:JobController)
166
+ service_module.const_get(:Client).new(&block)
167
167
  end
168
168
 
169
169
  ##
@@ -171,8 +171,8 @@ module Google
171
171
  #
172
172
  # By default, this returns an instance of
173
173
  # [Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/WorkflowTemplateService/Client.html)
174
- # for version V1 of the API.
175
- # However, you can specify specify a different API version by passing it in the
174
+ # for a gRPC client for version V1 of the API.
175
+ # However, you can specify a different API version by passing it in the
176
176
  # `version` parameter. If the WorkflowTemplateService service is
177
177
  # supported by that API version, and the corresponding gem is available, the
178
178
  # appropriate versioned client will be returned.
@@ -184,7 +184,7 @@ module Google
184
184
  #
185
185
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
186
186
  # Defaults to `:v1`.
187
- # @return [WorkflowTemplateService::Client] A client object for the specified version.
187
+ # @return [::Object] A client object for the specified version.
188
188
  #
189
189
  def self.workflow_template_service version: :v1, &block
190
190
  require "google/cloud/dataproc/#{version.to_s.downcase}"
@@ -193,8 +193,39 @@ module Google
193
193
  .constants
194
194
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
195
195
  .first
196
- package_module = Google::Cloud::Dataproc.const_get package_name
197
- package_module.const_get(:WorkflowTemplateService).const_get(:Client).new(&block)
196
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:WorkflowTemplateService)
197
+ service_module.const_get(:Client).new(&block)
198
+ end
199
+
200
+ ##
201
+ # Create a new client object for NodeGroupController.
202
+ #
203
+ # By default, this returns an instance of
204
+ # [Google::Cloud::Dataproc::V1::NodeGroupController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/NodeGroupController/Client.html)
205
+ # for a gRPC client for version V1 of the API.
206
+ # However, you can specify a different API version by passing it in the
207
+ # `version` parameter. If the NodeGroupController service is
208
+ # supported by that API version, and the corresponding gem is available, the
209
+ # appropriate versioned client will be returned.
210
+ #
211
+ # ## About NodeGroupController
212
+ #
213
+ # The `NodeGroupControllerService` provides methods to manage node groups
214
+ # of Compute Engine managed instances.
215
+ #
216
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
217
+ # Defaults to `:v1`.
218
+ # @return [::Object] A client object for the specified version.
219
+ #
220
+ def self.node_group_controller version: :v1, &block
221
+ require "google/cloud/dataproc/#{version.to_s.downcase}"
222
+
223
+ package_name = Google::Cloud::Dataproc
224
+ .constants
225
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
226
+ .first
227
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:NodeGroupController)
228
+ service_module.const_get(:Client).new(&block)
198
229
  end
199
230
 
200
231
  ##
@@ -214,7 +245,7 @@ module Google
214
245
  # * `timeout` (*type:* `Numeric`) -
215
246
  # Default timeout in seconds.
216
247
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
217
- # Additional gRPC headers to be sent with the call.
248
+ # Additional headers to be sent with the call.
218
249
  # * `retry_policy` (*type:* `Hash`) -
219
250
  # The retry policy. The value is a hash with the following keys:
220
251
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataproc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.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: 2022-05-05 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.7'
33
+ version: '0.14'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.7'
43
+ version: '0.14'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -182,14 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - ">="
184
184
  - !ruby/object:Gem::Version
185
- version: '2.5'
185
+ version: '2.6'
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
188
  - - ">="
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.3.5
192
+ rubygems_version: 3.3.14
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: API Client library for the Cloud Dataproc API