google-cloud-error_reporting-v1beta1 0.5.1 → 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 +2 -2
- 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 +426 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service/rest.rb +52 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_group_service.rb +6 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/client.rb +14 -16
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest/client.rb +555 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest/service_stub.rb +225 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service/rest.rb +53 -0
- data/lib/google/cloud/error_reporting/v1beta1/error_stats_service.rb +6 -0
- 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 +367 -0
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/rest/service_stub.rb +108 -0
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service/rest.rb +52 -0
- data/lib/google/cloud/error_reporting/v1beta1/report_errors_service.rb +6 -0
- data/lib/google/cloud/error_reporting/v1beta1/rest.rb +39 -0
- data/lib/google/cloud/error_reporting/v1beta1/version.rb +1 -1
- data/lib/google/cloud/error_reporting/v1beta1.rb +5 -0
- 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 +18 -7
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/error_reporting/v1beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/error_reporting/v1beta1/error_group_service/credentials"
|
26
|
+
require "google/cloud/error_reporting/v1beta1/error_group_service/paths"
|
27
|
+
require "google/cloud/error_reporting/v1beta1/error_group_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module ErrorReporting
|
32
|
+
module V1beta1
|
33
|
+
##
|
34
|
+
# Service for retrieving and updating individual error groups.
|
35
|
+
#
|
36
|
+
# To load this service and instantiate a REST client:
|
37
|
+
#
|
38
|
+
# require "google/cloud/error_reporting/v1beta1/error_group_service/rest"
|
39
|
+
# client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Rest::Client.new
|
40
|
+
#
|
41
|
+
module ErrorGroupService
|
42
|
+
# Client for the REST transport
|
43
|
+
module Rest
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
52
|
+
require "google/cloud/error_reporting/v1beta1/error_group_service/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/error_reporting/v1beta1/version"
|
|
25
25
|
require "google/cloud/error_reporting/v1beta1/error_group_service/credentials"
|
26
26
|
require "google/cloud/error_reporting/v1beta1/error_group_service/paths"
|
27
27
|
require "google/cloud/error_reporting/v1beta1/error_group_service/client"
|
28
|
+
require "google/cloud/error_reporting/v1beta1/error_group_service/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -38,6 +39,11 @@ module Google
|
|
38
39
|
# require "google/cloud/error_reporting/v1beta1/error_group_service"
|
39
40
|
# client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new
|
40
41
|
#
|
42
|
+
# @example Load this service and instantiate a REST client
|
43
|
+
#
|
44
|
+
# require "google/cloud/error_reporting/v1beta1/error_group_service/rest"
|
45
|
+
# client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Rest::Client.new
|
46
|
+
#
|
41
47
|
module ErrorGroupService
|
42
48
|
end
|
43
49
|
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
|
@@ -230,13 +230,11 @@ module Google
|
|
230
230
|
# # Call the list_group_stats method.
|
231
231
|
# result = client.list_group_stats request
|
232
232
|
#
|
233
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
234
|
-
# #
|
235
|
-
#
|
236
|
-
# # methods are also available for managing paging directly.
|
237
|
-
# result.each do |response|
|
233
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
234
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
235
|
+
# result.each do |item|
|
238
236
|
# # Each element is of type ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupStats.
|
239
|
-
# p
|
237
|
+
# p item
|
240
238
|
# end
|
241
239
|
#
|
242
240
|
def list_group_stats request, options = nil
|
@@ -341,13 +339,11 @@ module Google
|
|
341
339
|
# # Call the list_events method.
|
342
340
|
# result = client.list_events request
|
343
341
|
#
|
344
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
345
|
-
# #
|
346
|
-
#
|
347
|
-
# # methods are also available for managing paging directly.
|
348
|
-
# result.each do |response|
|
342
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
343
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
344
|
+
# result.each do |item|
|
349
345
|
# # Each element is of type ::Google::Cloud::ErrorReporting::V1beta1::ErrorEvent.
|
350
|
-
# p
|
346
|
+
# p item
|
351
347
|
# end
|
352
348
|
#
|
353
349
|
def list_events request, options = nil
|
@@ -520,9 +516,9 @@ module Google
|
|
520
516
|
# * (`String`) The path to a service account key file in JSON format
|
521
517
|
# * (`Hash`) A service account key as a Hash
|
522
518
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
523
|
-
# (see the [googleauth docs](https://
|
519
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
524
520
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
525
|
-
# (see the [signet docs](https://
|
521
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
526
522
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
527
523
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
528
524
|
# * (`nil`) indicating no credentials
|
@@ -564,7 +560,9 @@ module Google
|
|
564
560
|
class Configuration
|
565
561
|
extend ::Gapic::Config
|
566
562
|
|
567
|
-
|
563
|
+
DEFAULT_ENDPOINT = "clouderrorreporting.googleapis.com"
|
564
|
+
|
565
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
568
566
|
config_attr :credentials, nil do |value|
|
569
567
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
570
568
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|