google-cloud-error_reporting 0.35.0 → 0.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14b7376e46c49c261ee4387207a28bbe055c6f248559e7fae9c91eb8a23c92d5
4
- data.tar.gz: 2e276f3374ca544e9518d64ec22ebd296717cc29a22a21f6beb6fd586fc79df2
3
+ metadata.gz: fd92a22880c3114d8f42f7775bf6f9228df5792003695abf87b1585ff444e9de
4
+ data.tar.gz: 4994826f7e936045ae14e83e9638ec93914b2c5ee7662175bade841148345686
5
5
  SHA512:
6
- metadata.gz: 81ce022171fa09fe64c7ef5a8104fd5b179408bbf108e59c9242195c50874c8a71bc4cccf7a955da5d4c6a9cc6d6ca84ac519d0821486a692bc8680959e3f936
7
- data.tar.gz: a18c83dc1b646173cc4910f37729193e2edd18be0123dc127ed298228ca3719d9f2a7fce5c34a5e669e5a4d4e3ba78bd57ddedd1c027afb943707fe2c60d7840
6
+ metadata.gz: 2ffc32db0e8af46a433faaa1e17fed57918751a68e8944266fa6bcb4739afce354128bb13e0b7a411cec1bb55c17001a89b83fd70209ca89f5347251a9a66403
7
+ data.tar.gz: 136843593958bc0b8c6846787406c71f0291e9e5e47fb73f7b34e384c29462f755dfe47359cf24d6186be3b917a3f1c7449973cdf2100ff143beae4ed4b7bc66
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.35.1 / 2020-05-19
4
+
5
+ #### Bug Fixes
6
+
7
+ * Adjusted some default timeout and retry settings
8
+
3
9
  ### 0.35.0 / 2020-03-11
4
10
 
5
11
  #### Features
@@ -187,14 +187,6 @@ module Google
187
187
  &Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroupService::Stub.method(:new)
188
188
  )
189
189
 
190
- @get_group = Google::Gax.create_api_call(
191
- @error_group_service_stub.method(:get_group),
192
- defaults["get_group"],
193
- exception_transformer: exception_transformer,
194
- params_extractor: proc do |request|
195
- {'group_name' => request.group_name}
196
- end
197
- )
198
190
  @update_group = Google::Gax.create_api_call(
199
191
  @error_group_service_stub.method(:update_group),
200
192
  defaults["update_group"],
@@ -203,21 +195,25 @@ module Google
203
195
  {'group.name' => request.group.name}
204
196
  end
205
197
  )
198
+ @get_group = Google::Gax.create_api_call(
199
+ @error_group_service_stub.method(:get_group),
200
+ defaults["get_group"],
201
+ exception_transformer: exception_transformer,
202
+ params_extractor: proc do |request|
203
+ {'group_name' => request.group_name}
204
+ end
205
+ )
206
206
  end
207
207
 
208
208
  # Service calls
209
209
 
210
- # Get the specified group.
211
- #
212
- # @param group_name [String]
213
- # Required. The group resource name. Written as
214
- # <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
215
- # Call
216
- # <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
217
- # <code>groupStats.list</code></a> to return a list of groups belonging to
218
- # this project.
210
+ # Replace the data for the specified group.
211
+ # Fails if the group does not exist.
219
212
  #
220
- # Example: <code>projects/my-project-123/groups/my-group</code>
213
+ # @param group [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup | Hash]
214
+ # Required. The group which replaces the resource on the server.
215
+ # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup`
216
+ # can also be provided.
221
217
  # @param options [Google::Gax::CallOptions]
222
218
  # Overrides the default settings for this call, e.g, timeout,
223
219
  # retries, etc.
@@ -230,27 +226,33 @@ module Google
230
226
  # require "google/cloud/error_reporting"
231
227
  #
232
228
  # error_group_client = Google::Cloud::ErrorReporting::ErrorGroup.new(version: :v1beta1)
233
- # formatted_group_name = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient.error_group_path("[PROJECT]", "[GROUP]")
234
- # response = error_group_client.get_group(formatted_group_name)
229
+ #
230
+ # # TODO: Initialize `group`:
231
+ # group = {}
232
+ # response = error_group_client.update_group(group)
235
233
 
