google-cloud-logging 1.10.5 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +2 -1
  3. data/CHANGELOG.md +47 -0
  4. data/TROUBLESHOOTING.md +2 -8
  5. data/lib/google-cloud-logging.rb +14 -15
  6. data/lib/google/cloud/logging.rb +12 -13
  7. data/lib/google/cloud/logging/credentials.rb +2 -2
  8. data/lib/google/cloud/logging/entry.rb +5 -5
  9. data/lib/google/cloud/logging/entry/http_request.rb +3 -3
  10. data/lib/google/cloud/logging/entry/list.rb +1 -1
  11. data/lib/google/cloud/logging/entry/operation.rb +3 -3
  12. data/lib/google/cloud/logging/entry/source_location.rb +3 -3
  13. data/lib/google/cloud/logging/log/list.rb +1 -1
  14. data/lib/google/cloud/logging/metric.rb +2 -2
  15. data/lib/google/cloud/logging/metric/list.rb +1 -1
  16. data/lib/google/cloud/logging/resource_descriptor/list.rb +1 -1
  17. data/lib/google/cloud/logging/service.rb +70 -173
  18. data/lib/google/cloud/logging/sink.rb +2 -2
  19. data/lib/google/cloud/logging/sink/list.rb +1 -1
  20. data/lib/google/cloud/logging/version.rb +1 -1
  21. metadata +11 -81
  22. data/lib/google/cloud/logging/v2.rb +0 -18
  23. data/lib/google/cloud/logging/v2/config_service_v2_client.rb +0 -1368
  24. data/lib/google/cloud/logging/v2/config_service_v2_client_config.json +0 -101
  25. data/lib/google/cloud/logging/v2/credentials.rb +0 -39
  26. data/lib/google/cloud/logging/v2/doc/google/api/distribution.rb +0 -164
  27. data/lib/google/cloud/logging/v2/doc/google/api/label.rb +0 -42
  28. data/lib/google/cloud/logging/v2/doc/google/api/metric.rb +0 -233
  29. data/lib/google/cloud/logging/v2/doc/google/api/monitored_resource.rb +0 -85
  30. data/lib/google/cloud/logging/v2/doc/google/logging/type/http_request.rb +0 -86
  31. data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +0 -179
  32. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +0 -238
  33. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +0 -660
  34. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb +0 -220
  35. data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +0 -131
  36. data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +0 -91
  37. data/lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb +0 -29
  38. data/lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb +0 -222
  39. data/lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb +0 -74
  40. data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +0 -113
  41. data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +0 -680
  42. data/lib/google/cloud/logging/v2/logging_service_v2_client_config.json +0 -56
  43. data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +0 -475
  44. data/lib/google/cloud/logging/v2/metrics_service_v2_client_config.json +0 -51
  45. data/lib/google/logging/v2/log_entry_pb.rb +0 -59
  46. data/lib/google/logging/v2/logging_config_pb.rb +0 -173
  47. data/lib/google/logging/v2/logging_config_services_pb.rb +0 -112
  48. data/lib/google/logging/v2/logging_metrics_pb.rb +0 -72
  49. data/lib/google/logging/v2/logging_metrics_services_pb.rb +0 -52
  50. data/lib/google/logging/v2/logging_pb.rb +0 -80
  51. data/lib/google/logging/v2/logging_services_pb.rb +0 -64
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_metrics.proto for package 'google.logging.v2'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/logging/v2/logging_metrics_pb'
22
-
23
- module Google
24
- module Logging
25
- module V2
26
- module MetricsServiceV2
27
- # Service for configuring logs-based metrics.
28
- class Service
29
-
30
- include GRPC::GenericService
31
-
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.logging.v2.MetricsServiceV2'
35
-
36
- # Lists logs-based metrics.
37
- rpc :ListLogMetrics, ListLogMetricsRequest, ListLogMetricsResponse
38
- # Gets a logs-based metric.
39
- rpc :GetLogMetric, GetLogMetricRequest, LogMetric
40
- # Creates a logs-based metric.
41
- rpc :CreateLogMetric, CreateLogMetricRequest, LogMetric
42
- # Creates or updates a logs-based metric.
43
- rpc :UpdateLogMetric, UpdateLogMetricRequest, LogMetric
44
- # Deletes a logs-based metric.
45
- rpc :DeleteLogMetric, DeleteLogMetricRequest, Google::Protobuf::Empty
46
- end
47
-
48
- Stub = Service.rpc_stub_class
49
- end
50
- end
51
- end
52
- end
@@ -1,80 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/logging/v2/logging.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/client_pb'
8
- require 'google/api/field_behavior_pb'
9
- require 'google/api/monitored_resource_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/logging/v2/log_entry_pb'
12
- require 'google/logging/v2/logging_config_pb'
13
- require 'google/protobuf/duration_pb'
14
- require 'google/protobuf/empty_pb'
15
- require 'google/protobuf/timestamp_pb'
16
- require 'google/rpc/status_pb'
17
- require 'google/api/annotations_pb'
18
- Google::Protobuf::DescriptorPool.generated_pool.build do
19
- add_message "google.logging.v2.DeleteLogRequest" do
20
- optional :log_name, :string, 1
21
- end
22
- add_message "google.logging.v2.WriteLogEntriesRequest" do
23
- optional :log_name, :string, 1
24
- optional :resource, :message, 2, "google.api.MonitoredResource"
25
- map :labels, :string, :string, 3
26
- repeated :entries, :message, 4, "google.logging.v2.LogEntry"
27
- optional :partial_success, :bool, 5
28
- optional :dry_run, :bool, 6
29
- end
30
- add_message "google.logging.v2.WriteLogEntriesResponse" do
31
- end
32
- add_message "google.logging.v2.WriteLogEntriesPartialErrors" do
33
- map :log_entry_errors, :int32, :message, 1, "google.rpc.Status"
34
- end
35
- add_message "google.logging.v2.ListLogEntriesRequest" do
36
- repeated :resource_names, :string, 8
37
- optional :filter, :string, 2
38
- optional :order_by, :string, 3
39
- optional :page_size, :int32, 4
40
- optional :page_token, :string, 5
41
- end
42
- add_message "google.logging.v2.ListLogEntriesResponse" do
43
- repeated :entries, :message, 1, "google.logging.v2.LogEntry"
44
- optional :next_page_token, :string, 2
45
- end
46
- add_message "google.logging.v2.ListMonitoredResourceDescriptorsRequest" do
47
- optional :page_size, :int32, 1
48
- optional :page_token, :string, 2
49
- end
50
- add_message "google.logging.v2.ListMonitoredResourceDescriptorsResponse" do
51
- repeated :resource_descriptors, :message, 1, "google.api.MonitoredResourceDescriptor"
52
- optional :next_page_token, :string, 2
53
- end
54
- add_message "google.logging.v2.ListLogsRequest" do
55
- optional :parent, :string, 1
56
- optional :page_size, :int32, 2
57
- optional :page_token, :string, 3
58
- end
59
- add_message "google.logging.v2.ListLogsResponse" do
60
- repeated :log_names, :string, 3
61
- optional :next_page_token, :string, 2
62
- end
63
- end
64
-
65
- module Google
66
- module Logging
67
- module V2
68
- DeleteLogRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogRequest").msgclass
69
- WriteLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesRequest").msgclass
70
- WriteLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesResponse").msgclass
71
- WriteLogEntriesPartialErrors = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesPartialErrors").msgclass
72
- ListLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesRequest").msgclass
73
- ListLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesResponse").msgclass
74
- ListMonitoredResourceDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsRequest").msgclass
75
- ListMonitoredResourceDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsResponse").msgclass
76
- ListLogsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsRequest").msgclass
77
- ListLogsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsResponse").msgclass
78
- end
79
- end
80
- end
@@ -1,64 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging.proto for package 'google.logging.v2'
3
- # Original file comments:
4
- # Copyright 2020 Google LLC
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
-
20
- require 'grpc'
21
- require 'google/logging/v2/logging_pb'
22
-
23
- module Google
24
- module Logging
25
- module V2
26
- module LoggingServiceV2
27
- # Service for ingesting and querying logs.
28
- class Service
29
-
30
- include GRPC::GenericService
31
-
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.logging.v2.LoggingServiceV2'
35
-
36
- # Deletes all the log entries in a log. The log reappears if it receives new
37
- # entries. Log entries written shortly before the delete operation might not
38
- # be deleted. Entries received after the delete operation with a timestamp
39
- # before the operation will be deleted.
40
- rpc :DeleteLog, DeleteLogRequest, Google::Protobuf::Empty
41
- # Writes log entries to Logging. This API method is the
42
- # only way to send log entries to Logging. This method
43
- # is used, directly or indirectly, by the Logging agent
44
- # (fluentd) and all logging libraries configured to use Logging.
45
- # A single request may contain log entries for a maximum of 1000
46
- # different resources (projects, organizations, billing accounts or
47
- # folders)
48
- rpc :WriteLogEntries, WriteLogEntriesRequest, WriteLogEntriesResponse
49
- # Lists log entries. Use this method to retrieve log entries that originated
50
- # from a project/folder/organization/billing account. For ways to export log
51
- # entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).
52
- rpc :ListLogEntries, ListLogEntriesRequest, ListLogEntriesResponse
53
- # Lists the descriptors for monitored resource types used by Logging.
54
- rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
55
- # Lists the logs in projects, organizations, folders, or billing accounts.
56
- # Only logs that have entries are listed.
57
- rpc :ListLogs, ListLogsRequest, ListLogsResponse
58
- end
59
-
60
- Stub = Service.rpc_stub_class
61
- end
62
- end
63
- end
64
- end