google-cloud-dataproc 1.2.2 → 1.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: f07347964660e01dc97b507a66c23feb40cdc6026f7ade2b9337e20d38fe558d
4
- data.tar.gz: 3b8723e817b2023f5f573fd430e6d1aa333e29f9084b2f7944ce50c46f2fc04e
3
+ metadata.gz: 6c43ab622c651d0246309e126e111d350ebfb0fd640b0e298c2312b0f1e12643
4
+ data.tar.gz: d073d295987dfc6bd6aa665f95e46a950e25ae320bd926c6058312359b5dc9ab
5
5
  SHA512:
6
- metadata.gz: 42d8c002ec8b24707954f3e441f14cb046e4d1b850e0cb883decbfc32762448de06216433b27f8cbd45ee53d90e0af00cfafaa335fe447a961bc05bb4e0f10eb
7
- data.tar.gz: d3361c4b2b7ff0ad6164e90a910c7689e55b90229033a7d8dea69be7db10991befc3d47d497ae2b425b63c61da9006f6598b069c4c3bcc9465fab3c883139020
6
+ metadata.gz: f6eaa58a2f04a4542fcca0322bdfce4804acfd16c0e5f2d9c9033f8ade1bf06f6bbc5bf4821b9c57da391111a1b1f0b795828a6c3999ea237cbfd10167bcdc0a
7
+ data.tar.gz: d664bee417dcf98a05534f3287caafdb6beffe3132e5fc47f15887f0ac1fabb82e82cbd845fad3f72caef49e768e40015d3655a79e029196ffbea57d4984edbe
data/MIGRATING.md CHANGED
@@ -298,7 +298,7 @@ end
298
298
  ### Handling Errors
299
299
 
300
300
  The client reports standard
301
- {file:https://github.com/grpc/grpc/blob/master/doc/statuscodes.md gRPC error codes}
301
+ [gRPC error codes](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md)
302
302
  by raising exceptions. In older releases, these exceptions were located in the
303
303
  `Google::Gax` namespace and were subclasses of the `Google::Gax::GaxError` base
304
304
  exception class, defined in the `google-gax` gem. However, these classes were
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataproc
23
- VERSION = "1.2.2"
23
+ VERSION = "1.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -75,6 +75,36 @@ module Google
75
75
  package_module.const_get(:AutoscalingPolicyService).const_get(:Client).new(&block)
76
76
  end
77
77
 
78
+ ##
79
+ # Create a new client object for BatchController.
80
+ #
81
+ # By default, this returns an instance of
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
85
+ # `version` parameter. If the BatchController service is
86
+ # supported by that API version, and the corresponding gem is available, the
87
+ # appropriate versioned client will be returned.
88
+ #
89
+ # ## About BatchController
90
+ #
91
+ # The BatchController provides methods to manage batch workloads.
92
+ #
93
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
+ # Defaults to `:v1`.
95
+ # @return [BatchController::Client] A client object for the specified version.
96
+ #
97
+ def self.batch_controller version: :v1, &block
98
+ require "google/cloud/dataproc/#{version.to_s.downcase}"
99
+
100
+ package_name = Google::Cloud::Dataproc
101
+ .constants
102
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
103
+ .first
104
+ package_module = Google::Cloud::Dataproc.const_get package_name
105
+ package_module.const_get(:BatchController).const_get(:Client).new(&block)
106
+ end
107
+
78
108
  ##
79
109
  # Create a new client object for ClusterController.
80
110
  #
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: 1.2.2
4
+ version: 1.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: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-10-25 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.0'
33
+ version: '0.7'
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.0'
43
+ version: '0.7'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0.6'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.0'
63
+ version: '0.6'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a