google-cloud-dataproc 2.1.0 → 2.3.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: d3bcfcc052391b4671dc125e462cbd28fe10e0a321219f651c8dbbb14fd17bfa
4
- data.tar.gz: 89a0f273e90cf429943206db7f0786dbc3f414a8b6b1560f22323f57f434e3d2
3
+ metadata.gz: 2ac208afffcbabea41c1b566a53892b8afbe5adc1f6abaa0cafeda6536aeeeef
4
+ data.tar.gz: 529349a76dcf851f2cdb1582fbf360fe41011d6dd7e14c28744947aa43383fe3
5
5
  SHA512:
6
- metadata.gz: 38a688f37c4324e3161ca2695d145c1781e945fcc8f9a54c77eb2598862daec858ecfc5fe2fc128407308f93db7de8358694e4d5efbadc93f8e6ed0200720b94
7
- data.tar.gz: 1954420163a33b572c0ee27aa7ffdaaae37250c5e06b432961567f4eedc7ce008845f512d9c0895f5789da2ea965728128ad551181122c571f9b503830c1e3f6
6
+ metadata.gz: b715627a75a3577c3a0603f1fa217bd8ef2508318ecc0260e3bdc03d0c065fc1a53a4979df793e249a07a243b5325a0a3715aa7369150c597141341fddd2e3d0
7
+ data.tar.gz: 1addee5eef3df0263bce92706939b4c2c02b96b4eac2f218085d1726cdc5a07e796e8609d070932968de5ce15001d7a452619fc6673f202d196b6f06c28a9603
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
@@ -42,32 +42,6 @@ and includes substantial interface changes. Existing code written for earlier
42
42
  versions of this library will likely require updates to use this version.
43
43
  See the {file:MIGRATING.md MIGRATING.md} document for more information.
44
44
 
45
- ## Enabling Logging
46
-
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,
49
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
52
-
53
- Configuring a Ruby stdlib logger:
54
-
55
- ```ruby
56
- require "logger"
57
-
58
- module MyLogger
59
- LOGGER = Logger.new $stderr, level: Logger::WARN
60
- def logger
61
- LOGGER
62
- end
63
- end
64
-
65
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
66
- module GRPC
67
- extend MyLogger
68
- end
69
- ```
70
-
71
45
  ## Supported Ruby Versions
72
46
 
73
47
  This library is supported on Ruby 2.6+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataproc
23
- VERSION = "2.1.0"
23
+ VERSION = "2.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -49,11 +49,13 @@ 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.
57
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
58
+ # the `transport` parameter.
57
59
  #
58
60
  # ## About AutoscalingPolicyService
59
61
  #
@@ -62,17 +64,19 @@ module Google
62
64
  #
63
65
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
64
66
  # Defaults to `:v1`.
65
- # @return [AutoscalingPolicyService::Client] A client object for the specified version.
67
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
68
+ # @return [::Object] A client object for the specified version.
66
69
  #
67
- def self.autoscaling_policy_service version: :v1, &block
70
+ def self.autoscaling_policy_service version: :v1, transport: :grpc, &block
68
71
  require "google/cloud/dataproc/#{version.to_s.downcase}"
69
72
 
70
73
  package_name = Google::Cloud::Dataproc
71
74
  .constants
72
75
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
73
76
  .first
74
- package_module = Google::Cloud::Dataproc.const_get package_name
75
- package_module.const_get(:AutoscalingPolicyService).const_get(:Client).new(&block)
77
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:AutoscalingPolicyService)
78
+ service_module = service_module.const_get(:Rest) if transport == :rest
79
+ service_module.const_get(:Client).new(&block)
76
80
  end
77
81
 
78
82
  ##
@@ -80,11 +84,13 @@ module Google
80
84
  #
81
85
  # By default, this returns an instance of
82
86
  # [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
87
+ # for a gRPC client for version V1 of the API.
88
+ # However, you can specify a different API version by passing it in the
85
89
  # `version` parameter. If the BatchController service is
