AUTHENTICATION.md in google-cloud-dataproc-0.5.1 vs AUTHENTICATION.md in google-cloud-dataproc-0.6.0
- old
+ new
@@ -24,11 +24,11 @@
3. Initialize the client.
```ruby
require "google/cloud/dataproc"
-client = Google::Cloud::Dataproc.new
+client = Google::Cloud::Dataproc::AutoscalingPolicyService.new
```
## Project and Credential Lookup
The google-cloud-dataproc library aims to make authentication
@@ -110,11 +110,11 @@
require "google/cloud/dataproc"
ENV["DATAPROC_PROJECT"] = "my-project-id"
ENV["DATAPROC_CREDENTIALS"] = "path/to/keyfile.json"
-client = Google::Cloud::Dataproc.new
+client = Google::Cloud::Dataproc::AutoscalingPolicyService.new
```
### Configuration
The **Project ID** and **Credentials JSON** can be configured instead of placing them in environment variables or providing them as arguments.
@@ -125,10 +125,10 @@
Google::Cloud::Dataproc.configure do |config|
config.project_id = "my-project-id"
config.credentials = "path/to/keyfile.json"
end
-client = Google::Cloud::Dataproc.new
+client = Google::Cloud::Dataproc::AutoscalingPolicyService.new
```
### Cloud SDK
This option allows for an easy way to authenticate during development. If