google-cloud-error_reporting-v1beta1 0.11.1 → 0.14.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 +31 -21
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/client.rb +36 -5
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/rest/client.rb +35 -4
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +38 -6
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest/client.rb +37 -5
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest/service_stub.rb +38 -20
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/client.rb +36 -4
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/rest/client.rb +35 -3
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/error_reporting/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +53 -0
- metadata +8 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b03f5179ee71782e4b84200bdc30125d61677c01db638b4a354ab77d60f671c
|
4
|
+
data.tar.gz: 6fe0e15df01a39146e0dd638b5d77c74a6b6a97ca3af3f0404d94647b0a439db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcf286a45faca0b6042631a795615ad4383ff709023aa7bf183f3dda2a4955c7161ef5d2dd76386bc7e3d038e124b1016baa143fc0506d452c9985d6a5a72545
|
7
|
+
data.tar.gz: 852086be1d3dcf246e8b42e43177b5762ddbcd742deb5ec75a4f83fd1df3f22d3dd9bac37c34219564bb84abd15f46ac3a88840aa62216fb16e3f75eb007c225
|
data/README.md
CHANGED
@@ -43,40 +43,50 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/error-reporting)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/error_reporting/v1beta1"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
86
|
|
77
87
|
## Supported Ruby Versions
|
78
88
|
|
79
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
80
90
|
|
81
91
|
Google provides official support for Ruby versions that are actively supported
|
82
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -162,8 +162,28 @@ module Google
|
|
162
162
|
universe_domain: @config.universe_domain,
|
163
163
|
channel_args: @config.channel_args,
|
164
164
|
interceptors: @config.interceptors,
|
165
|
-
channel_pool_config: @config.channel_pool
|
165
|
+
channel_pool_config: @config.channel_pool,
|
166
|
+
logger: @config.logger
|
166
167
|
)
|
168
|
+
|
169
|
+
@error_group_service_stub.stub_logger&.info do |entry|
|
170
|
+
entry.set_system_name
|
171
|
+
entry.set_service
|
172
|
+
entry.message = "Created client for #{entry.service}"
|
173
|
+
entry.set_credentials_fields credentials
|
174
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
175
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
176
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
##
|
181
|
+
# The logger used for request/response debug logging.
|
182
|
+
#
|
183
|
+
# @return [Logger]
|
184
|
+
#
|
185
|
+
def logger
|
186
|
+
@error_group_service_stub.logger
|
167
187
|
end
|
168
188
|
|
169
189
|
# Service calls
|
@@ -266,7 +286,6 @@ module Google
|
|
266
286
|
|
267
287
|
@error_group_service_stub.call_rpc :get_group, request, options: options do |response, operation|
|
268
288
|
yield response, operation if block_given?
|
269
|
-
return response
|
270
289
|
end
|
271
290
|
rescue ::GRPC::BadStatus => e
|
272
291
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -353,7 +372,6 @@ module Google
|
|
353
372
|
|
354
373
|
@error_group_service_stub.call_rpc :update_group, request, options: options do |response, operation|
|
355
374
|
yield response, operation if block_given?
|
356
|
-
return response
|
357
375
|
end
|
358
376
|
rescue ::GRPC::BadStatus => e
|
359
377
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -403,6 +421,13 @@ module Google
|
|
403
421
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
404
422
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
405
423
|
# * (`nil`) indicating no credentials
|
424
|
+
#
|
425
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
426
|
+
# external source for authentication to Google Cloud, you must validate it before
|
427
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
428
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
429
|
+
# For more information, refer to [Validate credential configurations from external
|
430
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
406
431
|
# @return [::Object]
|
407
432
|
# @!attribute [rw] scope
|
408
433
|
# The OAuth scopes
|
@@ -442,6 +467,11 @@ module Google
|
|
442
467
|
# default endpoint URL. The default value of nil uses the environment
|
443
468
|
# universe (usually the default "googleapis.com" universe).
|
444
469
|
# @return [::String,nil]
|
470
|
+
# @!attribute [rw] logger
|
471
|
+
# A custom logger to use for request/response debug logging, or the value
|
472
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
473
|
+
# explicitly disable logging.
|
474
|
+
# @return [::Logger,:default,nil]
|
445
475
|
#
|
446
476
|
class Configuration
|
447
477
|
extend ::Gapic::Config
|
@@ -452,8 +482,8 @@ module Google
|
|
452
482
|
|
453
483
|
config_attr :endpoint, nil, ::String, nil
|
454
484
|
config_attr :credentials, nil do |value|
|
455
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
456
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
485
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
486
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
457
487
|
allowed.any? { |klass| klass === value }
|
458
488
|
end
|
459
489
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -466,6 +496,7 @@ module Google
|
|
466
496
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
467
497
|
config_attr :quota_project, nil, ::String, nil
|
468
498
|
config_attr :universe_domain, nil, ::String, nil
|
499
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
469
500
|
|
470
501
|
# @private
|
471
502
|
def initialize parent_config = nil
|
@@ -155,8 +155,28 @@ module Google
|
|
155
155
|
endpoint: @config.endpoint,
|
156
156
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
157
157
|
universe_domain: @config.universe_domain,
|
158
|
-
credentials: credentials
|
158
|
+
credentials: credentials,
|
159
|
+
logger: @config.logger
|
159
160
|
)
|
161
|
+
|
162
|
+
@error_group_service_stub.logger(stub: true)&.info do |entry|
|
163
|
+
entry.set_system_name
|
164
|
+
entry.set_service
|
165
|
+
entry.message = "Created client for #{entry.service}"
|
166
|
+
entry.set_credentials_fields credentials
|
167
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
168
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
169
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
##
|
174
|
+
# The logger used for request/response debug logging.
|
175
|
+
#
|
176
|
+
# @return [Logger]
|
177
|
+
#
|
178
|
+
def logger
|
179
|
+
@error_group_service_stub.logger
|
160
180
|
end
|
161
181
|
|
162
182
|
# Service calls
|
@@ -252,7 +272,6 @@ module Google
|
|
252
272
|
|
253
273
|
@error_group_service_stub.get_group request, options do |result, operation|
|
254
274
|
yield result, operation if block_given?
|
255
|
-
return result
|
256
275
|
end
|
257
276
|
rescue ::Gapic::Rest::Error => e
|
258
277
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -332,7 +351,6 @@ module Google
|
|
332
351
|
|
333
352
|
@error_group_service_stub.update_group request, options do |result, operation|
|
334
353
|
yield result, operation if block_given?
|
335
|
-
return result
|
336
354
|
end
|
337
355
|
rescue ::Gapic::Rest::Error => e
|
338
356
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -380,6 +398,13 @@ module Google
|
|
380
398
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
381
399
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
382
400
|
# * (`nil`) indicating no credentials
|
401
|
+
#
|
402
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
403
|
+
# external source for authentication to Google Cloud, you must validate it before
|
404
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
405
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
406
|
+
# For more information, refer to [Validate credential configurations from external
|
407
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
383
408
|
# @return [::Object]
|
384
409
|
# @!attribute [rw] scope
|
385
410
|
# The OAuth scopes
|
@@ -412,6 +437,11 @@ module Google
|
|
412
437
|
# default endpoint URL. The default value of nil uses the environment
|
413
438
|
# universe (usually the default "googleapis.com" universe).
|
414
439
|
# @return [::String,nil]
|
440
|
+
# @!attribute [rw] logger
|
441
|
+
# A custom logger to use for request/response debug logging, or the value
|
442
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
443
|
+
# explicitly disable logging.
|
444
|
+
# @return [::Logger,:default,nil]
|
415
445
|
#
|
416
446
|
class Configuration
|
417
447
|
extend ::Gapic::Config
|
@@ -422,7 +452,7 @@ module Google
|
|
422
452
|
|
423
453
|
config_attr :endpoint, nil, ::String, nil
|
424
454
|
config_attr :credentials, nil do |value|
|
425
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
455
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
426
456
|
allowed.any? { |klass| klass === value }
|
427
457
|
end
|
428
458
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -433,6 +463,7 @@ module Google
|
|
433
463
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
434
464
|
config_attr :quota_project, nil, ::String, nil
|
435
465
|
config_attr :universe_domain, nil, ::String, nil
|
466
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
436
467
|
|
437
468
|
# @private
|
438
469
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the get_group REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "get_group",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "update_group",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,8 +163,28 @@ module Google
|
|
163
163
|
universe_domain: @config.universe_domain,
|
164
164
|
channel_args: @config.channel_args,
|
165
165
|
interceptors: @config.interceptors,
|
166
|
-
channel_pool_config: @config.channel_pool
|
166
|
+
channel_pool_config: @config.channel_pool,
|
167
|
+
logger: @config.logger
|
167
168
|
)
|
169
|
+
|
170
|
+
@error_stats_service_stub.stub_logger&.info do |entry|
|
171
|
+
entry.set_system_name
|
172
|
+
entry.set_service
|
173
|
+
entry.message = "Created client for #{entry.service}"
|
174
|
+
entry.set_credentials_fields credentials
|
175
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
176
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
177
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
##
|
182
|
+
# The logger used for request/response debug logging.
|
183
|
+
#
|
184
|
+
# @return [Logger]
|
185
|
+
#
|
186
|
+
def logger
|
187
|
+
@error_stats_service_stub.logger
|
168
188
|
end
|
169
189
|
|
170
190
|
# Service calls
|
@@ -319,7 +339,7 @@ module Google
|
|
319
339
|
@error_stats_service_stub.call_rpc :list_group_stats, request, options: options do |response, operation|
|
320
340
|
response = ::Gapic::PagedEnumerable.new @error_stats_service_stub, :list_group_stats, request, response, operation, options
|
321
341
|
yield response, operation if block_given?
|
322
|
-
|
342
|
+
throw :response, response
|
323
343
|
end
|
324
344
|
rescue ::GRPC::BadStatus => e
|
325
345
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -440,7 +460,7 @@ module Google
|
|
440
460
|
@error_stats_service_stub.call_rpc :list_events, request, options: options do |response, operation|
|
441
461
|
response = ::Gapic::PagedEnumerable.new @error_stats_service_stub, :list_events, request, response, operation, options
|
442
462
|
yield response, operation if block_given?
|
443
|
-
|
463
|
+
throw :response, response
|
444
464
|
end
|
445
465
|
rescue ::GRPC::BadStatus => e
|
446
466
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -537,7 +557,6 @@ module Google
|
|
537
557
|
|
538
558
|
@error_stats_service_stub.call_rpc :delete_events, request, options: options do |response, operation|
|
539
559
|
yield response, operation if block_given?
|
540
|
-
return response
|
541
560
|
end
|
542
561
|
rescue ::GRPC::BadStatus => e
|
543
562
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -587,6 +606,13 @@ module Google
|
|
587
606
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
588
607
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
589
608
|
# * (`nil`) indicating no credentials
|
609
|
+
#
|
610
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
611
|
+
# external source for authentication to Google Cloud, you must validate it before
|
612
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
613
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
614
|
+
# For more information, refer to [Validate credential configurations from external
|
615
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
590
616
|
# @return [::Object]
|
591
617
|
# @!attribute [rw] scope
|
592
618
|
# The OAuth scopes
|
@@ -626,6 +652,11 @@ module Google
|
|
626
652
|
# default endpoint URL. The default value of nil uses the environment
|
627
653
|
# universe (usually the default "googleapis.com" universe).
|
628
654
|
# @return [::String,nil]
|
655
|
+
# @!attribute [rw] logger
|
656
|
+
# A custom logger to use for request/response debug logging, or the value
|
657
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
658
|
+
# explicitly disable logging.
|
659
|
+
# @return [::Logger,:default,nil]
|
629
660
|
#
|
630
661
|
class Configuration
|
631
662
|
extend ::Gapic::Config
|
@@ -636,8 +667,8 @@ module Google
|
|
636
667
|
|
637
668
|
config_attr :endpoint, nil, ::String, nil
|
638
669
|
config_attr :credentials, nil do |value|
|
639
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
640
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
670
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
671
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
641
672
|
allowed.any? { |klass| klass === value }
|
642
673
|
end
|
643
674
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -650,6 +681,7 @@ module Google
|
|
650
681
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
651
682
|
config_attr :quota_project, nil, ::String, nil
|
652
683
|
config_attr :universe_domain, nil, ::String, nil
|
684
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
653
685
|
|
654
686
|
# @private
|
655
687
|
def initialize parent_config = nil
|
@@ -156,8 +156,28 @@ module Google
|
|
156
156
|
endpoint: @config.endpoint,
|
157
157
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
158
158
|
universe_domain: @config.universe_domain,
|
159
|
-
credentials: credentials
|
159
|
+
credentials: credentials,
|
160
|
+
logger: @config.logger
|
160
161
|
)
|
162
|
+
|
163
|
+
@error_stats_service_stub.logger(stub: true)&.info do |entry|
|
164
|
+
entry.set_system_name
|
165
|
+
entry.set_service
|
166
|
+
entry.message = "Created client for #{entry.service}"
|
167
|
+
entry.set_credentials_fields credentials
|
168
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
169
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
170
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
##
|
175
|
+
# The logger used for request/response debug logging.
|
176
|
+
#
|
177
|
+
# @return [Logger]
|
178
|
+
#
|
179
|
+
def logger
|
180
|
+
@error_stats_service_stub.logger
|
161
181
|
end
|
162
182
|
|
163
183
|
# Service calls
|
@@ -305,7 +325,7 @@ module Google
|
|
305
325
|
@error_stats_service_stub.list_group_stats request, options do |result, operation|
|
306
326
|
result = ::Gapic::Rest::PagedEnumerable.new @error_stats_service_stub, :list_group_stats, "error_group_stats", request, result, options
|
307
327
|
yield result, operation if block_given?
|
308
|
-
|
328
|
+
throw :response, result
|
309
329
|
end
|
310
330
|
rescue ::Gapic::Rest::Error => e
|
311
331
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -419,7 +439,7 @@ module Google
|
|
419
439
|
@error_stats_service_stub.list_events request, options do |result, operation|
|
420
440
|
result = ::Gapic::Rest::PagedEnumerable.new @error_stats_service_stub, :list_events, "error_events", request, result, options
|
421
441
|
yield result, operation if block_given?
|
422
|
-
|
442
|
+
throw :response, result
|
423
443
|
end
|
424
444
|
rescue ::Gapic::Rest::Error => e
|
425
445
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -509,7 +529,6 @@ module Google
|
|
509
529
|
|
510
530
|
@error_stats_service_stub.delete_events request, options do |result, operation|
|
511
531
|
yield result, operation if block_given?
|
512
|
-
return result
|
513
532
|
end
|
514
533
|
rescue ::Gapic::Rest::Error => e
|
515
534
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -557,6 +576,13 @@ module Google
|
|
557
576
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
558
577
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
559
578
|
# * (`nil`) indicating no credentials
|
579
|
+
#
|
580
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
581
|
+
# external source for authentication to Google Cloud, you must validate it before
|
582
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
583
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
584
|
+
# For more information, refer to [Validate credential configurations from external
|
585
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
560
586
|
# @return [::Object]
|
561
587
|
# @!attribute [rw] scope
|
562
588
|
# The OAuth scopes
|
@@ -589,6 +615,11 @@ module Google
|
|
589
615
|
# default endpoint URL. The default value of nil uses the environment
|
590
616
|
# universe (usually the default "googleapis.com" universe).
|
591
617
|
# @return [::String,nil]
|
618
|
+
# @!attribute [rw] logger
|
619
|
+
# A custom logger to use for request/response debug logging, or the value
|
620
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
621
|
+
# explicitly disable logging.
|
622
|
+
# @return [::Logger,:default,nil]
|
592
623
|
#
|
593
624
|
class Configuration
|
594
625
|
extend ::Gapic::Config
|
@@ -599,7 +630,7 @@ module Google
|
|
599
630
|
|
600
631
|
config_attr :endpoint, nil, ::String, nil
|
601
632
|
config_attr :credentials, nil do |value|
|
602
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
633
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
603
634
|
allowed.any? { |klass| klass === value }
|
604
635
|
end
|
605
636
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -610,6 +641,7 @@ module Google
|
|
610
641
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
611
642
|
config_attr :quota_project, nil, ::String, nil
|
612
643
|
config_attr :universe_domain, nil, ::String, nil
|
644
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
613
645
|
|
614
646
|
# @private
|
615
647
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the list_group_stats REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "list_group_stats",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::ErrorReporting::V1beta1::ListGroupStatsResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "list_events",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::ErrorReporting::V1beta1::ListEventsResponse.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "delete_events",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Cloud::ErrorReporting::V1beta1::DeleteEventsResponse.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -159,8 +159,28 @@ module Google
|
|
159
159
|
universe_domain: @config.universe_domain,
|
160
160
|
channel_args: @config.channel_args,
|
161
161
|
interceptors: @config.interceptors,
|
162
|
-
channel_pool_config: @config.channel_pool
|
162
|
+
channel_pool_config: @config.channel_pool,
|
163
|
+
logger: @config.logger
|
163
164
|
)
|
165
|
+
|
166
|
+
@report_errors_service_stub.stub_logger&.info do |entry|
|
167
|
+
entry.set_system_name
|
168
|
+
entry.set_service
|
169
|
+
entry.message = "Created client for #{entry.service}"
|
170
|
+
entry.set_credentials_fields credentials
|
171
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
172
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
173
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# The logger used for request/response debug logging.
|
179
|
+
#
|
180
|
+
# @return [Logger]
|
181
|
+
#
|
182
|
+
def logger
|
183
|
+
@report_errors_service_stub.logger
|
164
184
|
end
|
165
185
|
|
166
186
|
# Service calls
|
@@ -271,7 +291,6 @@ module Google
|
|
271
291
|
|
272
292
|
@report_errors_service_stub.call_rpc :report_error_event, request, options: options do |response, operation|
|
273
293
|
yield response, operation if block_given?
|
274
|
-
return response
|
275
294
|
end
|
276
295
|
rescue ::GRPC::BadStatus => e
|
277
296
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -321,6 +340,13 @@ module Google
|
|
321
340
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
322
341
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
323
342
|
# * (`nil`) indicating no credentials
|
343
|
+
#
|
344
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
345
|
+
# external source for authentication to Google Cloud, you must validate it before
|
346
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
347
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
348
|
+
# For more information, refer to [Validate credential configurations from external
|
349
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
324
350
|
# @return [::Object]
|
325
351
|
# @!attribute [rw] scope
|
326
352
|
# The OAuth scopes
|
@@ -360,6 +386,11 @@ module Google
|
|
360
386
|
# default endpoint URL. The default value of nil uses the environment
|
361
387
|
# universe (usually the default "googleapis.com" universe).
|
362
388
|
# @return [::String,nil]
|
389
|
+
# @!attribute [rw] logger
|
390
|
+
# A custom logger to use for request/response debug logging, or the value
|
391
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
392
|
+
# explicitly disable logging.
|
393
|
+
# @return [::Logger,:default,nil]
|
363
394
|
#
|
364
395
|
class Configuration
|
365
396
|
extend ::Gapic::Config
|
@@ -370,8 +401,8 @@ module Google
|
|
370
401
|
|
371
402
|
config_attr :endpoint, nil, ::String, nil
|
372
403
|
config_attr :credentials, nil do |value|
|
373
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
374
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
404
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
405
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
375
406
|
allowed.any? { |klass| klass === value }
|
376
407
|
end
|
377
408
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -384,6 +415,7 @@ module Google
|
|
384
415
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
385
416
|
config_attr :quota_project, nil, ::String, nil
|
386
417
|
config_attr :universe_domain, nil, ::String, nil
|
418
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
387
419
|
|
388
420
|
# @private
|
389
421
|
def initialize parent_config = nil
|
@@ -152,8 +152,28 @@ module Google
|
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
154
154
|
universe_domain: @config.universe_domain,
|
155
|
-
credentials: credentials
|
155
|
+
credentials: credentials,
|
156
|
+
logger: @config.logger
|
156
157
|
)
|
158
|
+
|
159
|
+
@report_errors_service_stub.logger(stub: true)&.info do |entry|
|
160
|
+
entry.set_system_name
|
161
|
+
entry.set_service
|
162
|
+
entry.message = "Created client for #{entry.service}"
|
163
|
+
entry.set_credentials_fields credentials
|
164
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
165
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
166
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
##
|
171
|
+
# The logger used for request/response debug logging.
|
172
|
+
#
|
173
|
+
# @return [Logger]
|
174
|
+
#
|
175
|
+
def logger
|
176
|
+
@report_errors_service_stub.logger
|
157
177
|
end
|
158
178
|
|
159
179
|
# Service calls
|
@@ -257,7 +277,6 @@ module Google
|
|
257
277
|
|
258
278
|
@report_errors_service_stub.report_error_event request, options do |result, operation|
|
259
279
|
yield result, operation if block_given?
|
260
|
-
return result
|
261
280
|
end
|
262
281
|
rescue ::Gapic::Rest::Error => e
|
263
282
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -305,6 +324,13 @@ module Google
|
|
305
324
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
306
325
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
307
326
|
# * (`nil`) indicating no credentials
|
327
|
+
#
|
328
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
329
|
+
# external source for authentication to Google Cloud, you must validate it before
|
330
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
331
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
332
|
+
# For more information, refer to [Validate credential configurations from external
|
333
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
308
334
|
# @return [::Object]
|
309
335
|
# @!attribute [rw] scope
|
310
336
|
# The OAuth scopes
|
@@ -337,6 +363,11 @@ module Google
|
|
337
363
|
# default endpoint URL. The default value of nil uses the environment
|
338
364
|
# universe (usually the default "googleapis.com" universe).
|
339
365
|
# @return [::String,nil]
|
366
|
+
# @!attribute [rw] logger
|
367
|
+
# A custom logger to use for request/response debug logging, or the value
|
368
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
369
|
+
# explicitly disable logging.
|
370
|
+
# @return [::Logger,:default,nil]
|
340
371
|
#
|
341
372
|
class Configuration
|
342
373
|
extend ::Gapic::Config
|
@@ -347,7 +378,7 @@ module Google
|
|
347
378
|
|
348
379
|
config_attr :endpoint, nil, ::String, nil
|
349
380
|
config_attr :credentials, nil do |value|
|
350
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
381
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
351
382
|
allowed.any? { |klass| klass === value }
|
352
383
|
end
|
353
384
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -358,6 +389,7 @@ module Google
|
|
358
389
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
359
390
|
config_attr :quota_project, nil, ::String, nil
|
360
391
|
config_attr :universe_domain, nil, ::String, nil
|
392
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
361
393
|
|
362
394
|
# @private
|
363
395
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the report_error_event REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "report_error_event",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventResponse.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,18 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
224
|
+
# @!attribute [rw] unversioned_package_disabled
|
225
|
+
# @return [::Boolean]
|
226
|
+
# Disables generation of an unversioned Python package for this client
|
227
|
+
# library. This means that the module names will need to be versioned in
|
228
|
+
# import statements. For example `import google.cloud.library_v2` instead
|
229
|
+
# of `import google.cloud.library`.
|
215
230
|
class ExperimentalFeatures
|
216
231
|
include ::Google::Protobuf::MessageExts
|
217
232
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +312,28 @@ module Google
|
|
297
312
|
# @!attribute [rw] common
|
298
313
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
314
|
# Some settings.
|
315
|
+
# @!attribute [rw] renamed_services
|
316
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
317
|
+
# Map of service names to renamed services. Keys are the package relative
|
318
|
+
# service names and values are the name to be used for the service client
|
319
|
+
# and call options.
|
320
|
+
#
|
321
|
+
# publishing:
|
322
|
+
# go_settings:
|
323
|
+
# renamed_services:
|
324
|
+
# Publisher: TopicAdmin
|
300
325
|
class GoSettings
|
301
326
|
include ::Google::Protobuf::MessageExts
|
302
327
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
328
|
+
|
329
|
+
# @!attribute [rw] key
|
330
|
+
# @return [::String]
|
331
|
+
# @!attribute [rw] value
|
332
|
+
# @return [::String]
|
333
|
+
class RenamedServicesEntry
|
334
|
+
include ::Google::Protobuf::MessageExts
|
335
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
336
|
+
end
|
303
337
|
end
|
304
338
|
|
305
339
|
# Describes the generator configuration for a method.
|
@@ -375,6 +409,25 @@ module Google
|
|
375
409
|
end
|
376
410
|
end
|
377
411
|
|
412
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
413
|
+
# a service for client libraries.
|
414
|
+
# @!attribute [rw] methods
|
415
|
+
# @return [::Array<::String>]
|
416
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
417
|
+
# on public client surfaces.
|
418
|
+
# @!attribute [rw] generate_omitted_as_internal
|
419
|
+
# @return [::Boolean]
|
420
|
+
# Setting this to true indicates to the client generators that methods
|
421
|
+
# that would be excluded from the generation should instead be generated
|
422
|
+
# in a way that indicates these methods should not be consumed by
|
423
|
+
# end users. How this is expressed is up to individual language
|
424
|
+
# implementations to decide. Some examples may be: added annotations,
|
425
|
+
# obfuscated identifiers, or other language idiomatic patterns.
|
426
|
+
class SelectiveGapicGeneration
|
427
|
+
include ::Google::Protobuf::MessageExts
|
428
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
429
|
+
end
|
430
|
+
|
378
431
|
# The organization for which the client libraries are being published.
|
379
432
|
# Affects the url where generated docs are published, etc.
|
380
433
|
module ClientLibraryOrganization
|
metadata
CHANGED
@@ -1,35 +1,28 @@
|
|
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.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.21.1
|
20
|
-
- - "<"
|
16
|
+
- - "~>"
|
21
17
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
version: '1.0'
|
23
19
|
type: :runtime
|
24
20
|
prerelease: false
|
25
21
|
version_requirements: !ruby/object:Gem::Requirement
|
26
22
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 0.21.1
|
30
|
-
- - "<"
|
23
|
+
- - "~>"
|
31
24
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
25
|
+
version: '1.0'
|
33
26
|
- !ruby/object:Gem::Dependency
|
34
27
|
name: google-cloud-errors
|
35
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,7 +98,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
105
98
|
licenses:
|
106
99
|
- Apache-2.0
|
107
100
|
metadata: {}
|
108
|
-
post_install_message:
|
109
101
|
rdoc_options: []
|
110
102
|
require_paths:
|
111
103
|
- lib
|
@@ -113,15 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
105
|
requirements:
|
114
106
|
- - ">="
|
115
107
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
108
|
+
version: '3.1'
|
117
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
110
|
requirements:
|
119
111
|
- - ">="
|
120
112
|
- !ruby/object:Gem::Version
|
121
113
|
version: '0'
|
122
114
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
124
|
-
signing_key:
|
115
|
+
rubygems_version: 3.6.8
|
125
116
|
specification_version: 4
|
126
117
|
summary: Groups and counts similar errors from cloud services and applications, reports
|
127
118
|
new errors, and provides access to error groups and their associated errors.
|