google-cloud-error_reporting-v1beta1 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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/client.rb +6 -4
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/rest/client.rb +6 -4
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +6 -4
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest/client.rb +6 -4
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest/service_stub.rb +3 -3
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/client.rb +6 -4
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/rest/client.rb +6 -4
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/error_reporting/v1beta1/version.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +25 -46
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +25 -7
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +27 -80
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +26 -13
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28a9e642176381ec143fd366f59a98446808d390dde64139cb84783303a7b50d
|
|
4
|
+
data.tar.gz: 0d20ac542756736f34245ca4a9479dcb2aea6adfa2e641b61ee1543ab0b0f02f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c96bc5a6fa7f7d226346fc50f9e9adc40bcf015095e1e8b20097106515fd670a7b06ea8bc16793f210921481c0a88df8cb79e0b4d4ee1d335e1287e9603b10c7
|
|
7
|
+
data.tar.gz: aa4012c822bd01a34d41c33702cb90ad6e6f1f046bfa9d8e6c9216c4989450781cab305bad75f1662e9b9d9ea200f07bee756d024f58080cb2919c8230c9a00f
|
data/README.md
CHANGED
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
|
47
47
|
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
|
53
53
|
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -363,9 +363,9 @@ module Google
|
|
|
363
363
|
# * (`String`) The path to a service account key file in JSON format
|
|
364
364
|
# * (`Hash`) A service account key as a Hash
|
|
365
365
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
366
|
-
# (see the [googleauth docs](https://
|
|
366
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
367
367
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
368
|
-
# (see the [signet docs](https://
|
|
368
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
369
369
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
370
370
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
371
371
|
# * (`nil`) indicating no credentials
|
|
@@ -407,7 +407,9 @@ module Google
|
|
|
407
407
|
class Configuration
|
|
408
408
|
extend ::Gapic::Config
|
|
409
409
|
|
|
410
|
-
|
|
410
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
|
411
|
+
|
|
412
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
411
413
|
config_attr :credentials, nil do |value|
|
|
412
414
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
413
415
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -308,9 +308,9 @@ module Google
|
|
|
308
308
|
# * (`String`) The path to a service account key file in JSON format
|
|
309
309
|
# * (`Hash`) A service account key as a Hash
|
|
310
310
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
311
|
-
# (see the [googleauth docs](https://
|
|
311
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
312
312
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
313
|
-
# (see the [signet docs](https://
|
|
313
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
314
314
|
# * (`nil`) indicating no credentials
|
|
315
315
|
# @return [::Object]
|
|
316
316
|
# @!attribute [rw] scope
|
|
@@ -343,7 +343,9 @@ module Google
|
|
|
343
343
|
class Configuration
|
|
344
344
|
extend ::Gapic::Config
|
|
345
345
|
|
|
346
|
-
|
|
346
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
|
347
|
+
|
|
348
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
347
349
|
config_attr :credentials, nil do |value|
|
|
348
350
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
349
351
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_group_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_group_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -129,7 +129,7 @@ module Google
|
|
|
129
129
|
credentials = @config.credentials
|
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -516,9 +516,9 @@ module Google
|
|
|
516
516
|
# * (`String`) The path to a service account key file in JSON format
|
|
517
517
|
# * (`Hash`) A service account key as a Hash
|
|
518
518
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
519
|
-
# (see the [googleauth docs](https://
|
|
519
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
520
520
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
521
|
-
# (see the [signet docs](https://
|
|
521
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
522
522
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
523
523
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
524
524
|
# * (`nil`) indicating no credentials
|
|
@@ -560,7 +560,9 @@ module Google
|
|
|
560
560
|
class Configuration
|
|
561
561
|
extend ::Gapic::Config
|
|
562
562
|
|
|
563
|
-
|
|
563
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
|
564
|
+
|
|
565
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
564
566
|
config_attr :credentials, nil do |value|
|
|
565
567
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
566
568
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -125,7 +125,7 @@ module Google
|
|
|
125
125
|
credentials = @config.credentials
|
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -430,9 +430,9 @@ module Google
|
|
|
430
430
|
# * (`String`) The path to a service account key file in JSON format
|
|
431
431
|
# * (`Hash`) A service account key as a Hash
|
|
432
432
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
433
|
-
# (see the [googleauth docs](https://
|
|
433
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
434
434
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
435
|
-
# (see the [signet docs](https://
|
|
435
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
436
436
|
# * (`nil`) indicating no credentials
|
|
437
437
|
# @return [::Object]
|
|
438
438
|
# @!attribute [rw] scope
|
|
@@ -465,7 +465,9 @@ module Google
|
|
|
465
465
|
class Configuration
|
|
466
466
|
extend ::Gapic::Config
|
|
467
467
|
|
|
468
|
-
|
|
468
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
|
469
|
+
|
|
470
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
469
471
|
config_attr :credentials, nil do |value|
|
|
470
472
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
471
473
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_group_stats_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_events_request request_pb
|
|
99
99
|
query_string_params = if query_string_params.any?
|
|
100
|
-
query_string_params.to_h { |p| p.split
|
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
101
101
|
else
|
|
102
102
|
{}
|
|
103
103
|
end
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_events_request request_pb
|
|
137
137
|
query_string_params = if query_string_params.any?
|
|
138
|
-
query_string_params.to_h { |p| p.split
|
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
139
139
|
else
|
|
140
140
|
{}
|
|
141
141
|
end
|
|
@@ -125,7 +125,7 @@ module Google
|
|
|
125
125
|
credentials = @config.credentials
|
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -288,9 +288,9 @@ module Google
|
|
|
288
288
|
# * (`String`) The path to a service account key file in JSON format
|
|
289
289
|
# * (`Hash`) A service account key as a Hash
|
|
290
290
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
291
|
-
# (see the [googleauth docs](https://
|
|
291
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
292
292
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
293
|
-
# (see the [signet docs](https://
|
|
293
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
294
294
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
295
295
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
296
296
|
# * (`nil`) indicating no credentials
|
|
@@ -332,7 +332,9 @@ module Google
|
|
|
332
332
|
class Configuration
|
|
333
333
|
extend ::Gapic::Config
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
|
336
|
+
|
|
337
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
336
338
|
config_attr :credentials, nil do |value|
|
|
337
339
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
338
340
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -121,7 +121,7 @@ module Google
|
|
|
121
121
|
credentials = @config.credentials
|
|
122
122
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
123
123
|
# but only if the default endpoint does not have a region prefix.
|
|
124
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
124
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
125
125
|
!@config.endpoint.split(".").first.include?("-")
|
|
126
126
|
credentials ||= Credentials.default scope: @config.scope,
|
|
127
127
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -256,9 +256,9 @@ module Google
|
|
|
256
256
|
# * (`String`) The path to a service account key file in JSON format
|
|
257
257
|
# * (`Hash`) A service account key as a Hash
|
|
258
258
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
259
|
-
# (see the [googleauth docs](https://
|
|
259
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
260
260
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
261
|
-
# (see the [signet docs](https://
|
|
261
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
262
262
|
# * (`nil`) indicating no credentials
|
|
263
263
|
# @return [::Object]
|
|
264
264
|
# @!attribute [rw] scope
|
|
@@ -291,7 +291,9 @@ module Google
|
|
|
291
291
|
class Configuration
|
|
292
292
|
extend ::Gapic::Config
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
|
295
|
+
|
|
296
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
295
297
|
config_attr :credentials, nil do |value|
|
|
296
298
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
297
299
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_report_error_event_request request_pb
|
|
61
61
|
query_string_params = if query_string_params.any?
|
|
62
|
-
query_string_params.to_h { |p| p.split
|
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
63
63
|
else
|
|
64
64
|
{}
|
|
65
65
|
end
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/devtools/clouderrorreporting/v1beta1/common.proto
|
|
3
4
|
|
|
@@ -6,54 +7,32 @@ require 'google/protobuf'
|
|
|
6
7
|
require 'google/api/resource_pb'
|
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorContext" do
|
|
32
|
-
optional :http_request, :message, 1, "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext"
|
|
33
|
-
optional :user, :string, 2
|
|
34
|
-
optional :report_location, :message, 3, "google.devtools.clouderrorreporting.v1beta1.SourceLocation"
|
|
35
|
-
end
|
|
36
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.HttpRequestContext" do
|
|
37
|
-
optional :method, :string, 1
|
|
38
|
-
optional :url, :string, 2
|
|
39
|
-
optional :user_agent, :string, 3
|
|
40
|
-
optional :referrer, :string, 4
|
|
41
|
-
optional :response_status_code, :int32, 5
|
|
42
|
-
optional :remote_ip, :string, 6
|
|
43
|
-
end
|
|
44
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.SourceLocation" do
|
|
45
|
-
optional :file_path, :string, 1
|
|
46
|
-
optional :line_number, :int32, 2
|
|
47
|
-
optional :function_name, :string, 4
|
|
48
|
-
end
|
|
49
|
-
add_enum "google.devtools.clouderrorreporting.v1beta1.ResolutionStatus" do
|
|
50
|
-
value :RESOLUTION_STATUS_UNSPECIFIED, 0
|
|
51
|
-
value :OPEN, 1
|
|
52
|
-
value :ACKNOWLEDGED, 2
|
|
53
|
-
value :RESOLVED, 3
|
|
54
|
-
value :MUTED, 4
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n8google/devtools/clouderrorreporting/v1beta1/common.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x02\n\nErrorGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08group_id\x18\x02 \x01(\t\x12S\n\x0ftracking_issues\x18\x03 \x03(\x0b\x32:.google.devtools.clouderrorreporting.v1beta1.TrackingIssue\x12X\n\x11resolution_status\x18\x05 \x01(\x0e\x32=.google.devtools.clouderrorreporting.v1beta1.ResolutionStatus:U\xea\x41R\n-clouderrorreporting.googleapis.com/ErrorGroup\x12!projects/{project}/groups/{group}\"\x1c\n\rTrackingIssue\x12\x0b\n\x03url\x18\x01 \x01(\t\"\xef\x01\n\nErrorEvent\x12.\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12T\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x0f\n\x07message\x18\x03 \x01(\t\x12J\n\x07\x63ontext\x18\x05 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContext\"I\n\x0eServiceContext\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\"\xc9\x01\n\x0c\x45rrorContext\x12U\n\x0chttp_request\x18\x01 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.HttpRequestContext\x12\x0c\n\x04user\x18\x02 \x01(\t\x12T\n\x0freport_location\x18\x03 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.SourceLocation\"\x88\x01\n\x12HttpRequestContext\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\x12\x12\n\nuser_agent\x18\x03 \x01(\t\x12\x10\n\x08referrer\x18\x04 \x01(\t\x12\x1c\n\x14response_status_code\x18\x05 \x01(\x05\x12\x11\n\tremote_ip\x18\x06 \x01(\t\"O\n\x0eSourceLocation\x12\x11\n\tfile_path\x18\x01 \x01(\t\x12\x13\n\x0bline_number\x18\x02 \x01(\x05\x12\x15\n\rfunction_name\x18\x04 \x01(\t*j\n\x10ResolutionStatus\x12!\n\x1dRESOLUTION_STATUS_UNSPECIFIED\x10\x00\x12\x08\n\x04OPEN\x10\x01\x12\x10\n\x0c\x41\x43KNOWLEDGED\x10\x02\x12\x0c\n\x08RESOLVED\x10\x03\x12\t\n\x05MUTED\x10\x04\x42\x89\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x0b\x43ommonProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
|
|
15
|
+
begin
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
17
|
+
rescue TypeError => e
|
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
+
parsed.clear_dependency
|
|
22
|
+
serialized = parsed.class.encode(parsed)
|
|
23
|
+
file = pool.add_serialized_file(serialized)
|
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
+
imports = [
|
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
27
|
+
]
|
|
28
|
+
imports.each do |type_name, expected_filename|
|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
30
|
+
if import_file.name != expected_filename
|
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
55
32
|
end
|
|
56
33
|
end
|
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
35
|
+
warn "This will become an error in the next major version."
|
|
57
36
|
end
|
|
58
37
|
|
|
59
38
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/devtools/clouderrorreporting/v1beta1/error_group_service.proto
|
|
3
4
|
|
|
@@ -9,15 +10,32 @@ require 'google/api/field_behavior_pb'
|
|
|
9
10
|
require 'google/api/resource_pb'
|
|
10
11
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
|
|
14
|
+
descriptor_data = "\nEgoogle/devtools/clouderrorreporting/v1beta1/error_group_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/devtools/clouderrorreporting/v1beta1/common.proto\"\\\n\x0fGetGroupRequest\x12I\n\ngroup_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-clouderrorreporting.googleapis.com/ErrorGroup\"a\n\x12UpdateGroupRequest\x12K\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroupB\x03\xe0\x41\x02\x32\xfb\x03\n\x11\x45rrorGroupService\x12\xc1\x01\n\x08GetGroup\x12<.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\">\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{group_name=projects/*/groups/*}\xda\x41\ngroup_name\x12\xc9\x01\n\x0bUpdateGroup\x12?.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest\x1a\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\"@\x82\xd3\xe4\x93\x02\x32\x1a)/v1beta1/{group.name=projects/*/groups/*}:\x05group\xda\x41\x05group\x1aV\xca\x41\"clouderrorreporting.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x94\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorGroupServiceProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\x06proto3"
|
|
15
|
+
|
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
|
|
18
|
+
begin
|
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
|
20
|
+
rescue TypeError => e
|
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
24
|
+
parsed.clear_dependency
|
|
25
|
+
serialized = parsed.class.encode(parsed)
|
|
26
|
+
file = pool.add_serialized_file(serialized)
|
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
28
|
+
imports = [
|
|
29
|
+
["google.devtools.clouderrorreporting.v1beta1.ErrorGroup", "google/devtools/clouderrorreporting/v1beta1/common.proto"],
|
|
30
|
+
]
|
|
31
|
+
imports.each do |type_name, expected_filename|
|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
+
if import_file.name != expected_filename
|
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
19
35
|
end
|
|
20
36
|
end
|
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
+
warn "This will become an error in the next major version."
|
|
21
39
|
end
|
|
22
40
|
|
|
23
41
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto
|
|
3
4
|
|
|
@@ -11,88 +12,34 @@ require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
|
|
11
12
|
require 'google/protobuf/duration_pb'
|
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
optional :first_seen_time, :message, 5, "google.protobuf.Timestamp"
|
|
39
|
-
optional :last_seen_time, :message, 6, "google.protobuf.Timestamp"
|
|
40
|
-
repeated :affected_services, :message, 7, "google.devtools.clouderrorreporting.v1beta1.ServiceContext"
|
|
41
|
-
optional :num_affected_services, :int32, 8
|
|
42
|
-
optional :representative, :message, 9, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
|
|
43
|
-
end
|
|
44
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.TimedCount" do
|
|
45
|
-
optional :count, :int64, 1
|
|
46
|
-
optional :start_time, :message, 2, "google.protobuf.Timestamp"
|
|
47
|
-
optional :end_time, :message, 3, "google.protobuf.Timestamp"
|
|
48
|
-
end
|
|
49
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsRequest" do
|
|
50
|
-
optional :project_name, :string, 1
|
|
51
|
-
optional :group_id, :string, 2
|
|
52
|
-
optional :service_filter, :message, 3, "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter"
|
|
53
|
-
optional :time_range, :message, 4, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange"
|
|
54
|
-
optional :page_size, :int32, 6
|
|
55
|
-
optional :page_token, :string, 7
|
|
56
|
-
end
|
|
57
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.ListEventsResponse" do
|
|
58
|
-
repeated :error_events, :message, 1, "google.devtools.clouderrorreporting.v1beta1.ErrorEvent"
|
|
59
|
-
optional :next_page_token, :string, 2
|
|
60
|
-
optional :time_range_begin, :message, 4, "google.protobuf.Timestamp"
|
|
61
|
-
end
|
|
62
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange" do
|
|
63
|
-
optional :period, :enum, 1, "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period"
|
|
64
|
-
end
|
|
65
|
-
add_enum "google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period" do
|
|
66
|
-
value :PERIOD_UNSPECIFIED, 0
|
|
67
|
-
value :PERIOD_1_HOUR, 1
|
|
68
|
-
value :PERIOD_6_HOURS, 2
|
|
69
|
-
value :PERIOD_1_DAY, 3
|
|
70
|
-
value :PERIOD_1_WEEK, 4
|
|
71
|
-
value :PERIOD_30_DAYS, 5
|
|
72
|
-
end
|
|
73
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter" do
|
|
74
|
-
optional :service, :string, 2
|
|
75
|
-
optional :version, :string, 3
|
|
76
|
-
optional :resource_type, :string, 4
|
|
77
|
-
end
|
|
78
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest" do
|
|
79
|
-
optional :project_name, :string, 1
|
|
80
|
-
end
|
|
81
|
-
add_message "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse" do
|
|
82
|
-
end
|
|
83
|
-
add_enum "google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment" do
|
|
84
|
-
value :ERROR_COUNT_ALIGNMENT_UNSPECIFIED, 0
|
|
85
|
-
value :ALIGNMENT_EQUAL_ROUNDED, 1
|
|
86
|
-
value :ALIGNMENT_EQUAL_AT_END, 2
|
|
87
|
-
end
|
|
88
|
-
add_enum "google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder" do
|
|
89
|
-
value :GROUP_ORDER_UNSPECIFIED, 0
|
|
90
|
-
value :COUNT_DESC, 1
|
|
91
|
-
value :LAST_SEEN_DESC, 2
|
|
92
|
-
value :CREATED_DESC, 3
|
|
93
|
-
value :AFFECTED_USERS_DESC, 4
|
|
15
|
+
|
|
16
|
+
descriptor_data = "\nEgoogle/devtools/clouderrorreporting/v1beta1/error_stats_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/devtools/clouderrorreporting/v1beta1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x05\n\x15ListGroupStatsRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x15\n\x08group_id\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12^\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterB\x03\xe0\x41\x01\x12T\n\ntime_range\x18\x05 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeB\x03\xe0\x41\x01\x12<\n\x14timed_count_duration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12X\n\talignment\x18\x07 \x01(\x0e\x32@.google.devtools.clouderrorreporting.v1beta1.TimedCountAlignmentB\x03\xe0\x41\x01\x12\x37\n\x0e\x61lignment_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12P\n\x05order\x18\t \x01(\x0e\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrderB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x0c \x01(\tB\x03\xe0\x41\x01\"\xc0\x01\n\x16ListGroupStatsResponse\x12W\n\x11\x65rror_group_stats\x18\x01 \x03(\x0b\x32<.google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x86\x04\n\x0f\x45rrorGroupStats\x12\x46\n\x05group\x18\x01 \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorGroup\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x1c\n\x14\x61\x66\x66\x65\x63ted_users_count\x18\x03 \x01(\x03\x12M\n\x0ctimed_counts\x18\x04 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.TimedCount\x12\x33\n\x0f\x66irst_seen_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0elast_seen_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x11\x61\x66\x66\x65\x63ted_services\x18\x07 \x03(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContext\x12\x1d\n\x15num_affected_services\x18\x08 \x01(\x05\x12O\n\x0erepresentative\x18\t \x01(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\"y\n\nTimedCount\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xdc\x02\n\x11ListEventsRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x15\n\x08group_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x0eservice_filter\x18\x03 \x01(\x0b\x32\x41.google.devtools.clouderrorreporting.v1beta1.ServiceContextFilterB\x03\xe0\x41\x01\x12T\n\ntime_range\x18\x04 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.QueryTimeRangeB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\xb2\x01\n\x12ListEventsResponse\x12M\n\x0c\x65rror_events\x18\x01 \x03(\x0b\x32\x37.google.devtools.clouderrorreporting.v1beta1.ErrorEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x34\n\x10time_range_begin\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe7\x01\n\x0eQueryTimeRange\x12R\n\x06period\x18\x01 \x01(\x0e\x32\x42.google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period\"\x80\x01\n\x06Period\x12\x16\n\x12PERIOD_UNSPECIFIED\x10\x00\x12\x11\n\rPERIOD_1_HOUR\x10\x01\x12\x12\n\x0ePERIOD_6_HOURS\x10\x02\x12\x10\n\x0cPERIOD_1_DAY\x10\x03\x12\x11\n\rPERIOD_1_WEEK\x10\x04\x12\x12\n\x0ePERIOD_30_DAYS\x10\x05\"^\n\x14ServiceContextFilter\x12\x14\n\x07service\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rresource_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\"`\n\x13\x44\x65leteEventsRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"\x16\n\x14\x44\x65leteEventsResponse*u\n\x13TimedCountAlignment\x12%\n!ERROR_COUNT_ALIGNMENT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x41LIGNMENT_EQUAL_ROUNDED\x10\x01\x12\x1a\n\x16\x41LIGNMENT_EQUAL_AT_END\x10\x02*}\n\x0f\x45rrorGroupOrder\x12\x1b\n\x17GROUP_ORDER_UNSPECIFIED\x10\x00\x12\x0e\n\nCOUNT_DESC\x10\x01\x12\x12\n\x0eLAST_SEEN_DESC\x10\x02\x12\x10\n\x0c\x43REATED_DESC\x10\x03\x12\x17\n\x13\x41\x46\x46\x45\x43TED_USERS_DESC\x10\x04\x32\x8b\x06\n\x11\x45rrorStatsService\x12\xea\x01\n\x0eListGroupStats\x12\x42.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest\x1a\x43.google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse\"O\x82\xd3\xe4\x93\x02/\x12-/v1beta1/{project_name=projects/*}/groupStats\xda\x41\x17project_name,time_range\x12\xd8\x01\n\nListEvents\x12>.google.devtools.clouderrorreporting.v1beta1.ListEventsRequest\x1a?.google.devtools.clouderrorreporting.v1beta1.ListEventsResponse\"I\x82\xd3\xe4\x93\x02+\x12)/v1beta1/{project_name=projects/*}/events\xda\x41\x15project_name,group_id\x12\xd5\x01\n\x0c\x44\x65leteEvents\x12@.google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest\x1a\x41.google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse\"@\x82\xd3\xe4\x93\x02+*)/v1beta1/{project_name=projects/*}/events\xda\x41\x0cproject_name\x1aV\xca\x41\"clouderrorreporting.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x94\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x16\x45rrorStatsServiceProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\x06proto3"
|
|
17
|
+
|
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
|
+
|
|
20
|
+
begin
|
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
|
22
|
+
rescue TypeError => e
|
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
26
|
+
parsed.clear_dependency
|
|
27
|
+
serialized = parsed.class.encode(parsed)
|
|
28
|
+
file = pool.add_serialized_file(serialized)
|
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
30
|
+
imports = [
|
|
31
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
|
32
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
33
|
+
["google.devtools.clouderrorreporting.v1beta1.ErrorGroup", "google/devtools/clouderrorreporting/v1beta1/common.proto"],
|
|
34
|
+
]
|
|
35
|
+
imports.each do |type_name, expected_filename|
|
|
36
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
37
|
+
if import_file.name != expected_filename
|
|
38
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
94
39
|
end
|
|
95
40
|
end
|
|
41
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
42
|
+
warn "This will become an error in the next major version."
|
|
96
43
|
end
|
|
97
44
|
|
|
98
45
|
module Google
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto
|
|
3
4
|
|
|
@@ -10,21 +11,33 @@ require 'google/api/resource_pb'
|
|
|
10
11
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\nGgoogle/devtools/clouderrorreporting/v1beta1/report_errors_service.proto\x12+google.devtools.clouderrorreporting.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/devtools/clouderrorreporting/v1beta1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb9\x01\n\x17ReportErrorEventRequest\x12I\n\x0cproject_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12S\n\x05\x65vent\x18\x02 \x01(\x0b\x32?.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEventB\x03\xe0\x41\x02\"\x1a\n\x18ReportErrorEventResponse\"\x8b\x02\n\x12ReportedErrorEvent\x12\x33\n\nevent_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12Y\n\x0fservice_context\x18\x02 \x01(\x0b\x32;.google.devtools.clouderrorreporting.v1beta1.ServiceContextB\x03\xe0\x41\x02\x12\x14\n\x07message\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12O\n\x07\x63ontext\x18\x04 \x01(\x0b\x32\x39.google.devtools.clouderrorreporting.v1beta1.ErrorContextB\x03\xe0\x41\x01\x32\xe5\x02\n\x13ReportErrorsService\x12\xf5\x01\n\x10ReportErrorEvent\x12\x44.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest\x1a\x45.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse\"T\x82\xd3\xe4\x93\x02\x39\"0/v1beta1/{project_name=projects/*}/events:report:\x05\x65vent\xda\x41\x12project_name,event\x1aV\xca\x41\"clouderrorreporting.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x02\n/com.google.devtools.clouderrorreporting.v1beta1B\x18ReportErrorsServiceProtoP\x01ZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpb\xf8\x01\x01\xaa\x02#Google.Cloud.ErrorReporting.V1Beta1\xca\x02#Google\\Cloud\\ErrorReporting\\V1beta1\xea\x02&Google::Cloud::ErrorReporting::V1beta1b\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
|
|
19
|
+
begin
|
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
|
21
|
+
rescue TypeError => e
|
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
25
|
+
parsed.clear_dependency
|
|
26
|
+
serialized = parsed.class.encode(parsed)
|
|
27
|
+
file = pool.add_serialized_file(serialized)
|
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
29
|
+
imports = [
|
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
31
|
+
["google.devtools.clouderrorreporting.v1beta1.ServiceContext", "google/devtools/clouderrorreporting/v1beta1/common.proto"],
|
|
32
|
+
]
|
|
33
|
+
imports.each do |type_name, expected_filename|
|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
35
|
+
if import_file.name != expected_filename
|
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
26
37
|
end
|
|
27
38
|
end
|
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
40
|
+
warn "This will become an error in the next major version."
|
|
28
41
|
end
|
|
29
42
|
|
|
30
43
|
module Google
|
|
@@ -35,7 +35,9 @@ module Google
|
|
|
35
35
|
# Details about how and where to publish client libraries.
|
|
36
36
|
# @!attribute [rw] version
|
|
37
37
|
# @return [::String]
|
|
38
|
-
# Version of the API to apply these settings to.
|
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
|
39
|
+
# package for the API, ending in the version element.
|
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
|
39
41
|
# @!attribute [rw] launch_stage
|
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
|
41
43
|
# Launch stage of this version of the API.
|
|
@@ -81,7 +83,7 @@ module Google
|
|
|
81
83
|
# long-running operation pattern.
|
|
82
84
|
# @!attribute [rw] new_issue_uri
|
|
83
85
|
# @return [::String]
|
|
84
|
-
# Link to a
|
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
86
88
|
# @!attribute [rw] documentation_uri
|
|
87
89
|
# @return [::String]
|
|
@@ -111,6 +113,10 @@ module Google
|
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
|
113
115
|
# settings with the same version string are discarded.
|
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
|
117
|
+
# @return [::String]
|
|
118
|
+
# Optional link to proto reference documentation. Example:
|
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
|
114
120
|
class Publishing
|
|
115
121
|
include ::Google::Protobuf::MessageExts
|
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -203,9 +209,57 @@ module Google
|
|
|
203
209
|
# @!attribute [rw] common
|
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
205
211
|
# Some settings.
|
|
212
|
+
# @!attribute [rw] renamed_services
|
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
214
|
+
# Map from original service names to renamed versions.
|
|
215
|
+
# This is used when the default generated types
|
|
216
|
+
# would cause a naming conflict. (Neither name is
|
|
217
|
+
# fully-qualified.)
|
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
|
219
|
+
# @!attribute [rw] renamed_resources
|
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
221
|
+
# Map from full resource types to the effective short name
|
|
222
|
+
# for the resource. This is used when otherwise resource
|
|
223
|
+
# named from different services would cause naming collisions.
|
|
224
|
+
# Example entry:
|
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
226
|
+
# @!attribute [rw] ignored_resources
|
|
227
|
+
# @return [::Array<::String>]
|
|
228
|
+
# List of full resource types to ignore during generation.
|
|
229
|
+
# This is typically used for API-specific Location resources,
|
|
230
|
+
# which should be handled by the generator as if they were actually
|
|
231
|
+
# the common Location resources.
|
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
|
234
|
+
# @return [::Array<::String>]
|
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
|
238
|
+
# @return [::Array<::String>]
|
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
|
206
242
|
class DotnetSettings
|
|
207
243
|
include ::Google::Protobuf::MessageExts
|
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
245
|
+
|
|
246
|
+
# @!attribute [rw] key
|
|
247
|
+
# @return [::String]
|
|
248
|
+
# @!attribute [rw] value
|
|
249
|
+
# @return [::String]
|
|
250
|
+
class RenamedServicesEntry
|
|
251
|
+
include ::Google::Protobuf::MessageExts
|
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# @!attribute [rw] key
|
|
256
|
+
# @return [::String]
|
|
257
|
+
# @!attribute [rw] value
|
|
258
|
+
# @return [::String]
|
|
259
|
+
class RenamedResourcesEntry
|
|
260
|
+
include ::Google::Protobuf::MessageExts
|
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
262
|
+
end
|
|
209
263
|
end
|
|
210
264
|
|
|
211
265
|
# Settings for Ruby client libraries.
|
|
@@ -240,8 +294,8 @@ module Google
|
|
|
240
294
|
# Example of a YAML configuration::
|
|
241
295
|
#
|
|
242
296
|
# publishing:
|
|
243
|
-
#
|
|
244
|
-
# - selector:
|
|
297
|
+
# method_settings:
|
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
245
299
|
# long_running:
|
|
246
300
|
# initial_poll_delay:
|
|
247
301
|
# seconds: 60 # 1 minute
|
|
@@ -299,6 +353,15 @@ module Google
|
|
|
299
353
|
|
|
300
354
|
# Street View Org.
|
|
301
355
|
STREET_VIEW = 4
|
|
356
|
+
|
|
357
|
+
# Shopping Org.
|
|
358
|
+
SHOPPING = 5
|
|
359
|
+
|
|
360
|
+
# Geo Org.
|
|
361
|
+
GEO = 6
|
|
362
|
+
|
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
|
364
|
+
GENERATIVE_AI = 7
|
|
302
365
|
end
|
|
303
366
|
|
|
304
367
|
# To where should client libraries be published?
|
|
@@ -69,7 +69,6 @@ module Google
|
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
71
71
|
#
|
|
72
|
-
#
|
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
74
73
|
#
|
|
75
74
|
# Instant now = Instant.now();
|
|
@@ -78,7 +77,6 @@ module Google
|
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
79
78
|
# .setNanos(now.getNano()).build();
|
|
80
79
|
#
|
|
81
|
-
#
|
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
|
83
81
|
#
|
|
84
82
|
# timestamp = Timestamp()
|
|
@@ -108,7 +106,7 @@ module Google
|
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
111
|
-
# http://
|
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
113
111
|
# @!attribute [rw] seconds
|
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-error_reporting-v1beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 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: 2023-
|
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.19.1
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.19.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|