86
90
  # supported by that API version, and the corresponding gem is available, the
87
91
  # appropriate versioned client will be returned.
92
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
93
+ # the `transport` parameter.
88
94
  #
89
95
  # ## About BatchController
90
96
  #
@@ -92,17 +98,19 @@ module Google
92
98
  #
93
99
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
100
  # Defaults to `:v1`.
95
- # @return [BatchController::Client] A client object for the specified version.
101
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
102
+ # @return [::Object] A client object for the specified version.
96
103
  #
97
- def self.batch_controller version: :v1, &block
104
+ def self.batch_controller version: :v1, transport: :grpc, &block
98
105
  require "google/cloud/dataproc/#{version.to_s.downcase}"
99
106
 
100
107
  package_name = Google::Cloud::Dataproc
101
108
  .constants
102
109
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
103
110
  .first
104
- package_module = Google::Cloud::Dataproc.const_get package_name
105
- package_module.const_get(:BatchController).const_get(:Client).new(&block)
111
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:BatchController)
112
+ service_module = service_module.const_get(:Rest) if transport == :rest
113
+ service_module.const_get(:Client).new(&block)
106
114
  end
107
115
 
108
116
  ##
@@ -110,11 +118,13 @@ module Google
110
118
  #
111
119
  # By default, this returns an instance of
112
120
  # [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
121
+ # for a gRPC client for version V1 of the API.
122
+ # However, you can specify a different API version by passing it in the
115
123
  # `version` parameter. If the ClusterController service is
116
124
  # supported by that API version, and the corresponding gem is available, the
117
125
  # appropriate versioned client will be returned.
126
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
127
+ # the `transport` parameter.
118
128
  #
119
129
  # ## About ClusterController
120
130
  #
@@ -123,17 +133,19 @@ module Google
123
133
  #
124
134
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
125
135
  # Defaults to `:v1`.
126
- # @return [ClusterController::Client] A client object for the specified version.
136
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
137
+ # @return [::Object] A client object for the specified version.
127
138
  #
128
- def self.cluster_controller version: :v1, &block
139
+ def self.cluster_controller version: :v1, transport: :grpc, &block
129
140
  require "google/cloud/dataproc/#{version.to_s.downcase}"
130
141
 
131
142
  package_name = Google::Cloud::Dataproc
132
143
  .constants
133
144
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
134
145
  .first
135
- package_module = Google::Cloud::Dataproc.const_get package_name
136
- package_module.const_get(:ClusterController).const_get(:Client).new(&block)
146
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:ClusterController)
147
+ service_module = service_module.const_get(:Rest) if transport == :rest
148
+ service_module.const_get(:Client).new(&block)
137
149
  end
138
150
 
139
151
  ##
@@ -141,11 +153,13 @@ module Google
141
153
  #
142
154
  # By default, this returns an instance of
143
155
  # [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
156
+ # for a gRPC client for version V1 of the API.
157
+ # However, you can specify a different API version by passing it in the
146
158
  # `version` parameter. If the JobController service is
147
159
  # supported by that API version, and the corresponding gem is available, the
148
160
  # appropriate versioned client will be returned.
161
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
162
+ # the `transport` parameter.
149
163
  #
150
164
  # ## About JobController
151
165
  #
@@ -153,17 +167,54 @@ module Google
153
167
  #
154
168
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
155
169
  # Defaults to `:v1`.
156
- # @return [JobController::Client] A client object for the specified version.
170
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
171
+ # @return [::Object] A client object for the specified version.
157
172
  #
158
- def self.job_controller version: :v1, &block
173
+ def self.job_controller version: :v1, transport: :grpc, &block
159
174
  require "google/cloud/dataproc/#{version.to_s.downcase}"
160
175
 
161
176
  package_name = Google::Cloud::Dataproc
162
177
  .constants
163
178
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
164
179
  .first
