google-cloud-logging-v2 0.6.0 → 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54602bb9045ed63be3d236f0dd606b6e74de0cfe64c148cee10c950e626c8a3f
4
- data.tar.gz: e7ccacca9564fc0f2e8e26ce5a26e43eddffa1d4c489473cad1317fb5985313c
3
+ metadata.gz: cb073c82e1ae3105f2fe8ba440fd423ae34f927264dbeb845c1b1f1846258b89
4
+ data.tar.gz: 2140b81f94529c4bcd2458c762fc072747fe549f48389c5e50789653fc45a521
5
5
  SHA512:
6
- metadata.gz: 5fe030b10424bfb29bcfe99714a829f955e2f651fa398d9a25cd2105a58020314a5fe33c05bb312e73fb976aba7984aa467fd027fd2d3821f76cda9dc1d48ed7
7
- data.tar.gz: d2919314067197621538af167701d5e644473673addb7b739c2da8f70a074d8c599c7a5882ded13aaed280cdface214b1e990339eb59716ee97a9e21a733eb91
6
+ metadata.gz: 4673305fc5d85941aef3d4513964b3d7907fff693de045f3e2972c2610f6b2331d225a89f732f8baddfc749cc710d380177cca74522ce260456e01ee6612eca3
7
+ data.tar.gz: 158f8dea88109fb1e4101af00b251aa3d680db76c5592c44d29862356515ab4ac5fbe7117661ac21b16ce33090610ef07eaa721f7e0b0bd825a913a0480a13a0
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::ConfigService::Client.new
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::ConfigService::Credentials}):
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::ConfigService::Client.new
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::ConfigService::Client.new do |config|
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::ConfigService::Client.configure do |config|
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::ConfigService::Client.new
105
+ client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -32,9 +32,9 @@ 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::ConfigService::Client.new
36
- request = ::Google::Cloud::Logging::V2::ListBucketsRequest.new # (request fields as keyword arguments...)
37
- response = client.list_buckets request
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
40
  View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest)
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Logging
23
23
  module V2
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,8 +16,8 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google/cloud/logging/v2/config_service"
20
19
  require "google/cloud/logging/v2/logging_service"
20
+ require "google/cloud/logging/v2/config_service"
21
21
  require "google/cloud/logging/v2/metrics_service"
22
22
  require "google/cloud/logging/v2/version"
23
23
 
@@ -27,8 +27,10 @@ module Google
27
27
  ##
28
28
  # To load this package, including all its services, and instantiate a client:
29
29
  #
30
+ # @example
31
+ #
30
32
  # require "google/cloud/logging/v2"
31
- # client = ::Google::Cloud::Logging::V2::ConfigService::Client.new
33
+ # client = ::Google::Cloud::Logging::V2::LoggingService::Client.new
32
34
  #
33
35
  module V2
34
36
  end
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/logging/v2/log_entry.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/api/field_behavior_pb'
6
5
  require 'google/api/monitored_resource_pb'
7
6
  require 'google/api/resource_pb'
@@ -6,7 +6,6 @@ require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/longrunning/operations_pb'
9
- require 'google/protobuf/duration_pb'
10
9
  require 'google/protobuf/empty_pb'
11
10
  require 'google/protobuf/field_mask_pb'
12
11
  require 'google/protobuf/timestamp_pb'
@@ -191,6 +190,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
191
190
  end
192
191
  add_message "google.logging.v2.Settings" do
193
192
  optional :name, :string, 1
193
+ optional :kms_key_name, :string, 2
194
+ optional :kms_service_account_id, :string, 3
194
195
  optional :storage_location, :string, 4
195
196
  optional :disable_default_sink, :bool, 5
196
197
  end
@@ -7,9 +7,7 @@ require 'google/api/distribution_pb'
7
7
  require 'google/api/field_behavior_pb'
8
8
  require 'google/api/metric_pb'
9
9
  require 'google/api/resource_pb'
10
- require 'google/protobuf/duration_pb'
11
10
  require 'google/protobuf/empty_pb'
12
- require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
14
12
  require 'google/protobuf'
15
13
 
@@ -7,11 +7,8 @@ require 'google/api/field_behavior_pb'
7
7
  require 'google/api/monitored_resource_pb'
8
8
  require 'google/api/resource_pb'
9
9
  require 'google/logging/v2/log_entry_pb'
10
- require 'google/logging/v2/logging_config_pb'
11
10
  require 'google/protobuf/duration_pb'
12
11
  require 'google/protobuf/empty_pb'
13
- require 'google/protobuf/field_mask_pb'
14
- require 'google/protobuf/timestamp_pb'
15
12
  require 'google/rpc/status_pb'
16
13
  require 'google/protobuf'
17
14
 
@@ -1085,6 +1085,49 @@ module Google
1085
1085
  # @!attribute [r] name
1086
1086
  # @return [::String]
1087
1087
  # Output only. The resource name of the settings.
1088
+ # @!attribute [rw] kms_key_name
1089
+ # @return [::String]
1090
+ # Optional. The resource name for the configured Cloud KMS key.
1091
+ #
1092
+ # KMS key name format:
1093
+ #
1094
+ # "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
1095
+ #
1096
+ # For example:
1097
+ #
1098
+ # `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
1099
+ #
1100
+ #
1101
+ #
1102
+ # To enable CMEK for the Log Router, set this field to a valid
1103
+ # `kms_key_name` for which the associated service account has the required
1104
+ # `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
1105
+ #
1106
+ # The Cloud KMS key used by the Log Router can be updated by changing the
1107
+ # `kms_key_name` to a new valid key name. Encryption operations that are in
1108
+ # progress will be completed with the key that was in use when they started.
1109
+ # Decryption operations will be completed using the key that was used at the
1110
+ # time of encryption unless access to that key has been revoked.
1111
+ #
1112
+ # To disable CMEK for the Log Router, set this field to an empty string.
1113
+ #
1114
+ # See [Enabling CMEK for Log
1115
+ # Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
1116
+ # for more information.
1117
+ # @!attribute [r] kms_service_account_id
1118
+ # @return [::String]
1119
+ # Output only. The service account that will be used by the Log Router to access your
1120
+ # Cloud KMS key.
1121
+ #
1122
+ # Before enabling CMEK for Log Router, you must first assign the role
1123
+ # `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
1124
+ # the Log Router will use to access your Cloud KMS key. Use
1125
+ # {::Google::Cloud::Logging::V2::ConfigServiceV2::Client#get_settings GetSettings} to
1126
+ # obtain the service account ID.
1127
+ #
1128
+ # See [Enabling CMEK for Log
1129
+ # Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
1130
+ # for more information.
1088
1131
  # @!attribute [rw] storage_location
1089
1132
  # @return [::String]
1090
1133
  # Optional. The Cloud region that will be used for _Default and _Required log buckets
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-18 00:00:00.000000000 Z
11
+ date: 2022-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common