google-cloud-logging-v2 0.5.1 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/logging/v2/config_service/client.rb +590 -157
- data/lib/google/cloud/logging/v2/logging_service/client.rb +175 -73
- data/lib/google/cloud/logging/v2/metrics_service/client.rb +155 -73
- data/lib/google/cloud/logging/v2/version.rb +1 -1
- data/lib/google/logging/v2/log_entry_pb.rb +2 -2
- data/lib/google/logging/v2/logging_config_pb.rb +2 -2
- data/lib/google/logging/v2/logging_metrics_pb.rb +2 -2
- data/lib/google/logging/v2/logging_pb.rb +2 -2
- data/proto_docs/google/api/distribution.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/metric.rb +109 -36
- data/proto_docs/google/api/monitored_resource.rb +7 -6
- metadata +5 -6
- data/lib/google/logging/type/http_request_pb.rb +0 -38
- data/lib/google/logging/type/log_severity_pb.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aad56c02cdf03e5bd0e22378a17a9ede9785de677acc316188fe90f826e551a
|
4
|
+
data.tar.gz: fe53be7efb237e63442d2b57212d8cf90038f4617d2ab093291370a9b78b4df6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b7124a3b6bbd72ed85bab7a2fe3aaac252c48ebb76a0cf0025cf170b7d1f5f420a1caf9cc83246cb9587d23905c31f13b92186d5b857ec468dd68723e5bc6e0
|
7
|
+
data.tar.gz: 3694da11812aa4dc24afb8b658feee67efeba5faf96d6981be5cff64b55db7a7d712a78545a76b548c596fb827abf4cdebc219c5d010110d01d0c95350d7d6be
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-logging-v2
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Logging::V2::ConfigService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `LOGGING_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `LOGGING_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/logging/v2"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/logging/v2"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Logging::V2::ConfigService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/logging/v2"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/logging/v2"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Logging::V2::ListBucketsRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_buckets request
|
38
38
|
```
|
39
39
|
|