google-cloud-logging-v2 0.5.6 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +14 -9
- data/lib/google/cloud/logging/v2/config_service/client.rb +507 -104
- data/lib/google/cloud/logging/v2/config_service/operations.rb +770 -0
- data/lib/google/cloud/logging/v2/config_service/paths.rb +53 -0
- data/lib/google/cloud/logging/v2/config_service.rb +1 -0
- data/lib/google/cloud/logging/v2/logging_service/client.rb +45 -41
- data/lib/google/cloud/logging/v2/version.rb +1 -1
- data/lib/google/cloud/logging/v2.rb +4 -2
- data/lib/google/logging/v2/log_entry_pb.rb +9 -3
- data/lib/google/logging/v2/logging_config_pb.rb +54 -3
- data/lib/google/logging/v2/logging_config_services_pb.rb +78 -39
- data/lib/google/logging/v2/logging_metrics_pb.rb +4 -4
- data/lib/google/logging/v2/logging_pb.rb +3 -5
- data/lib/google/logging/v2/logging_services_pb.rb +4 -4
- data/proto_docs/google/logging/v2/log_entry.rb +42 -4
- data/proto_docs/google/logging/v2/logging.rb +50 -45
- data/proto_docs/google/logging/v2/logging_config.rb +456 -152
- data/proto_docs/google/logging/v2/logging_metrics.rb +9 -5
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f9483d6abd8d574951d58977fa24cc34d2fe8912ad8fb9a5080c6c8ff308046
|
4
|
+
data.tar.gz: 54166d1618799030f6807609c25e163d52502e884d3b6bc461f6b6e7bd2efb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8015a3808193352758cf134e3965cda4905dc7ff58b002e560e93e4e3345fee814d26eb254a6979958e16f49994e6596811fefe6c251c93218916d7d21f2e5e
|
7
|
+
data.tar.gz: c3a7e77b39d87f02ce8e1687ba20953b231b03ade5959bf0264139a03a95ba987aa268eeb95abea6f4e8a93b2eebdb23b94526053e0dbd59b36185397ac0c65f
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export LOGGING_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/logging/v2"
|
29
29
|
|
30
|
-
client = ::Google::Cloud::Logging::V2::
|
30
|
+
client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-logging-v2
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{::Google::Cloud::Logging::V2::
|
67
|
+
{::Google::Cloud::Logging::V2::LoggingService::Credentials}):
|
68
68
|
|
69
69
|
* `LOGGING_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `LOGGING_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/logging/v2"
|
|
77
77
|
|
78
78
|
ENV["LOGGING_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = ::Google::Cloud::Logging::V2::
|
80
|
+
client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ it in an environment variable. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/logging/v2"
|
90
90
|
|
91
|
-
client = ::Google::Cloud::Logging::V2::
|
91
|
+
client = ::Google::Cloud::Logging::V2::LoggingService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/logging/v2"
|
100
100
|
|
101
|
-
::Google::Cloud::Logging::V2::
|
101
|
+
::Google::Cloud::Logging::V2::LoggingService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = ::Google::Cloud::Logging::V2::
|
105
|
+
client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -32,12 +32,12 @@ In order to use this library, you first need to go through the following steps:
|
|
32
32
|
```ruby
|
33
33
|
require "google/cloud/logging/v2"
|
34
34
|
|
35
|
-
client = ::Google::Cloud::Logging::V2::
|
36
|
-
request = ::Google::Cloud::Logging::V2::
|
37
|
-
response = client.
|
35
|
+
client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
|
36
|
+
request = ::Google::Cloud::Logging::V2::DeleteLogRequest.new # (request fields as keyword arguments...)
|
37
|
+
response = client.delete_log request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/logging)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|