Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions google-cloud-chronicle/AUTHENTICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
```ruby
require "google/cloud/chronicle"

client = Google::Cloud::Chronicle.data_access_control_service do |config|
client = Google::Cloud::Chronicle.big_query_export_service do |config|
config.credentials = "path/to/credentialfile.json"
end
```
Expand All @@ -70,7 +70,7 @@ Google::Cloud::Chronicle.configure do |config|
config.credentials = "path/to/credentialfile.json"
end

client = Google::Cloud::Chronicle.data_access_control_service
client = Google::Cloud::Chronicle.big_query_export_service
```

### Environment Variables
Expand Down Expand Up @@ -100,7 +100,7 @@ require "google/cloud/chronicle"

ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"

client = Google::Cloud::Chronicle.data_access_control_service
client = Google::Cloud::Chronicle.big_query_export_service
```

### Local ADC file
Expand Down
6 changes: 3 additions & 3 deletions google-cloud-chronicle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ In order to use this library, you first need to go through the following steps:
```ruby
require "google/cloud/chronicle"

client = Google::Cloud::Chronicle.data_access_control_service
request = ::Google::Cloud::Chronicle::V1::CreateDataAccessLabelRequest.new # (request fields as keyword arguments...)
response = client.create_data_access_label request
client = Google::Cloud::Chronicle.big_query_export_service
request = ::Google::Cloud::Chronicle::V1::GetBigQueryExportRequest.new # (request fields as keyword arguments...)
response = client.get_big_query_export request
```

## Debug Logging
Expand Down
4 changes: 2 additions & 2 deletions google-cloud-chronicle/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ task :acceptance, :project, :keyfile do |t, args|
if project.nil? || keyfile.nil?
fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance"
end
require "google/cloud/chronicle/v1/data_access_control_service/credentials"
::Google::Cloud::Chronicle::V1::DataAccessControlService::Credentials.env_vars.each do |path|
require "google/cloud/chronicle/v1/big_query_export_service/credentials"
::Google::Cloud::Chronicle::V1::BigQueryExportService::Credentials.env_vars.each do |path|
ENV[path] = nil
end
ENV["GOOGLE_CLOUD_PROJECT"] = project
Expand Down
Loading
Loading