236
- def get_group \
237
- group_name,
234
+ def update_group \
235
+ group,
238
236
  options: nil,
239
237
  &block
240
238
  req = {
241
- group_name: group_name
239
+ group: group
242
240
  }.delete_if { |_, v| v.nil? }
243
- req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::GetGroupRequest)
244
- @get_group.call(req, options, &block)
241
+ req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::UpdateGroupRequest)
242
+ @update_group.call(req, options, &block)
245
243
  end
246
244
 
247
- # Replace the data for the specified group.
248
- # Fails if the group does not exist.
245
+ # Get the specified group.
249
246
  #
250
- # @param group [Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup | Hash]
251
- # Required. The group which replaces the resource on the server.
252
- # A hash of the same form as `Google::Devtools::Clouderrorreporting::V1beta1::ErrorGroup`
253
- # can also be provided.
247
+ # @param group_name [String]
248
+ # Required. The group resource name. Written as
249
+ # <code>projects/<var>projectID</var>/groups/<var>group_name</var></code>.
250
+ # Call
251
+ # <a href="/error-reporting/reference/rest/v1beta1/projects.groupStats/list">
252
+ # <code>groupStats.list</code></a> to return a list of groups belonging to
253
+ # this project.
254
+ #
255
+ # Example: <code>projects/my-project-123/groups/my-group</code>
254
256
  # @param options [Google::Gax::CallOptions]
255
257
  # Overrides the default settings for this call, e.g, timeout,
256
258
  # retries, etc.
@@ -263,20 +265,18 @@ module Google
263
265
  # require "google/cloud/error_reporting"
264
266
  #
265
267
  # error_group_client = Google::Cloud::ErrorReporting::ErrorGroup.new(version: :v1beta1)
266
- #
267
- # # TODO: Initialize `group`:
268
- # group = {}
269
- # response = error_group_client.update_group(group)
268
+ # formatted_group_name = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupServiceClient.error_group_path("[PROJECT]", "[GROUP]")
269
+ # response = error_group_client.get_group(formatted_group_name)
270
270
 
271
- def update_group \
272
- group,
271
+ def get_group \
272
+ group_name,
273
273
  options: nil,
274
274
  &block
275
275
  req = {
276
- group: group
276
+ group_name: group_name
277
277
  }.delete_if { |_, v| v.nil? }
278
- req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::UpdateGroupRequest)
279
- @update_group.call(req, options, &block)
278
+ req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::GetGroupRequest)
279
+ @get_group.call(req, options, &block)
280
280
  end
281
281
  end
282
282
  end
@@ -20,14 +20,14 @@
20
20
  }
21
21
  },
