google-cloud-service_directory-v1 1.3.0 → 1.4.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: bff5c09fd892c32ea0db424737d72071165ab68b1308eb7b6688ba34de275699
4
- data.tar.gz: c5b1f550615226b22639c3706e06b7c5949019105e0e00370064c35b27f4c429
3
+ metadata.gz: 9d3940331960b0962e6d199c5d35a02c6025f994c59ea6a51a4a3122275ab70e
4
+ data.tar.gz: 4fe04fa4b054d895e8998dfc538839d7a8e87397613a811b13adda5c2ebfd582
5
5
  SHA512:
6
- metadata.gz: 3d0d6b95beafba4cf95df728ad4dbad711ee524ef644d6ba166c800ca49f7bd92afa1d2d06b43dbc08148147d800a68a08111172304807743723987b2259cbe7
7
- data.tar.gz: bee7e0e754e711a1432d5ed9e4343c49335761331bd6ac9cd91c8e995e97eab217a782f668fc8d5a30cd148da56f45f15083964163a50701e374c50739a0d4c8
6
+ metadata.gz: 1b857860f66e89b2d2d70ac4e5d4f968b31db0006def93aaa2878615f24968c2ad51b87335c74c501eb0f1e72ac466cac09993a0bf34da8150bf0b1f7aebbd96
7
+ data.tar.gz: 8c1ae13db6e9f79da03a844cc69beea4e1d4c48e8713e48b2f129d0310cabfc6d2568528fecf8e7a7c935a0dce36050881ca99a83e99665ab3cca071218212eb
@@ -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.servicedirectory.v1 package.
76
- #
77
- # This class contains common configuration for all services
78
- # of the google.cloud.servicedirectory.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
@@ -367,8 +367,6 @@ module Google
367
367
  # @return [::String,nil]
368
368
  # @!attribute [rw] credentials
369
369
  # Credentials to send with calls. You may provide any of the following types:
370
- # * (`String`) The path to a service account key file in JSON format
371
- # * (`Hash`) A service account key as a Hash
372
370
  # * (`Google::Auth::Credentials`) A googleauth credentials object
373
371
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
374
372
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -377,7 +375,26 @@ module Google
377
375
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
378
376
  # * (`nil`) indicating no credentials
379
377
  #
380
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
378
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
379
+ # is deprecated. Providing an unvalidated credential configuration to
380
+ # Google APIs can compromise the security of your systems and data.
381
+ #
382
+ # @example
383
+ #
384
+ # # The recommended way to provide credentials is to use the `make_creds` method
385
+ # # on the appropriate credentials class for your environment.
386
+ #
387
+ # require "googleauth"
388
+ #
389
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
390
+ # json_key_io: ::File.open("/path/to/keyfile.json")
391
+ # )
392
+ #
393
+ # client = ::Google::Cloud::ServiceDirectory::V1::LookupService::Client.new do |config|
394
+ # config.credentials = credentials
395
+ # end
396
+ #
397
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
381
398
  # external source for authentication to Google Cloud, you must validate it before
382
399
  # providing it to a Google API client library. Providing an unvalidated credential
383
400
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -2007,8 +2007,6 @@ module Google
2007
2007
  # @return [::String,nil]
2008
2008
  # @!attribute [rw] credentials
2009
2009
  # Credentials to send with calls. You may provide any of the following types:
2010
- # * (`String`) The path to a service account key file in JSON format
2011
- # * (`Hash`) A service account key as a Hash
2012
2010
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2013
2011
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2014
2012
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2017,7 +2015,26 @@ module Google
2017
2015
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2018
2016
  # * (`nil`) indicating no credentials
2019
2017
  #
2020
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2018
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2019
+ # is deprecated. Providing an unvalidated credential configuration to
2020
+ # Google APIs can compromise the security of your systems and data.
2021
+ #
2022
+ # @example
2023
+ #
2024
+ # # The recommended way to provide credentials is to use the `make_creds` method
2025
+ # # on the appropriate credentials class for your environment.
2026
+ #
2027
+ # require "googleauth"
2028
+ #
2029
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2030
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2031
+ # )
2032
+ #
2033
+ # client = ::Google::Cloud::ServiceDirectory::V1::RegistrationService::Client.new do |config|
2034
+ # config.credentials = credentials
2035
+ # end
2036
+ #
2037
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2021
2038
  # external source for authentication to Google Cloud, you must validate it before
2022
2039
  # providing it to a Google API client library. Providing an unvalidated credential
2023
2040
  # 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 ServiceDirectory
23
23
  module V1
24
- VERSION = "1.3.0"
24
+ VERSION = "1.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -313,7 +313,7 @@ module Google
313
313
  # Specifies the identities that do not cause logging for this type of
314
314
  # permission.
315
315
  # Follows the same format of
316
- # {::Google::Iam::V1::Binding#members Binding.members}.
316
+ # [Binding.members][google.iam.v1.Binding.members].
317
317
  class AuditLogConfig
318
318
  include ::Google::Protobuf::MessageExts
319
319
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_directory-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.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
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.6.8
143
+ rubygems_version: 3.6.9
144
144
  specification_version: 4
145
145
  summary: Service Directory is a platform for discovering, publishing, and connecting
146
146
  services.