google-cloud-parameter_manager-v1 0.4.0 → 0.5.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: bcd1bc9e051880608bd2ec3db7aa55805afca6a48ccc75a476075e9a3c5a9782
4
- data.tar.gz: d46129ef30844481515ee832e2d3325492e3f5027ddd4baf22de4fc11ba1b17b
3
+ metadata.gz: 7e2b39dc05f22e2052a6c8117adc4f221ca396ce58b268962fea84f4f71378c9
4
+ data.tar.gz: f850f03b0342b22ecaf473e685ebe389c55cff88b2e4598b60fa8981b855144e
5
5
  SHA512:
6
- metadata.gz: dcad2ba8c380fc9bbdbade55e6330391e9b920c614de552b1d0e5944cce7b8557bc9cbb448acb31ebe47a9a79d0a362225261301d4f78e1c194bf55edf12a6eb
7
- data.tar.gz: 1dcb60afdcf595ab87fdffd66b0a1895d48708d93c5a596fbeec4e8de1e6003b34b8f01a5996941669eccda085695b59f244d3215f93b9b15eada33077396dec
6
+ metadata.gz: c73eef9b3fcde6d9957ef135886ea8bebd7ac2cd977f8f4a78d0db6e31f645b1b69b51d0c84b236ca6754218adb82eb1b5e09732cc2985724a46f02aed69497b
7
+ data.tar.gz: 55b8485f9c80baaf7824e82e10ec896ce33d4cdb3046045be7a76e47e567f61c031ddf5a3608df565768ece1be8ba88b6affc3a86523cf2da0575708c8dd1bf8
@@ -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.parametermanager.v1 package.
76
- #
77
- # This class contains common configuration for all services
78
- # of the google.cloud.parametermanager.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
@@ -1354,8 +1354,6 @@ module Google
1354
1354
  # @return [::String,nil]
1355
1355
  # @!attribute [rw] credentials
1356
1356
  # Credentials to send with calls. You may provide any of the following types:
1357
- # * (`String`) The path to a service account key file in JSON format
1358
- # * (`Hash`) A service account key as a Hash
1359
1357
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1360
1358
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1361
1359
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1364,7 +1362,26 @@ module Google
1364
1362
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1365
1363
  # * (`nil`) indicating no credentials
1366
1364
  #
1367
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1365
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1366
+ # is deprecated. Providing an unvalidated credential configuration to
1367
+ # Google APIs can compromise the security of your systems and data.
1368
+ #
1369
+ # @example
1370
+ #
1371
+ # # The recommended way to provide credentials is to use the `make_creds` method
1372
+ # # on the appropriate credentials class for your environment.
1373
+ #
1374
+ # require "googleauth"
1375
+ #
1376
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1377
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1378
+ # )
1379
+ #
1380
+ # client = ::Google::Cloud::ParameterManager::V1::ParameterManager::Client.new do |config|
1381
+ # config.credentials = credentials
1382
+ # end
1383
+ #
1384
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1368
1385
  # external source for authentication to Google Cloud, you must validate it before
1369
1386
  # providing it to a Google API client library. Providing an unvalidated credential
1370
1387
  # 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 ParameterManager
23
23
  module V1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.5.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-parameter_manager-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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