google-cloud-service_health-v1 1.2.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aba307702a904a4c4facf1b5ef72d236157311f271fafa54e61cfe9b1d4eba89
4
- data.tar.gz: c0c141e6bf1057af039b4354e1198958f02121c14e4e1df8b04c9fe6d6c1efcb
3
+ metadata.gz: bca809089b00906a45624605c8ffd586d7ca042123c512c581faea2d81bf64a5
4
+ data.tar.gz: 67980414cc15a0f4c244fde38916b594e2dcded4bd8ae6bad2323e7f7a84263d
5
5
  SHA512:
6
- metadata.gz: b34b7b2e51ebb8068398e0cddc7abb9bf1fd0cb7316d185769a41442b2220f3d02e222b723d3d6e3e0579e43336ec19f86fd9fffad73c714d5bbad20f9259933
7
- data.tar.gz: ca4009dfa265e77d630a83c661772f1e09a9afa974821f66fa830c3974d1e8ebfb2cfb3225aff1437346f12f756cf39084ef095e676df5a20bc181b4a0318f0c
6
+ metadata.gz: 8f8197ae795f282c5e95c37fd2a939a26bc006d9cd6de5240c641d281821fc710773a5102d09f59e9e39cccb5b87ae92bddd2bff5a70a06f2d96e53db481107e
7
+ data.tar.gz: 769244a0ad53abce98ec43964132ad3077060f31ede3847f06887bee94d0251e03910be06faec106469e640b799bc0d843641f3e153fbbd5cfed1e6165c8fa13
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -945,6 +945,13 @@ module Google
945
945
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
946
946
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
947
947
  # * (`nil`) indicating no credentials
948
+ #
949
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
950
+ # external source for authentication to Google Cloud, you must validate it before
951
+ # providing it to a Google API client library. Providing an unvalidated credential
952
+ # configuration to Google APIs can compromise the security of your systems and data.
953
+ # For more information, refer to [Validate credential configurations from external
954
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
948
955
  # @return [::Object]
949
956
  # @!attribute [rw] scope
950
957
  # The OAuth scopes
@@ -281,10 +281,10 @@ module Google
281
281
  # @param view [::Google::Cloud::ServiceHealth::V1::EventView]
282
282
  # Optional. Event fields to include in response.
283
283
  # @yield [result, operation] Access the result along with the TransportOperation object
284
- # @yieldparam result [::Google::Cloud::ServiceHealth::V1::ListEventsResponse]
284
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceHealth::V1::Event>]
285
285
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
286
286
  #
287
- # @return [::Google::Cloud::ServiceHealth::V1::ListEventsResponse]
287
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceHealth::V1::Event>]
288
288
  #
289
289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
290
290
  #
@@ -336,7 +336,9 @@ module Google
336
336
  retry_policy: @config.retry_policy
337
337
 
338
338
  @service_health_stub.list_events request, options do |result, operation|
339
+ result = ::Gapic::Rest::PagedEnumerable.new @service_health_stub, :list_events, "events", request, result, options
339
340
  yield result, operation if block_given?
341
+ throw :response, result
340
342
  end
341
343
  rescue ::Gapic::Rest::Error => e
342
344
  raise ::Google::Cloud::Error.from_error(e)
@@ -489,10 +491,10 @@ module Google
489
491
  # @param view [::Google::Cloud::ServiceHealth::V1::OrganizationEventView]
490
492
  # Optional. OrganizationEvent fields to include in response.
491
493
  # @yield [result, operation] Access the result along with the TransportOperation object
492
- # @yieldparam result [::Google::Cloud::ServiceHealth::V1::ListOrganizationEventsResponse]
494
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceHealth::V1::OrganizationEvent>]
493
495
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
494
496
  #
495
- # @return [::Google::Cloud::ServiceHealth::V1::ListOrganizationEventsResponse]
497
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceHealth::V1::OrganizationEvent>]
496
498
  #
497
499
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
498
500
  #
@@ -544,7 +546,9 @@ module Google
544
546
  retry_policy: @config.retry_policy
545
547
 
546
548
  @service_health_stub.list_organization_events request, options do |result, operation|
549
+ result = ::Gapic::Rest::PagedEnumerable.new @service_health_stub, :list_organization_events, "organization_events", request, result, options
547
550
  yield result, operation if block_given?
551
+ throw :response, result
548
552
  end
549
553
  rescue ::Gapic::Rest::Error => e
550
554
  raise ::Google::Cloud::Error.from_error(e)
@@ -699,10 +703,10 @@ module Google
699
703
  # AND and OR expressions explicitly.
700
704
  # Filter is supported for the following fields: `events`.
701
705
  # @yield [result, operation] Access the result along with the TransportOperation object
702
- # @yieldparam result [::Google::Cloud::ServiceHealth::V1::ListOrganizationImpactsResponse]
706
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceHealth::V1::OrganizationImpact>]
703
707
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
704
708
  #
705
- # @return [::Google::Cloud::ServiceHealth::V1::ListOrganizationImpactsResponse]
709
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceHealth::V1::OrganizationImpact>]
706
710
  #
707
711
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
708
712
  #
@@ -754,7 +758,9 @@ module Google
754
758
  retry_policy: @config.retry_policy
755
759
 
756
760
  @service_health_stub.list_organization_impacts request, options do |result, operation|
761
+ result = ::Gapic::Rest::PagedEnumerable.new @service_health_stub, :list_organization_impacts, "organization_impacts", request, result, options
757
762
  yield result, operation if block_given?
763
+ throw :response, result
758
764
  end
759
765
  rescue ::Gapic::Rest::Error => e
760
766
  raise ::Google::Cloud::Error.from_error(e)
@@ -889,6 +895,13 @@ module Google
889
895
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
890
896
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
891
897
  # * (`nil`) indicating no credentials
898
+ #
899
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
900
+ # external source for authentication to Google Cloud, you must validate it before
901
+ # providing it to a Google API client library. Providing an unvalidated credential
902
+ # configuration to Google APIs can compromise the security of your systems and data.
903
+ # For more information, refer to [Validate credential configurations from external
904
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
892
905
  # @return [::Object]
893
906
  # @!attribute [rw] scope
894
907
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceHealth
23
23
  module V1
24
- VERSION = "1.2.1"
24
+ VERSION = "2.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_health-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-08 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -106,7 +105,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
106
105
  licenses:
107
106
  - Apache-2.0
108
107
  metadata: {}
109
- post_install_message:
110
108
  rdoc_options: []
111
109
  require_paths:
112
110
  - lib
@@ -114,15 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
112
  requirements:
115
113
  - - ">="
116
114
  - !ruby/object:Gem::Version
117
- version: '2.7'
115
+ version: '3.0'
118
116
  required_rubygems_version: !ruby/object:Gem::Requirement
119
117
  requirements:
120
118
  - - ">="
121
119
  - !ruby/object:Gem::Version
122
120
  version: '0'
123
121
  requirements: []
124
- rubygems_version: 3.5.23
125
- signing_key:
122
+ rubygems_version: 3.6.3
126
123
  specification_version: 4
127
124
  summary: Personalized Service Health helps you gain visibility into disruptive events
128
125
  impacting Google Cloud products.