google-cloud-error_reporting-v1beta1 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +14 -9
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/client.rb +40 -6
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +72 -9
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/client.rb +20 -3
- data/lib/google/cloud/error_reporting/v1beta1/version.rb +1 -1
- data/lib/google/cloud/error_reporting/v1beta1.rb +2 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/common_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_group_service_services_pb.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/error_stats_service_services_pb.rb +1 -1
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_pb.rb +1 -0
- data/lib/google/devtools/clouderrorreporting/v1beta1/report_errors_service_services_pb.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2b886ab4c51dc0c86fbb280fc42047ec92b66ef81e5e05ef9950db109137ff9
|
4
|
+
data.tar.gz: b44f610fcab97e97ab5e52f79ae360d7ea7f89519d5305b964a420974e29cff4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a099806c4cad2a14b75cd432e191047f69f4f40c6977e9f4c08ca53e9e6eb6ddc2f21b5a9bd75857537526adf09b1dc855949416271ccc91317bd2f7830941
|
7
|
+
data.tar.gz: cc2c669dc7688fd69744d64e84979937386c955628e492d17a1173e4e21ce688d5d57dd1cf27e4a67bb98339e5d88be2d8132c880e76c05eaaa8c9ddbd8c3ee4
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
# Ruby Client for the
|
1
|
+
# Ruby Client for the Error Reporting V1beta1 API
|
2
2
|
|
3
|
-
API Client library for the
|
3
|
+
API Client library for the Error Reporting V1beta1 API
|
4
4
|
|
5
5
|
The Error Reporting API provides a simple endpoint to report errors from your running service, and read access to error groups and their associated errors.
|
6
6
|
|
7
7
|
https://github.com/googleapis/google-cloud-ruby
|
8
8
|
|
9
9
|
This gem is a _versioned_ client. It provides basic client classes for a
|
10
|
-
specific version of the
|
10
|
+
specific version of the Error Reporting V1beta1 API. Most users should consider using
|
11
11
|
the main client gem,
|
12
12
|
[google-cloud-error_reporting](https://rubygems.org/gems/google-cloud-error_reporting).
|
13
13
|
See the section below titled *Which client should I use?* for more information.
|
@@ -37,7 +37,7 @@ request = ::Google::Cloud::ErrorReporting::V1beta1::GetGroupRequest.new # (reque
|
|
37
37
|
response = client.get_group request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-error_reporting-v1beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/error-reporting)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -183,6 +183,21 @@ module Google
|
|
183
183
|
#
|
184
184
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
185
185
|
#
|
186
|
+
# @example Basic example
|
187
|
+
# require "google/cloud/error_reporting/v1beta1"
|
188
|
+
#
|
189
|
+
# # Create a client object. The client can be reused for multiple calls.
|
190
|
+
# client = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new
|
191
|
+
#
|
192
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
193
|
+
# request = Google::Cloud::ErrorReporting::V1beta1::GetGroupRequest.new
|
194
|
+
#
|
195
|
+
# # Call the get_group method.
|
196
|
+
# result = client.get_group request
|
197
|
+
#
|
198
|
+
# # The returned object is of type Google::Cloud::ErrorReporting::V1beta1::ErrorGroup.
|
199
|
+
# p result
|
200
|
+
#
|
186
201
|
def get_group request, options = nil
|
187
202
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
188
203
|
|
@@ -200,9 +215,11 @@ module Google
|
|
200
215
|
gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
|
201
216
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
202
217
|
|
203
|
-
header_params = {
|
204
|
-
|
205
|
-
|
218
|
+
header_params = {}
|
219
|
+
if request.group_name
|
220
|
+
header_params["group_name"] = request.group_name
|
221
|
+
end
|
222
|
+
|
206
223
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
207
224
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
208
225
|
|
@@ -252,6 +269,21 @@ module Google
|
|
252
269
|
#
|
253
270
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
254
271
|
#
|
272
|
+
# @example Basic example
|
273
|
+
# require "google/cloud/error_reporting/v1beta1"
|
274
|
+
#
|
275
|
+
# # Create a client object. The client can be reused for multiple calls.
|
276
|
+
# client = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new
|
277
|
+
#
|
278
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
279
|
+
# request = Google::Cloud::ErrorReporting::V1beta1::UpdateGroupRequest.new
|
280
|
+
#
|
281
|
+
# # Call the update_group method.
|
282
|
+
# result = client.update_group request
|
283
|
+
#
|
284
|
+
# # The returned object is of type Google::Cloud::ErrorReporting::V1beta1::ErrorGroup.
|
285
|
+
# p result
|
286
|
+
#
|
255
287
|
def update_group request, options = nil
|
256
288
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
257
289
|
|
@@ -269,9 +301,11 @@ module Google
|
|
269
301
|
gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
|
270
302
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
271
303
|
|
272
|
-
header_params = {
|
273
|
-
|
274
|
-
|
304
|
+
header_params = {}
|
305
|
+
if request.group&.name
|
306
|
+
header_params["group.name"] = request.group.name
|
307
|
+
end
|
308
|
+
|
275
309
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
276
310
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
277
311
|
|
@@ -218,6 +218,27 @@ module Google
|
|
218
218
|
#
|
219
219
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
220
220
|
#
|
221
|
+
# @example Basic example
|
222
|
+
# require "google/cloud/error_reporting/v1beta1"
|
223
|
+
#
|
224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
225
|
+
# client = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsService::Client.new
|
226
|
+
#
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
228
|
+
# request = Google::Cloud::ErrorReporting::V1beta1::ListGroupStatsRequest.new
|
229
|
+
#
|
230
|
+
# # Call the list_group_stats method.
|
231
|
+
# result = client.list_group_stats request
|
232
|
+
#
|
233
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
234
|
+
# # iterate over all elements by calling #each, and the enumerable
|
235
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
236
|
+
# # methods are also available for managing paging directly.
|
237
|
+
# result.each do |response|
|
238
|
+
# # Each element is of type ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupStats.
|
239
|
+
# p response
|
240
|
+
# end
|
241
|
+
#
|
221
242
|
def list_group_stats request, options = nil
|
222
243
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
223
244
|
|
@@ -235,9 +256,11 @@ module Google
|
|
235
256
|
gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
|
236
257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
237
258
|
|
238
|
-
header_params = {
|
239
|
-
|
240
|
-
|
259
|
+
header_params = {}
|
260
|
+
if request.project_name
|
261
|
+
header_params["project_name"] = request.project_name
|
262
|
+
end
|
263
|
+
|
241
264
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
242
265
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
243
266
|
|
@@ -306,6 +329,27 @@ module Google
|
|
306
329
|
#
|
307
330
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
308
331
|
#
|
332
|
+
# @example Basic example
|
333
|
+
# require "google/cloud/error_reporting/v1beta1"
|
334
|
+
#
|
335
|
+
# # Create a client object. The client can be reused for multiple calls.
|
336
|
+
# client = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsService::Client.new
|
337
|
+
#
|
338
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
339
|
+
# request = Google::Cloud::ErrorReporting::V1beta1::ListEventsRequest.new
|
340
|
+
#
|
341
|
+
# # Call the list_events method.
|
342
|
+
# result = client.list_events request
|
343
|
+
#
|
344
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
345
|
+
# # iterate over all elements by calling #each, and the enumerable
|
346
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
347
|
+
# # methods are also available for managing paging directly.
|
348
|
+
# result.each do |response|
|
349
|
+
# # Each element is of type ::Google::Cloud::ErrorReporting::V1beta1::ErrorEvent.
|
350
|
+
# p response
|
351
|
+
# end
|
352
|
+
#
|
309
353
|
def list_events request, options = nil
|
310
354
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
355
|
|
@@ -323,9 +367,11 @@ module Google
|
|
323
367
|
gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
|
324
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
325
369
|
|
326
|
-
header_params = {
|
327
|
-
|
328
|
-
|
370
|
+
header_params = {}
|
371
|
+
if request.project_name
|
372
|
+
header_params["project_name"] = request.project_name
|
373
|
+
end
|
374
|
+
|
329
375
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
330
376
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
331
377
|
|
@@ -380,6 +426,21 @@ module Google
|
|
380
426
|
#
|
381
427
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
382
428
|
#
|
429
|
+
# @example Basic example
|
430
|
+
# require "google/cloud/error_reporting/v1beta1"
|
431
|
+
#
|
432
|
+
# # Create a client object. The client can be reused for multiple calls.
|
433
|
+
# client = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsService::Client.new
|
434
|
+
#
|
435
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
436
|
+
# request = Google::Cloud::ErrorReporting::V1beta1::DeleteEventsRequest.new
|
437
|
+
#
|
438
|
+
# # Call the delete_events method.
|
439
|
+
# result = client.delete_events request
|
440
|
+
#
|
441
|
+
# # The returned object is of type Google::Cloud::ErrorReporting::V1beta1::DeleteEventsResponse.
|
442
|
+
# p result
|
443
|
+
#
|
383
444
|
def delete_events request, options = nil
|
384
445
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
385
446
|
|
@@ -397,9 +458,11 @@ module Google
|
|
397
458
|
gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
|
398
459
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
460
|
|
400
|
-
header_params = {
|
401
|
-
|
402
|
-
|
461
|
+
header_params = {}
|
462
|
+
if request.project_name
|
463
|
+
header_params["project_name"] = request.project_name
|
464
|
+
end
|
465
|
+
|
403
466
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
404
467
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
405
468
|
|
@@ -198,6 +198,21 @@ module Google
|
|
198
198
|
#
|
199
199
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
200
200
|
#
|
201
|
+
# @example Basic example
|
202
|
+
# require "google/cloud/error_reporting/v1beta1"
|
203
|
+
#
|
204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
205
|
+
# client = Google::Cloud::ErrorReporting::V1beta1::ReportErrorsService::Client.new
|
206
|
+
#
|
207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
208
|
+
# request = Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventRequest.new
|
209
|
+
#
|
210
|
+
# # Call the report_error_event method.
|
211
|
+
# result = client.report_error_event request
|
212
|
+
#
|
213
|
+
# # The returned object is of type Google::Cloud::ErrorReporting::V1beta1::ReportErrorEventResponse.
|
214
|
+
# p result
|
215
|
+
#
|
201
216
|
def report_error_event request, options = nil
|
202
217
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
203
218
|
|
@@ -215,9 +230,11 @@ module Google
|
|
215
230
|
gapic_version: ::Google::Cloud::ErrorReporting::V1beta1::VERSION
|
216
231
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
217
232
|
|
218
|
-
header_params = {
|
219
|
-
|
220
|
-
|
233
|
+
header_params = {}
|
234
|
+
if request.project_name
|
235
|
+
header_params["project_name"] = request.project_name
|
236
|
+
end
|
237
|
+
|
221
238
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
222
239
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
223
240
|
|
@@ -27,6 +27,8 @@ module Google
|
|
27
27
|
##
|
28
28
|
# To load this package, including all its services, and instantiate a client:
|
29
29
|
#
|
30
|
+
# @example
|
31
|
+
#
|
30
32
|
# require "google/cloud/error_reporting/v1beta1"
|
31
33
|
# client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new
|
32
34
|
#
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/resource_pb'
|
7
7
|
require 'google/protobuf/timestamp_pb'
|
8
8
|
require 'google/api/annotations_pb'
|
9
|
+
|
9
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
11
|
add_file("google/devtools/clouderrorreporting/v1beta1/common.proto", :syntax => :proto3) do
|
11
12
|
add_message "google.devtools.clouderrorreporting.v1beta1.ErrorGroup" do
|
@@ -8,6 +8,7 @@ require 'google/api/client_pb'
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
11
|
+
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_file("google/devtools/clouderrorreporting/v1beta1/error_group_service.proto", :syntax => :proto3) do
|
13
14
|
add_message "google.devtools.clouderrorreporting.v1beta1.GetGroupRequest" do
|
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
|
|
10
10
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
11
11
|
require 'google/protobuf/duration_pb'
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
15
|
add_file("google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto", :syntax => :proto3) do
|
15
16
|
add_message "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest" do
|
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
|
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/devtools/clouderrorreporting/v1beta1/common_pb'
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
|
+
|
12
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
14
|
add_file("google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto", :syntax => :proto3) do
|
14
15
|
add_message "google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest" do
|
data/proto_docs/README.md
CHANGED
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
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.5.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:
|
11
|
+
date: 2022-07-02 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.10'
|
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.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,15 +213,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
213
|
requirements:
|
214
214
|
- - ">="
|
215
215
|
- !ruby/object:Gem::Version
|
216
|
-
version: '2.
|
216
|
+
version: '2.6'
|
217
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
223
|
+
rubygems_version: 3.3.14
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
|
-
summary: API Client library for the
|
226
|
+
summary: API Client library for the Error Reporting V1beta1 API
|
227
227
|
test_files: []
|