google-cloud-logging 1.10.9 → 2.0.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 +2 -1
- data/CHANGELOG.md +23 -0
- data/lib/google-cloud-logging.rb +14 -15
- data/lib/google/cloud/logging.rb +12 -13
- data/lib/google/cloud/logging/credentials.rb +2 -2
- data/lib/google/cloud/logging/entry.rb +5 -5
- data/lib/google/cloud/logging/entry/http_request.rb +3 -3
- data/lib/google/cloud/logging/entry/list.rb +1 -1
- data/lib/google/cloud/logging/entry/operation.rb +3 -3
- data/lib/google/cloud/logging/entry/source_location.rb +3 -3
- data/lib/google/cloud/logging/log/list.rb +1 -1
- data/lib/google/cloud/logging/metric.rb +2 -2
- data/lib/google/cloud/logging/metric/list.rb +1 -1
- data/lib/google/cloud/logging/resource_descriptor/list.rb +1 -1
- data/lib/google/cloud/logging/service.rb +70 -173
- data/lib/google/cloud/logging/sink.rb +2 -2
- data/lib/google/cloud/logging/sink/list.rb +1 -1
- data/lib/google/cloud/logging/version.rb +1 -1
- metadata +10 -80
- data/lib/google/cloud/logging/v2.rb +0 -18
- data/lib/google/cloud/logging/v2/config_service_v2_client.rb +0 -1368
- data/lib/google/cloud/logging/v2/config_service_v2_client_config.json +0 -106
- data/lib/google/cloud/logging/v2/credentials.rb +0 -39
- data/lib/google/cloud/logging/v2/doc/google/api/distribution.rb +0 -164
- data/lib/google/cloud/logging/v2/doc/google/api/label.rb +0 -42
- data/lib/google/cloud/logging/v2/doc/google/api/metric.rb +0 -275
- data/lib/google/cloud/logging/v2/doc/google/api/monitored_resource.rb +0 -118
- data/lib/google/cloud/logging/v2/doc/google/logging/type/http_request.rb +0 -86
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/log_entry.rb +0 -179
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging.rb +0 -238
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb +0 -660
- data/lib/google/cloud/logging/v2/doc/google/logging/v2/logging_metrics.rb +0 -220
- data/lib/google/cloud/logging/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/logging/v2/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/logging/v2/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/logging/v2/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/logging/v2/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/logging/v2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/logging/v2/logging_service_v2_client.rb +0 -680
- data/lib/google/cloud/logging/v2/logging_service_v2_client_config.json +0 -61
- data/lib/google/cloud/logging/v2/metrics_service_v2_client.rb +0 -475
- data/lib/google/cloud/logging/v2/metrics_service_v2_client_config.json +0 -56
- data/lib/google/logging/v2/log_entry_pb.rb +0 -59
- data/lib/google/logging/v2/logging_config_pb.rb +0 -173
- data/lib/google/logging/v2/logging_config_services_pb.rb +0 -112
- data/lib/google/logging/v2/logging_metrics_pb.rb +0 -72
- data/lib/google/logging/v2/logging_metrics_services_pb.rb +0 -52
- data/lib/google/logging/v2/logging_pb.rb +0 -80
- data/lib/google/logging/v2/logging_services_pb.rb +0 -64
@@ -1,56 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.logging.v2.MetricsServiceV2": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"INTERNAL",
|
8
|
-
"UNAVAILABLE"
|
9
|
-
],
|
10
|
-
"non_idempotent": [],
|
11
|
-
"idempotent2": [
|
12
|
-
"DEADLINE_EXCEEDED",
|
13
|
-
"UNAVAILABLE"
|
14
|
-
]
|
15
|
-
},
|
16
|
-
"retry_params": {
|
17
|
-
"default": {
|
18
|
-
"initial_retry_delay_millis": 100,
|
19
|
-
"retry_delay_multiplier": 1.3,
|
20
|
-
"max_retry_delay_millis": 60000,
|
21
|
-
"initial_rpc_timeout_millis": 20000,
|
22
|
-
"rpc_timeout_multiplier": 1.0,
|
23
|
-
"max_rpc_timeout_millis": 20000,
|
24
|
-
"total_timeout_millis": 600000
|
25
|
-
}
|
26
|
-
},
|
27
|
-
"methods": {
|
28
|
-
"UpdateLogMetric": {
|
29
|
-
"timeout_millis": 60000,
|
30
|
-
"retry_codes_name": "idempotent",
|
31
|
-
"retry_params_name": "default"
|
32
|
-
},
|
33
|
-
"DeleteLogMetric": {
|
34
|
-
"timeout_millis": 60000,
|
35
|
-
"retry_codes_name": "idempotent",
|
36
|
-
"retry_params_name": "default"
|
37
|
-
},
|
38
|
-
"ListLogMetrics": {
|
39
|
-
"timeout_millis": 60000,
|
40
|
-
"retry_codes_name": "idempotent2",
|
41
|
-
"retry_params_name": "default"
|
42
|
-
},
|
43
|
-
"GetLogMetric": {
|
44
|
-
"timeout_millis": 60000,
|
45
|
-
"retry_codes_name": "idempotent2",
|
46
|
-
"retry_params_name": "default"
|
47
|
-
},
|
48
|
-
"CreateLogMetric": {
|
49
|
-
"timeout_millis": 60000,
|
50
|
-
"retry_codes_name": "non_idempotent",
|
51
|
-
"retry_params_name": "default"
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/logging/v2/log_entry.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/field_behavior_pb'
|
8
|
-
require 'google/api/monitored_resource_pb'
|
9
|
-
require 'google/api/resource_pb'
|
10
|
-
require 'google/logging/type/http_request_pb'
|
11
|
-
require 'google/logging/type/log_severity_pb'
|
12
|
-
require 'google/protobuf/any_pb'
|
13
|
-
require 'google/protobuf/struct_pb'
|
14
|
-
require 'google/protobuf/timestamp_pb'
|
15
|
-
require 'google/rpc/status_pb'
|
16
|
-
require 'google/api/annotations_pb'
|
17
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
-
add_message "google.logging.v2.LogEntry" do
|
19
|
-
optional :log_name, :string, 12
|
20
|
-
optional :resource, :message, 8, "google.api.MonitoredResource"
|
21
|
-
optional :timestamp, :message, 9, "google.protobuf.Timestamp"
|
22
|
-
optional :receive_timestamp, :message, 24, "google.protobuf.Timestamp"
|
23
|
-
optional :severity, :enum, 10, "google.logging.type.LogSeverity"
|
24
|
-
optional :insert_id, :string, 4
|
25
|
-
optional :http_request, :message, 7, "google.logging.type.HttpRequest"
|
26
|
-
map :labels, :string, :string, 11
|
27
|
-
optional :operation, :message, 15, "google.logging.v2.LogEntryOperation"
|
28
|
-
optional :trace, :string, 22
|
29
|
-
optional :span_id, :string, 27
|
30
|
-
optional :trace_sampled, :bool, 30
|
31
|
-
optional :source_location, :message, 23, "google.logging.v2.LogEntrySourceLocation"
|
32
|
-
oneof :payload do
|
33
|
-
optional :proto_payload, :message, 2, "google.protobuf.Any"
|
34
|
-
optional :text_payload, :string, 3
|
35
|
-
optional :json_payload, :message, 6, "google.protobuf.Struct"
|
36
|
-
end
|
37
|
-
end
|
38
|
-
add_message "google.logging.v2.LogEntryOperation" do
|
39
|
-
optional :id, :string, 1
|
40
|
-
optional :producer, :string, 2
|
41
|
-
optional :first, :bool, 3
|
42
|
-
optional :last, :bool, 4
|
43
|
-
end
|
44
|
-
add_message "google.logging.v2.LogEntrySourceLocation" do
|
45
|
-
optional :file, :string, 1
|
46
|
-
optional :line, :int64, 2
|
47
|
-
optional :function, :string, 3
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
module Google
|
52
|
-
module Logging
|
53
|
-
end
|
54
|
-
end
|
55
|
-
module Google::Logging::V2
|
56
|
-
LogEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntry").msgclass
|
57
|
-
LogEntryOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntryOperation").msgclass
|
58
|
-
LogEntrySourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntrySourceLocation").msgclass
|
59
|
-
end
|
@@ -1,173 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/logging/v2/logging_config.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/resource_pb'
|
10
|
-
require 'google/protobuf/duration_pb'
|
11
|
-
require 'google/protobuf/empty_pb'
|
12
|
-
require 'google/protobuf/field_mask_pb'
|
13
|
-
require 'google/protobuf/timestamp_pb'
|
14
|
-
require 'google/api/annotations_pb'
|
15
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
-
add_message "google.logging.v2.LogBucket" do
|
17
|
-
optional :name, :string, 1
|
18
|
-
optional :description, :string, 3
|
19
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
20
|
-
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
21
|
-
optional :retention_days, :int32, 11
|
22
|
-
optional :lifecycle_state, :enum, 12, "google.logging.v2.LifecycleState"
|
23
|
-
end
|
24
|
-
add_message "google.logging.v2.LogSink" do
|
25
|
-
optional :name, :string, 1
|
26
|
-
optional :destination, :string, 3
|
27
|
-
optional :filter, :string, 5
|
28
|
-
optional :description, :string, 18
|
29
|
-
optional :disabled, :bool, 19
|
30
|
-
optional :output_version_format, :enum, 6, "google.logging.v2.LogSink.VersionFormat"
|
31
|
-
optional :writer_identity, :string, 8
|
32
|
-
optional :include_children, :bool, 9
|
33
|
-
optional :create_time, :message, 13, "google.protobuf.Timestamp"
|
34
|
-
optional :update_time, :message, 14, "google.protobuf.Timestamp"
|
35
|
-
oneof :options do
|
36
|
-
optional :bigquery_options, :message, 12, "google.logging.v2.BigQueryOptions"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
add_enum "google.logging.v2.LogSink.VersionFormat" do
|
40
|
-
value :VERSION_FORMAT_UNSPECIFIED, 0
|
41
|
-
value :V2, 1
|
42
|
-
value :V1, 2
|
43
|
-
end
|
44
|
-
add_message "google.logging.v2.BigQueryOptions" do
|
45
|
-
optional :use_partitioned_tables, :bool, 1
|
46
|
-
optional :uses_timestamp_column_partitioning, :bool, 3
|
47
|
-
end
|
48
|
-
add_message "google.logging.v2.ListBucketsRequest" do
|
49
|
-
optional :parent, :string, 1
|
50
|
-
optional :page_token, :string, 2
|
51
|
-
optional :page_size, :int32, 3
|
52
|
-
end
|
53
|
-
add_message "google.logging.v2.ListBucketsResponse" do
|
54
|
-
repeated :buckets, :message, 1, "google.logging.v2.LogBucket"
|
55
|
-
optional :next_page_token, :string, 2
|
56
|
-
end
|
57
|
-
add_message "google.logging.v2.UpdateBucketRequest" do
|
58
|
-
optional :name, :string, 1
|
59
|
-
optional :bucket, :message, 2, "google.logging.v2.LogBucket"
|
60
|
-
optional :update_mask, :message, 4, "google.protobuf.FieldMask"
|
61
|
-
end
|
62
|
-
add_message "google.logging.v2.GetBucketRequest" do
|
63
|
-
optional :name, :string, 1
|
64
|
-
end
|
65
|
-
add_message "google.logging.v2.ListSinksRequest" do
|
66
|
-
optional :parent, :string, 1
|
67
|
-
optional :page_token, :string, 2
|
68
|
-
optional :page_size, :int32, 3
|
69
|
-
end
|
70
|
-
add_message "google.logging.v2.ListSinksResponse" do
|
71
|
-
repeated :sinks, :message, 1, "google.logging.v2.LogSink"
|
72
|
-
optional :next_page_token, :string, 2
|
73
|
-
end
|
74
|
-
add_message "google.logging.v2.GetSinkRequest" do
|
75
|
-
optional :sink_name, :string, 1
|
76
|
-
end
|
77
|
-
add_message "google.logging.v2.CreateSinkRequest" do
|
78
|
-
optional :parent, :string, 1
|
79
|
-
optional :sink, :message, 2, "google.logging.v2.LogSink"
|
80
|
-
optional :unique_writer_identity, :bool, 3
|
81
|
-
end
|
82
|
-
add_message "google.logging.v2.UpdateSinkRequest" do
|
83
|
-
optional :sink_name, :string, 1
|
84
|
-
optional :sink, :message, 2, "google.logging.v2.LogSink"
|
85
|
-
optional :unique_writer_identity, :bool, 3
|
86
|
-
optional :update_mask, :message, 4, "google.protobuf.FieldMask"
|
87
|
-
end
|
88
|
-
add_message "google.logging.v2.DeleteSinkRequest" do
|
89
|
-
optional :sink_name, :string, 1
|
90
|
-
end
|
91
|
-
add_message "google.logging.v2.LogExclusion" do
|
92
|
-
optional :name, :string, 1
|
93
|
-
optional :description, :string, 2
|
94
|
-
optional :filter, :string, 3
|
95
|
-
optional :disabled, :bool, 4
|
96
|
-
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
97
|
-
optional :update_time, :message, 6, "google.protobuf.Timestamp"
|
98
|
-
end
|
99
|
-
add_message "google.logging.v2.ListExclusionsRequest" do
|
100
|
-
optional :parent, :string, 1
|
101
|
-
optional :page_token, :string, 2
|
102
|
-
optional :page_size, :int32, 3
|
103
|
-
end
|
104
|
-
add_message "google.logging.v2.ListExclusionsResponse" do
|
105
|
-
repeated :exclusions, :message, 1, "google.logging.v2.LogExclusion"
|
106
|
-
optional :next_page_token, :string, 2
|
107
|
-
end
|
108
|
-
add_message "google.logging.v2.GetExclusionRequest" do
|
109
|
-
optional :name, :string, 1
|
110
|
-
end
|
111
|
-
add_message "google.logging.v2.CreateExclusionRequest" do
|
112
|
-
optional :parent, :string, 1
|
113
|
-
optional :exclusion, :message, 2, "google.logging.v2.LogExclusion"
|
114
|
-
end
|
115
|
-
add_message "google.logging.v2.UpdateExclusionRequest" do
|
116
|
-
optional :name, :string, 1
|
117
|
-
optional :exclusion, :message, 2, "google.logging.v2.LogExclusion"
|
118
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
119
|
-
end
|
120
|
-
add_message "google.logging.v2.DeleteExclusionRequest" do
|
121
|
-
optional :name, :string, 1
|
122
|
-
end
|
123
|
-
add_message "google.logging.v2.GetCmekSettingsRequest" do
|
124
|
-
optional :name, :string, 1
|
125
|
-
end
|
126
|
-
add_message "google.logging.v2.UpdateCmekSettingsRequest" do
|
127
|
-
optional :name, :string, 1
|
128
|
-
optional :cmek_settings, :message, 2, "google.logging.v2.CmekSettings"
|
129
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
130
|
-
end
|
131
|
-
add_message "google.logging.v2.CmekSettings" do
|
132
|
-
optional :name, :string, 1
|
133
|
-
optional :kms_key_name, :string, 2
|
134
|
-
optional :service_account_id, :string, 3
|
135
|
-
end
|
136
|
-
add_enum "google.logging.v2.LifecycleState" do
|
137
|
-
value :LIFECYCLE_STATE_UNSPECIFIED, 0
|
138
|
-
value :ACTIVE, 1
|
139
|
-
value :DELETE_REQUESTED, 2
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
module Google
|
144
|
-
module Logging
|
145
|
-
end
|
146
|
-
end
|
147
|
-
module Google::Logging::V2
|
148
|
-
LogBucket = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogBucket").msgclass
|
149
|
-
LogSink = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink").msgclass
|
150
|
-
LogSink::VersionFormat = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink.VersionFormat").enummodule
|
151
|
-
BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.BigQueryOptions").msgclass
|
152
|
-
ListBucketsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsRequest").msgclass
|
153
|
-
ListBucketsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsResponse").msgclass
|
154
|
-
UpdateBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateBucketRequest").msgclass
|
155
|
-
GetBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetBucketRequest").msgclass
|
156
|
-
ListSinksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksRequest").msgclass
|
157
|
-
ListSinksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksResponse").msgclass
|
158
|
-
GetSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetSinkRequest").msgclass
|
159
|
-
CreateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateSinkRequest").msgclass
|
160
|
-
UpdateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateSinkRequest").msgclass
|
161
|
-
DeleteSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteSinkRequest").msgclass
|
162
|
-
LogExclusion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogExclusion").msgclass
|
163
|
-
ListExclusionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsRequest").msgclass
|
164
|
-
ListExclusionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsResponse").msgclass
|
165
|
-
GetExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetExclusionRequest").msgclass
|
166
|
-
CreateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateExclusionRequest").msgclass
|
167
|
-
UpdateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateExclusionRequest").msgclass
|
168
|
-
DeleteExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteExclusionRequest").msgclass
|
169
|
-
GetCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetCmekSettingsRequest").msgclass
|
170
|
-
UpdateCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateCmekSettingsRequest").msgclass
|
171
|
-
CmekSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CmekSettings").msgclass
|
172
|
-
LifecycleState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LifecycleState").enummodule
|
173
|
-
end
|
@@ -1,112 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/logging/v2/logging_config.proto for package 'Google::Cloud::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_config_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Logging
|
25
|
-
end
|
26
|
-
end
|
27
|
-
module Google::Logging::V2
|
28
|
-
module ConfigServiceV2
|
29
|
-
# Service for configuring sinks used to route log entries.
|
30
|
-
class Service
|
31
|
-
|
32
|
-
include GRPC::GenericService
|
33
|
-
|
34
|
-
self.marshal_class_method = :encode
|
35
|
-
self.unmarshal_class_method = :decode
|
36
|
-
self.service_name = 'google.logging.v2.ConfigServiceV2'
|
37
|
-
|
38
|
-
# Lists buckets (Beta).
|
39
|
-
rpc :ListBuckets, ListBucketsRequest, ListBucketsResponse
|
40
|
-
# Gets a bucket (Beta).
|
41
|
-
rpc :GetBucket, GetBucketRequest, LogBucket
|
42
|
-
# Updates a bucket. This method replaces the following fields in the
|
43
|
-
# existing bucket with values from the new bucket: `retention_period`
|
44
|
-
#
|
45
|
-
# If the retention period is decreased and the bucket is locked,
|
46
|
-
# FAILED_PRECONDITION will be returned.
|
47
|
-
#
|
48
|
-
# If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
|
49
|
-
# will be returned.
|
50
|
-
#
|
51
|
-
# A buckets region may not be modified after it is created.
|
52
|
-
# This method is in Beta.
|
53
|
-
rpc :UpdateBucket, UpdateBucketRequest, LogBucket
|
54
|
-
# Lists sinks.
|
55
|
-
rpc :ListSinks, ListSinksRequest, ListSinksResponse
|
56
|
-
# Gets a sink.
|
57
|
-
rpc :GetSink, GetSinkRequest, LogSink
|
58
|
-
# Creates a sink that exports specified log entries to a destination. The
|
59
|
-
# export of newly-ingested log entries begins immediately, unless the sink's
|
60
|
-
# `writer_identity` is not permitted to write to the destination. A sink can
|
61
|
-
# export log entries only from the resource owning the sink.
|
62
|
-
rpc :CreateSink, CreateSinkRequest, LogSink
|
63
|
-
# Updates a sink. This method replaces the following fields in the existing
|
64
|
-
# sink with values from the new sink: `destination`, and `filter`.
|
65
|
-
#
|
66
|
-
# The updated sink might also have a new `writer_identity`; see the
|
67
|
-
# `unique_writer_identity` field.
|
68
|
-
rpc :UpdateSink, UpdateSinkRequest, LogSink
|
69
|
-
# Deletes a sink. If the sink has a unique `writer_identity`, then that
|
70
|
-
# service account is also deleted.
|
71
|
-
rpc :DeleteSink, DeleteSinkRequest, Google::Protobuf::Empty
|
72
|
-
# Lists all the exclusions in a parent resource.
|
73
|
-
rpc :ListExclusions, ListExclusionsRequest, ListExclusionsResponse
|
74
|
-
# Gets the description of an exclusion.
|
75
|
-
rpc :GetExclusion, GetExclusionRequest, LogExclusion
|
76
|
-
# Creates a new exclusion in a specified parent resource.
|
77
|
-
# Only log entries belonging to that resource can be excluded.
|
78
|
-
# You can have up to 10 exclusions in a resource.
|
79
|
-
rpc :CreateExclusion, CreateExclusionRequest, LogExclusion
|
80
|
-
# Changes one or more properties of an existing exclusion.
|
81
|
-
rpc :UpdateExclusion, UpdateExclusionRequest, LogExclusion
|
82
|
-
# Deletes an exclusion.
|
83
|
-
rpc :DeleteExclusion, DeleteExclusionRequest, Google::Protobuf::Empty
|
84
|
-
# Gets the Logs Router CMEK settings for the given resource.
|
85
|
-
#
|
86
|
-
# Note: CMEK for the Logs Router can currently only be configured for GCP
|
87
|
-
# organizations. Once configured, it applies to all projects and folders in
|
88
|
-
# the GCP organization.
|
89
|
-
#
|
90
|
-
# See [Enabling CMEK for Logs
|
91
|
-
# Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
|
92
|
-
rpc :GetCmekSettings, GetCmekSettingsRequest, CmekSettings
|
93
|
-
# Updates the Logs Router CMEK settings for the given resource.
|
94
|
-
#
|
95
|
-
# Note: CMEK for the Logs Router can currently only be configured for GCP
|
96
|
-
# organizations. Once configured, it applies to all projects and folders in
|
97
|
-
# the GCP organization.
|
98
|
-
#
|
99
|
-
# [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
|
100
|
-
# will fail if 1) `kms_key_name` is invalid, or 2) the associated service
|
101
|
-
# account does not have the required
|
102
|
-
# `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
|
103
|
-
# 3) access to the key is disabled.
|
104
|
-
#
|
105
|
-
# See [Enabling CMEK for Logs
|
106
|
-
# Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
|
107
|
-
rpc :UpdateCmekSettings, UpdateCmekSettingsRequest, CmekSettings
|
108
|
-
end
|
109
|
-
|
110
|
-
Stub = Service.rpc_stub_class
|
111
|
-
end
|
112
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/logging/v2/logging_metrics.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/client_pb'
|
8
|
-
require 'google/api/distribution_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/metric_pb'
|
11
|
-
require 'google/api/resource_pb'
|
12
|
-
require 'google/protobuf/duration_pb'
|
13
|
-
require 'google/protobuf/empty_pb'
|
14
|
-
require 'google/protobuf/field_mask_pb'
|
15
|
-
require 'google/protobuf/timestamp_pb'
|
16
|
-
require 'google/api/annotations_pb'
|
17
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
|
-
add_message "google.logging.v2.LogMetric" do
|
19
|
-
optional :name, :string, 1
|
20
|
-
optional :description, :string, 2
|
21
|
-
optional :filter, :string, 3
|
22
|
-
optional :metric_descriptor, :message, 5, "google.api.MetricDescriptor"
|
23
|
-
optional :value_extractor, :string, 6
|
24
|
-
map :label_extractors, :string, :string, 7
|
25
|
-
optional :bucket_options, :message, 8, "google.api.Distribution.BucketOptions"
|
26
|
-
optional :create_time, :message, 9, "google.protobuf.Timestamp"
|
27
|
-
optional :update_time, :message, 10, "google.protobuf.Timestamp"
|
28
|
-
optional :version, :enum, 4, "google.logging.v2.LogMetric.ApiVersion"
|
29
|
-
end
|
30
|
-
add_enum "google.logging.v2.LogMetric.ApiVersion" do
|
31
|
-
value :V2, 0
|
32
|
-
value :V1, 1
|
33
|
-
end
|
34
|
-
add_message "google.logging.v2.ListLogMetricsRequest" do
|
35
|
-
optional :parent, :string, 1
|
36
|
-
optional :page_token, :string, 2
|
37
|
-
optional :page_size, :int32, 3
|
38
|
-
end
|
39
|
-
add_message "google.logging.v2.ListLogMetricsResponse" do
|
40
|
-
repeated :metrics, :message, 1, "google.logging.v2.LogMetric"
|
41
|
-
optional :next_page_token, :string, 2
|
42
|
-
end
|
43
|
-
add_message "google.logging.v2.GetLogMetricRequest" do
|
44
|
-
optional :metric_name, :string, 1
|
45
|
-
end
|
46
|
-
add_message "google.logging.v2.CreateLogMetricRequest" do
|
47
|
-
optional :parent, :string, 1
|
48
|
-
optional :metric, :message, 2, "google.logging.v2.LogMetric"
|
49
|
-
end
|
50
|
-
add_message "google.logging.v2.UpdateLogMetricRequest" do
|
51
|
-
optional :metric_name, :string, 1
|
52
|
-
optional :metric, :message, 2, "google.logging.v2.LogMetric"
|
53
|
-
end
|
54
|
-
add_message "google.logging.v2.DeleteLogMetricRequest" do
|
55
|
-
optional :metric_name, :string, 1
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
module Google
|
60
|
-
module Logging
|
61
|
-
end
|
62
|
-
end
|
63
|
-
module Google::Logging::V2
|
64
|
-
LogMetric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric").msgclass
|
65
|
-
LogMetric::ApiVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric.ApiVersion").enummodule
|
66
|
-
ListLogMetricsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsRequest").msgclass
|
67
|
-
ListLogMetricsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsResponse").msgclass
|
68
|
-
GetLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetLogMetricRequest").msgclass
|
69
|
-
CreateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateLogMetricRequest").msgclass
|
70
|
-
UpdateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateLogMetricRequest").msgclass
|
71
|
-
DeleteLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogMetricRequest").msgclass
|
72
|
-
end
|