165
- package_module = Google::Cloud::Dataproc.const_get package_name
166
- package_module.const_get(:JobController).const_get(:Client).new(&block)
180
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:JobController)
181
+ service_module = service_module.const_get(:Rest) if transport == :rest
182
+ service_module.const_get(:Client).new(&block)
183
+ end
184
+
185
+ ##
186
+ # Create a new client object for NodeGroupController.
187
+ #
188
+ # By default, this returns an instance of
189
+ # [Google::Cloud::Dataproc::V1::NodeGroupController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/NodeGroupController/Client.html)
190
+ # for a gRPC client for version V1 of the API.
191
+ # However, you can specify a different API version by passing it in the
192
+ # `version` parameter. If the NodeGroupController service is
193
+ # supported by that API version, and the corresponding gem is available, the
194
+ # appropriate versioned client will be returned.
195
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
196
+ # the `transport` parameter.
197
+ #
198
+ # ## About NodeGroupController
199
+ #
200
+ # The `NodeGroupControllerService` provides methods to manage node groups
201
+ # of Compute Engine managed instances.
202
+ #
203
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
204
+ # Defaults to `:v1`.
205
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
206
+ # @return [::Object] A client object for the specified version.
207
+ #
208
+ def self.node_group_controller version: :v1, transport: :grpc, &block
209
+ require "google/cloud/dataproc/#{version.to_s.downcase}"
210
+
211
+ package_name = Google::Cloud::Dataproc
212
+ .constants
213
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
214
+ .first
215
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:NodeGroupController)
216
+ service_module = service_module.const_get(:Rest) if transport == :rest
217
+ service_module.const_get(:Client).new(&block)
167
218
  end
168
219
 
169
220
  ##
@@ -171,11 +222,13 @@ module Google
171
222
  #
172
223
  # By default, this returns an instance of
173
224
  # [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
225
+ # for a gRPC client for version V1 of the API.
226
+ # However, you can specify a different API version by passing it in the
176
227
  # `version` parameter. If the WorkflowTemplateService service is
177
228
  # supported by that API version, and the corresponding gem is available, the
178
229
  # appropriate versioned client will be returned.
230
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
231
+ # the `transport` parameter.
179
232
  #
180
233
  # ## About WorkflowTemplateService
181
234
  #
@@ -184,17 +237,19 @@ module Google
184
237
  #
185
238
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
186
239
  # Defaults to `:v1`.
187
- # @return [WorkflowTemplateService::Client] A client object for the specified version.
240
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
241
+ # @return [::Object] A client object for the specified version.
188
242
  #
189
- def self.workflow_template_service version: :v1, &block
243
+ def self.workflow_template_service version: :v1, transport: :grpc, &block
190
244
  require "google/cloud/dataproc/#{version.to_s.downcase}"
191
245
 
192
246
  package_name = Google::Cloud::Dataproc
193
247
  .constants
194
248
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
195
249
  .first
196
- package_module = Google::Cloud::Dataproc.const_get package_name
197
- package_module.const_get(:WorkflowTemplateService).const_get(:Client).new(&block)
250
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:WorkflowTemplateService)
251
+ service_module = service_module.const_get(:Rest) if transport == :rest
252
+ service_module.const_get(:Client).new(&block)
198
253
  end
199
254
 
200
255
  ##
@@ -214,7 +269,7 @@ module Google
214
269
  # * `timeout` (*type:* `Numeric`) -
215
270
  # Default timeout in seconds.
216
271
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
217
- # Additional gRPC headers to be sent with the call.
272
+ # Additional headers to be sent with the call.
218
273
  # * `retry_policy` (*type:* `Hash`) -
219
274
  # The retry policy. The value is a hash with the following keys:
220
275
  # * `: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.1.0
4
+ version: 2.3.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-07-02 00:00:00.000000000 Z
11
+ date: 2023-03-09 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.17'
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.17'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.3.14
192
+ rubygems_version: 3.4.2
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: API Client library for the Cloud Dataproc API