google-cloud-service_health-v1 2.1.0 → 2.2.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: b34edcfd836ce03df81dad82c65ea6d1d9b729d0c860149d0cb1cdb1cf7b3fc0
4
- data.tar.gz: 990777e3037023f9df4887bf03f08162300a42a8b36e062e8da26af5ae42cf33
3
+ metadata.gz: b5a9c24d642c655e380f34ad356e144e3da32d19ead8176d853735a93380ccce
4
+ data.tar.gz: bb73be2c49fa7b7547b7d13d559f8af5623a7604a89fa691be9a5a8707302f39
5
5
  SHA512:
6
- metadata.gz: ee77b4af3ed95da4d7c2a26cf0cc71ba7dda5310a58b1269ae0fd217dcef8d180776899b60856cc8e0b29800e0b7a12f1a1531c2d309eb702849a584263c112e
7
- data.tar.gz: ddb3225b3ffd61bed0d60c30011766cc5b01d217d7fa56e0dd9d5c9ce09bacd4b6c9c21a14165133bbe6f1dbee950cea4e1b54a12651669c416240f11c0f9827
6
+ metadata.gz: 044d021aad629317a89dbd4c2276343d80ad591d204bdefde99924fc503548f2da1e2fb8da58ed9fa8f9b81a9b5137b9df864cb4064c35194fef5d72355533cc
7
+ data.tar.gz: 5ee768083c11a6f832d7c3ff66453ee692ca0c3e2a73678ba59a0b4fe24c38cd4dec84823f2362736c63f29613478069a5f0c6c3273fd5317ae8d6fdb413d112
@@ -16,7 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/config"
19
+ require "gapic/rest"
20
20
 
21
21
  module Google
22
22
  module Cloud
@@ -42,7 +42,7 @@ module Google
42
42
  namespace.pop
43
43
  end
44
44
 
45
- default_config = Configuration.new parent_config
45
+ default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
46
46
  default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
47
  Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
48
  uri_method: :get,
@@ -69,33 +69,6 @@ module Google
69
69
  yield @configure if block_given?
70
70
  @configure
71
71
  end
72
-
73
- ##
74
- # @private
75
- # Configuration class for the google.cloud.servicehealth.v1 package.
76
- #
77
- # This class contains common configuration for all services
78
- # of the google.cloud.servicehealth.v1 package.
79
- #
80
- # This configuration is for internal use of the client library classes,
81
- # and it is not intended that the end-users will read or change it.
82
- #
83
- class Configuration
84
- extend ::Gapic::Config
85
-
86
- # @private
87
- # Overrides for http bindings for the RPC of the mixins for this package.
88
- # Services in this package should use these when creating clients for the mixin services.
89
- # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
90
- config_attr :bindings_override, {}, ::Hash, nil
91
-
92
- # @private
93
- def initialize parent_config = nil
94
- @parent_config = parent_config unless parent_config.nil?
95
-
96
- yield self if block_given?
97
- end
98
- end
99
72
  end
100
73
  end
101
74
  end
@@ -936,8 +936,6 @@ module Google
936
936
  # @return [::String,nil]
937
937
  # @!attribute [rw] credentials
938
938
  # Credentials to send with calls. You may provide any of the following types:
939
- # * (`String`) The path to a service account key file in JSON format
940
- # * (`Hash`) A service account key as a Hash
941
939
  # * (`Google::Auth::Credentials`) A googleauth credentials object
942
940
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
943
941
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -946,7 +944,26 @@ module Google
946
944
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
947
945
  # * (`nil`) indicating no credentials
948
946
  #
949
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
947
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
948
+ # is deprecated. Providing an unvalidated credential configuration to
949
+ # Google APIs can compromise the security of your systems and data.
950
+ #
951
+ # @example
952
+ #
953
+ # # The recommended way to provide credentials is to use the `make_creds` method
954
+ # # on the appropriate credentials class for your environment.
955
+ #
956
+ # require "googleauth"
957
+ #
958
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
959
+ # json_key_io: ::File.open("/path/to/keyfile.json")
960
+ # )
961
+ #
962
+ # client = ::Google::Cloud::ServiceHealth::V1::ServiceHealth::Client.new do |config|
963
+ # config.credentials = credentials
964
+ # end
965
+ #
966
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
950
967
  # external source for authentication to Google Cloud, you must validate it before
951
968
  # providing it to a Google API client library. Providing an unvalidated credential
952
969
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceHealth
23
23
  module V1
24
- VERSION = "2.1.0"
24
+ VERSION = "2.2.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_health-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.0'
18
+ version: '1.2'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.0'
25
+ version: '1.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: google-cloud-errors
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.6.8
110
+ rubygems_version: 3.6.9
111
111
  specification_version: 4
112
112
  summary: Personalized Service Health helps you gain visibility into disruptive events
113
113
  impacting Google Cloud products.