google-cloud-dataproc 2.2.0 → 2.3.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: 5d00917acf7fa53dafd7e7833b7c2d923398fab72b1e0cbeaad76a1f01cc3098
4
- data.tar.gz: ed19aba93109b589a9346798f5eac6557145f7c54f2e8a6f30dc576e55724129
3
+ metadata.gz: 2ac208afffcbabea41c1b566a53892b8afbe5adc1f6abaa0cafeda6536aeeeef
4
+ data.tar.gz: 529349a76dcf851f2cdb1582fbf360fe41011d6dd7e14c28744947aa43383fe3
5
5
  SHA512:
6
- metadata.gz: b7b22953a293572d98c1dd22fc8d665319c0fe45eeb45cc112cc35e171ad1231c6a2834da95e016089802b94d73abb7ce41f3d281a9c0077bff4a938d14035c7
7
- data.tar.gz: 4f1b2cb1019a036b3cb4e0f30f0845ae938a45886a58e9bb4315c5a9b04905369c6b19f747dfa92a237da3a23e0e8eda96abc0a7a016ed3537851187a5c4975c
6
+ metadata.gz: b715627a75a3577c3a0603f1fa217bd8ef2508318ecc0260e3bdc03d0c065fc1a53a4979df793e249a07a243b5325a0a3715aa7369150c597141341fddd2e3d0
7
+ data.tar.gz: 1addee5eef3df0263bce92706939b4c2c02b96b4eac2f218085d1726cdc5a07e796e8609d070932968de5ce15001d7a452619fc6673f202d196b6f06c28a9603
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/current/stdlibs/logger/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.2.0"
23
+ VERSION = "2.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -54,6 +54,8 @@ module Google
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,9 +64,10 @@ module Google
62
64
  #
63
65
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
64
66
  # Defaults to `:v1`.
67
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
65
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
@@ -72,6 +75,7 @@ module Google
72
75
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
73
76
  .first
74
77
  service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:AutoscalingPolicyService)
78
+ service_module = service_module.const_get(:Rest) if transport == :rest
75
79
  service_module.const_get(:Client).new(&block)
76
80
  end
77
81
 
@@ -85,6 +89,8 @@ module Google
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,9 +98,10 @@ module Google
92
98
  #
93
99
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
100
  # Defaults to `:v1`.
101
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
95
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
@@ -102,6 +109,7 @@ module Google
102
109
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
103
110
  .first
104
111
  service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:BatchController)
112
+ service_module = service_module.const_get(:Rest) if transport == :rest
105
113
  service_module.const_get(:Client).new(&block)
106
114
  end
107
115
 
@@ -115,6 +123,8 @@ module Google
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,9 +133,10 @@ module Google
123
133
  #
124
134
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
125
135
  # Defaults to `:v1`.
136
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
126
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
@@ -133,6 +144,7 @@ module Google
133
144
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
134
145
  .first
135
146
  service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:ClusterController)
147
+ service_module = service_module.const_get(:Rest) if transport == :rest
136
148
  service_module.const_get(:Client).new(&block)
137
149
  end
138
150
 
@@ -146,6 +158,8 @@ module Google
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,9 +167,10 @@ module Google
153
167
  #
154
168
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
155
169
  # Defaults to `:v1`.
170
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
156
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
@@ -163,68 +178,77 @@ module Google
163
178
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
164
179
  .first
165
180
  service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:JobController)
181
+ service_module = service_module.const_get(:Rest) if transport == :rest
166
182
  service_module.const_get(:Client).new(&block)
167
183
  end
168
184
 
169
185
  ##
170
- # Create a new client object for WorkflowTemplateService.
186
+ # Create a new client object for NodeGroupController.
171
187
  #
172
188
  # By default, this returns an instance of
173
- # [Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/WorkflowTemplateService/Client.html)
189
+ # [Google::Cloud::Dataproc::V1::NodeGroupController::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/NodeGroupController/Client.html)
174
190
  # for a gRPC client for version V1 of the API.
175
191
  # However, you can specify a different API version by passing it in the
176
- # `version` parameter. If the WorkflowTemplateService service is
192
+ # `version` parameter. If the NodeGroupController service is
177
193
  # supported by that API version, and the corresponding gem is available, the
178
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.
179
197
  #
180
- # ## About WorkflowTemplateService
198
+ # ## About NodeGroupController
181
199
  #
182
- # The API interface for managing Workflow Templates in the
183
- # Dataproc API.
200
+ # The `NodeGroupControllerService` provides methods to manage node groups
201
+ # of Compute Engine managed instances.
184
202
  #
185
203
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
186
204
  # Defaults to `:v1`.
205
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
187
206
  # @return [::Object] A client object for the specified version.
188
207
  #
189
- def self.workflow_template_service version: :v1, &block
208
+ def self.node_group_controller version: :v1, transport: :grpc, &block
190
209
  require "google/cloud/dataproc/#{version.to_s.downcase}"
191
210
 
192
211
  package_name = Google::Cloud::Dataproc
193
212
  .constants
194
213
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
195
214
  .first
196
- service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:WorkflowTemplateService)
215
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:NodeGroupController)
216
+ service_module = service_module.const_get(:Rest) if transport == :rest
197
217
  service_module.const_get(:Client).new(&block)
198
218
  end
199
219
 
200
220
  ##
201
- # Create a new client object for NodeGroupController.
221
+ # Create a new client object for WorkflowTemplateService.
202
222
  #
203
223
  # 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)
224
+ # [Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest/Google/Cloud/Dataproc/V1/WorkflowTemplateService/Client.html)
205
225
  # for a gRPC client for version V1 of the API.
206
226
  # However, you can specify a different API version by passing it in the
207
- # `version` parameter. If the NodeGroupController service is
227
+ # `version` parameter. If the WorkflowTemplateService service is
208
228
  # supported by that API version, and the corresponding gem is available, the
209
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.
210
232
  #
211
- # ## About NodeGroupController
233
+ # ## About WorkflowTemplateService
212
234
  #
213
- # The `NodeGroupControllerService` provides methods to manage node groups
214
- # of Compute Engine managed instances.
235
+ # The API interface for managing Workflow Templates in the
236
+ # Dataproc API.
215
237
  #
216
238
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
217
239
  # Defaults to `:v1`.
240
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
218
241
  # @return [::Object] A client object for the specified version.
219
242
  #
220
- def self.node_group_controller version: :v1, &block
243
+ def self.workflow_template_service version: :v1, transport: :grpc, &block
221
244
  require "google/cloud/dataproc/#{version.to_s.downcase}"
222
245
 
223
246
  package_name = Google::Cloud::Dataproc
224
247
  .constants
225
248
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
226
249
  .first
227
- service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:NodeGroupController)
250
+ service_module = Google::Cloud::Dataproc.const_get(package_name).const_get(:WorkflowTemplateService)
251
+ service_module = service_module.const_get(:Rest) if transport == :rest
228
252
  service_module.const_get(:Client).new(&block)
229
253
  end
230
254
 
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.2.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: 2023-01-06 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.14'
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.14'
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