google-cloud-logging 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -1
  3. data/README.md +8 -8
  4. data/lib/google/cloud/logging/credentials.rb +2 -15
  5. data/lib/google/cloud/logging/v2/config_service_v2_client.rb +126 -65
  6. data/lib/google/cloud/logging/v2/config_service_v2_client_config.json +13 -13
  7. data/lib/google/cloud/logging/v2/credentials.rb +38 -0
  8. data/lib/google/cloud/logging/v2/doc/google/api/distribution.rb +1 -1
  9. data/lib/google/cloud/logging/v2/doc/google/api/label.rb +1 -1
  10. data/lib/google/cloud/logging/v2/doc/google/api/metric.rb +8 -12
  11. data/lib/google/cloud/logging/v2/doc/google/api/monitored_resource.rb +28 -4
  12. data/lib/google/cloud/logging/v2/doc/google/logging/type/http_request.rb +1 -1
  13. data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +18 -10
  14. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +11 -19
  15. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +3 -18
  16. data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb +1 -16
  17. data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +1 -1
  18. data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +1 -1
  19. data/lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb +28 -0
  20. data/lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb +1 -1
  21. data/lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb +73 -0
  22. data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +1 -1
  23. data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +106 -67
  24. data/lib/google/cloud/logging/v2/logging_service_v2_client_config.json +12 -12
  25. data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +75 -45
  26. data/lib/google/cloud/logging/v2/metrics_service_v2_client_config.json +6 -6
  27. data/lib/google/cloud/logging/version.rb +1 -1
  28. data/lib/google/logging/v2/log_entry_pb.rb +1 -0
  29. data/lib/google/logging/v2/logging_config_services_pb.rb +2 -2
  30. data/lib/google/logging/v2/logging_metrics_services_pb.rb +2 -2
  31. data/lib/google/logging/v2/logging_pb.rb +1 -0
  32. data/lib/google/logging/v2/logging_services_pb.rb +5 -4
  33. metadata +35 -5
  34. data/lib/google/cloud/logging/v2/doc/overview.rb +0 -66
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/logging/v2/logging.proto for package 'google.logging.v2'
3
3
  # Original file comments:
4
- # Copyright 2017 Google Inc.
4
+ # Copyright 2018 Google Inc.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
9
  #
10
- # https://www.apache.org/licenses/LICENSE-2.0
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
11
  #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -37,13 +37,14 @@ module Google
37
37
  # Log entries written shortly before the delete operation might not be
38
38
  # deleted.
39
39
  rpc :DeleteLog, DeleteLogRequest, Google::Protobuf::Empty
40
- # ## Log entry resources
41
- #
42
40
  # Writes log entries to Stackdriver Logging. This API method is the
43
41
  # only way to send log entries to Stackdriver Logging. This method
44
42
  # is used, directly or indirectly, by the Stackdriver Logging agent
45
43
  # (fluentd) and all logging libraries configured to use Stackdriver
46
44
  # Logging.
45
+ # A single request may contain log entries for a maximum of 1000
46
+ # different resources (projects, organizations, billing accounts or
47
+ # folders)
47
48
  rpc :WriteLogEntries, WriteLogEntriesRequest, WriteLogEntriesResponse
48
49
  # Lists log entries. Use this method to retrieve log entries from
49
50
  # Stackdriver Logging. For ways to export log entries, see
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-06 00:00:00.000000000 Z
12
+ date: 2018-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -45,14 +45,28 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '1.0'
48
+ version: '1.3'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '1.0'
55
+ version: '1.3'
56
+ - !ruby/object:Gem::Dependency
57
+ name: googleapis-common-protos-types
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 1.0.2
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 1.0.2
56
70
  - !ruby/object:Gem::Dependency
57
71
  name: minitest
58
72
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +137,20 @@ dependencies:
123
137
  - - "~>"
124
138
  - !ruby/object:Gem::Version
125
139
  version: '1.1'
140
+ - !ruby/object:Gem::Dependency
141
+ name: redcarpet
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '3.0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '3.0'
126
154
  - !ruby/object:Gem::Dependency
127
155
  name: rubocop
128
156
  requirement: !ruby/object:Gem::Requirement
@@ -244,6 +272,7 @@ files:
244
272
  - lib/google/cloud/logging/v2.rb
245
273
  - lib/google/cloud/logging/v2/config_service_v2_client.rb
246
274
  - lib/google/cloud/logging/v2/config_service_v2_client_config.json
275
+ - lib/google/cloud/logging/v2/credentials.rb
247
276
  - lib/google/cloud/logging/v2/doc/google/api/distribution.rb
248
277
  - lib/google/cloud/logging/v2/doc/google/api/label.rb
249
278
  - lib/google/cloud/logging/v2/doc/google/api/metric.rb
@@ -255,9 +284,10 @@ files:
255
284
  - lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb
256
285
  - lib/google/cloud/logging/v2/doc/google/protobuf/any.rb
257
286
  - lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb
287
+ - lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb
258
288
  - lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb
289
+ - lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb
259
290
  - lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb
260
- - lib/google/cloud/logging/v2/doc/overview.rb
261
291
  - lib/google/cloud/logging/v2/logging_service_v2_client.rb
262
292
  - lib/google/cloud/logging/v2/logging_service_v2_client_config.json
263
293
  - lib/google/cloud/logging/v2/metrics_service_v2_client.rb
@@ -1,66 +0,0 @@
1
- # Copyright 2017 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- module Google
16
- module Cloud
17
- # rubocop:disable LineLength
18
-
19
- ##
20
- # # Ruby Client for Stackdriver Logging API ([GA](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
21
- #
22
- # [Stackdriver Logging API][Product Documentation]:
23
- # Writes log entries and manages your Stackdriver Logging configuration.
24
- # - [Product Documentation][]
25
- #
26
- # ## Quick Start
27
- # In order to use this library, you first need to go through the following
28
- # steps:
29
- #
30
- # 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
31
- # 2. [Enable the Stackdriver Logging API.](https://console.cloud.google.com/apis/api/logging)
32
- # 3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
33
- #
34
- # ### Installation
35
- # ```
36
- # $ gem install google-cloud-logging
37
- # ```
38
- #
39
- # ### Preview
40
- # #### LoggingServiceV2Client
41
- # ```rb
42
- # require "google/cloud/logging"
43
- #
44
- # logging_service_v2_client = Google::Cloud::Logging::Logging.new
45
- # formatted_log_name = Google::Cloud::Logging::V2::LoggingServiceV2Client.log_path(project_id, "test-" + Time.new.to_i.to_s)
46
- # resource = {}
47
- # labels = {}
48
- # entries = []
49
- # response = logging_service_v2_client.write_log_entries(entries, log_name: formatted_log_name, resource: resource, labels: labels)
50
- # ```
51
- #
52
- # ### Next Steps
53
- # - Read the [Stackdriver Logging API Product documentation][Product Documentation]
54
- # to learn more about the product and see How-to Guides.
55
- # - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
56
- # to see the full list of Cloud APIs that we cover.
57
- #
58
- # [Product Documentation]: https://cloud.google.com/logging
59
- #
60
- #
61
- module Logging
62
- module V2
63
- end
64
- end
65
- end
66
- end