google-cloud-dataproc 1.2.2 → 2.0.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: f07347964660e01dc97b507a66c23feb40cdc6026f7ade2b9337e20d38fe558d
4
- data.tar.gz: 3b8723e817b2023f5f573fd430e6d1aa333e29f9084b2f7944ce50c46f2fc04e
3
+ metadata.gz: 136ad7d286cf08460d9fde44aaa03c0876ae10aedaadfef81b3d5e2a93b92191
4
+ data.tar.gz: 1213801cc62677e95fb0e38bac47ca8cdebf94ab8a7d8f6b9e06098cc3582ad5
5
5
  SHA512:
6
- metadata.gz: 42d8c002ec8b24707954f3e441f14cb046e4d1b850e0cb883decbfc32762448de06216433b27f8cbd45ee53d90e0af00cfafaa335fe447a961bc05bb4e0f10eb
7
- data.tar.gz: d3361c4b2b7ff0ad6164e90a910c7689e55b90229033a7d8dea69be7db10991befc3d47d497ae2b425b63c61da9006f6598b069c4c3bcc9465fab3c883139020
6
+ metadata.gz: 790c8f8ae0c4ea99cd7a88a5f6c3c66c9207209f21031eced8b58dd30571daf59d793f26a4ee3bfc30ce6635e13b9a66e095f9dd42a74bb7266fad93fb34a9b5
7
+ data.tar.gz: 258f650e9e19c6c9845768c423e75eb9693a7dff99998cf51d3a0cc83d3a9bfa70f9995c59d02bc1f2a908fe4c78f72dd1a5e221863c4f63e4fcc88be8884147
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Dataproc API
2
+ --title="Cloud Dataproc API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
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
data/README.md CHANGED
@@ -11,13 +11,12 @@ verisoned gems in as dependencies, and provides high-level methods for
11
11
  constructing clients. More information on versioned clients can be found below
12
12
  in the section titled *Which client should I use?*.
13
13
 
14
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dataproc/latest)
14
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataproc/latest)
15
15
  for this library, google-cloud-dataproc, to see the convenience methods for
16
16
  constructing client objects. Reference documentation for the client objects
17
17
  themselves can be found in the client library documentation for the versioned
18
18
  client gems:
19
- [google-cloud-dataproc-v1](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest),
20
- [google-cloud-dataproc-v1beta2](https://googleapis.dev/ruby/google-cloud-dataproc-v1beta2/latest).
19
+ [google-cloud-dataproc-v1](https://googleapis.dev/ruby/google-cloud-dataproc-v1/latest).
21
20
 
22
21
  See also the [Product Documentation](https://cloud.google.com/dataproc)
23
22
  for more usage information.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Dataproc
23
- VERSION = "1.2.2"
23
+ VERSION = "2.0.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: 2.0.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: 2022-05-05 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,27 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.0'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: 2.a
47
- - !ruby/object:Gem::Dependency
48
- name: google-cloud-dataproc-v1beta2
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0.0'
54
- - - "<"
55
- - !ruby/object:Gem::Version
56
- version: 2.a
57
- type: :runtime
58
- prerelease: false
59
- version_requirements: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: '0.0'
43
+ version: '0.7'
64
44
  - - "<"
65
45
  - !ruby/object:Gem::Version
66
46
  version: 2.a
@@ -209,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
189
  - !ruby/object:Gem::Version
210
190
  version: '0'
211
191
  requirements: []
212
- rubygems_version: 3.2.17
192
+ rubygems_version: 3.3.5
213
193
  signing_key:
214
194
  specification_version: 4
215
195
  summary: API Client library for the Cloud Dataproc API