22
22
  "methods": {
23
- "GetGroup": {
23
+ "UpdateGroup": {
24
24
  "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
- "UpdateGroup": {
28
+ "GetGroup": {
29
29
  "timeout_millis": 60000,
30
- "retry_codes_name": "non_idempotent",
30
+ "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  }
33
33
  }
@@ -200,6 +200,14 @@ module Google
200
200
  &Google::Devtools::Clouderrorreporting::V1beta1::ErrorStatsService::Stub.method(:new)
201
201
  )
202
202
 
203
+ @delete_events = Google::Gax.create_api_call(
204
+ @error_stats_service_stub.method(:delete_events),
205
+ defaults["delete_events"],
206
+ exception_transformer: exception_transformer,
207
+ params_extractor: proc do |request|
208
+ {'project_name' => request.project_name}
209
+ end
210
+ )
203
211
  @list_group_stats = Google::Gax.create_api_call(
204
212
  @error_stats_service_stub.method(:list_group_stats),
205
213
  defaults["list_group_stats"],
@@ -216,18 +224,44 @@ module Google
216
224
  {'project_name' => request.project_name}
217
225
  end
218
226
  )
219
- @delete_events = Google::Gax.create_api_call(
220
- @error_stats_service_stub.method(:delete_events),
221
- defaults["delete_events"],
222
- exception_transformer: exception_transformer,
223
- params_extractor: proc do |request|
224
- {'project_name' => request.project_name}
225
- end
226
- )
227
227
  end
228
228
 
229
229
  # Service calls
230
230
 
231
+ # Deletes all error events of a given project.
232
+ #
233
+ # @param project_name [String]
234
+ # Required. The resource name of the Google Cloud Platform project. Written
235
+ # as `projects/` plus the
236
+ # [Google Cloud Platform project
237
+ # ID](https://support.google.com/cloud/answer/6158840).
238
+ # Example: `projects/my-project-123`.
239
+ # @param options [Google::Gax::CallOptions]
240
+ # Overrides the default settings for this call, e.g, timeout,
241
+ # retries, etc.
242
+ # @yield [result, operation] Access the result along with the RPC operation
243
+ # @yieldparam result [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
244
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
245
+ # @return [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
246
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
247
+ # @example
248
+ # require "google/cloud/error_reporting"
249
+ #
250
+ # error_stats_client = Google::Cloud::ErrorReporting::ErrorStats.new(version: :v1beta1)
251
+ # formatted_project_name = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient.project_path("[PROJECT]")
252
+ # response = error_stats_client.delete_events(formatted_project_name)
253
+
254
+ def delete_events \
255
+ project_name,
256
+ options: nil,
257
+ &block
258
+ req = {
259
+ project_name: project_name
260
+ }.delete_if { |_, v| v.nil? }
261
+ req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsRequest)
262
+ @delete_events.call(req, options, &block)
263
+ end
264
+
231
265
  # Lists the specified groups.
232
266
  #
233
267
  # @param project_name [String]
@@ -416,40 +450,6 @@ module Google
416
450
  req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::ListEventsRequest)
417
451
  @list_events.call(req, options, &block)
418
452
  end
419
-
420
- # Deletes all error events of a given project.
421
- #
422
- # @param project_name [String]
423
- # Required. The resource name of the Google Cloud Platform project. Written
424
- # as `projects/` plus the
425
- # [Google Cloud Platform project
426
- # ID](https://support.google.com/cloud/answer/6158840).
427
- # Example: `projects/my-project-123`.
428
- # @param options [Google::Gax::CallOptions]
429
- # Overrides the default settings for this call, e.g, timeout,
430
- # retries, etc.
431
- # @yield [result, operation] Access the result along with the RPC operation
432
- # @yieldparam result [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
433
- # @yieldparam operation [GRPC::ActiveCall::Operation]
434
- # @return [Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsResponse]
435
- # @raise [Google::Gax::GaxError] if the RPC is aborted.
436
- # @example
437
- # require "google/cloud/error_reporting"
438
- #
439
- # error_stats_client = Google::Cloud::ErrorReporting::ErrorStats.new(version: :v1beta1)
440
- # formatted_project_name = Google::Cloud::ErrorReporting::V1beta1::ErrorStatsServiceClient.project_path("[PROJECT]")
441
- # response = error_stats_client.delete_events(formatted_project_name)
442
-
443
- def delete_events \
444
- project_name,
445
- options: nil,
446
- &block
447
- req = {
448
- project_name: project_name
449
- }.delete_if { |_, v| v.nil? }
450
- req = Google::Gax::to_proto(req, Google::Devtools::Clouderrorreporting::V1beta1::DeleteEventsRequest)
451
- @delete_events.call(req, options, &block)
452
- end
453
453
  end
454
454
  end
455
455
  end
@@ -20,19 +20,19 @@
20
20
  }
21
21
  },
22
22
  "methods": {
23
- "ListGroupStats": {
23
+ "DeleteEvents": {
24
24
  "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
- "ListEvents": {
28
+ "ListGroupStats": {
29
29
  "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
33
- "DeleteEvents": {
33
+ "ListEvents": {
34
34
  "timeout_millis": 60000,
35
- "retry_codes_name": "non_idempotent",
35
+ "retry_codes_name": "idempotent",
36
36
  "retry_params_name": "default"
37
37
  }
38
38
  }
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ErrorReporting
19
- VERSION = "0.35.0".freeze
19
+ VERSION = "0.35.1".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.35.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-11 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -126,14 +126,14 @@ dependencies:
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: '5.10'
129
+ version: '5.14'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: '5.10'
136
+ version: '5.14'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: minitest-autotest
139
139
  requirement: !ruby/object:Gem::Requirement