google-cloud-support-v2 1.5.0 → 1.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: 1ad18f8bef7d8dbe7947edc0553c285925c7939efadb45f60e745f420e80ac9d
4
- data.tar.gz: abad5224188cc124865b087f122280dbdbd4499c6919f45c4a6fec6230838d5f
3
+ metadata.gz: c63ea829d5ed57e9ecaab1a0f19abc195d1d7a9683fd00382710dfb781676067
4
+ data.tar.gz: 66fc1e9c1820456310894370eac95774c02de40853e6da5fd2ce97d9d2d16961
5
5
  SHA512:
6
- metadata.gz: c37ae5b3cbf338c12ee65db71dcaf33917222cc16dab675ef40127e170e6936d2cd1032a912026a1037f2e6d3de008631f0b946364f911f9ffa30bb6d1a0b645
7
- data.tar.gz: 8e4b586e452c75e183995bfa9dcc8643551253ba52f6ab7d5bcdf882281695f2d56c9a1f0e0f71fb7feabc27d078d0c1704f963f1b98299a7f2f2e0abaaaf9ce
6
+ metadata.gz: 406cc362d4ff7c1afffeecf064aee9a3b08e001871669dc7d6aa925cf3a2c92638594d45fbf72d768c05f03a1030317dfaba07f2ec7473591824507cdf9ca6c4
7
+ data.tar.gz: ac1aed9923b3ea9614113eb6f9a63c5af8528c60b95db8f2f157120476d2818091a71126908328c7c9fbd0e2b8c72ffd23e22fc1f778516dcce37746a24bea9a
@@ -326,8 +326,6 @@ module Google
326
326
  # @return [::String,nil]
327
327
  # @!attribute [rw] credentials
328
328
  # Credentials to send with calls. You may provide any of the following types:
329
- # * (`String`) The path to a service account key file in JSON format
330
- # * (`Hash`) A service account key as a Hash
331
329
  # * (`Google::Auth::Credentials`) A googleauth credentials object
332
330
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
333
331
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -336,7 +334,26 @@ module Google
336
334
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
337
335
  # * (`nil`) indicating no credentials
338
336
  #
339
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
337
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
338
+ # is deprecated. Providing an unvalidated credential configuration to
339
+ # Google APIs can compromise the security of your systems and data.
340
+ #
341
+ # @example
342
+ #
343
+ # # The recommended way to provide credentials is to use the `make_creds` method
344
+ # # on the appropriate credentials class for your environment.
345
+ #
346
+ # require "googleauth"
347
+ #
348
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
349
+ # json_key_io: ::File.open("/path/to/keyfile.json")
350
+ # )
351
+ #
352
+ # client = ::Google::Cloud::Support::V2::CaseAttachmentService::Client.new do |config|
353
+ # config.credentials = credentials
354
+ # end
355
+ #
356
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
340
357
  # external source for authentication to Google Cloud, you must validate it before
341
358
  # providing it to a Google API client library. Providing an unvalidated credential
342
359
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1044,8 +1044,6 @@ module Google
1044
1044
  # @return [::String,nil]
1045
1045
  # @!attribute [rw] credentials
1046
1046
  # Credentials to send with calls. You may provide any of the following types:
1047
- # * (`String`) The path to a service account key file in JSON format
1048
- # * (`Hash`) A service account key as a Hash
1049
1047
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1050
1048
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1051
1049
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1054,7 +1052,26 @@ module Google
1054
1052
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1055
1053
  # * (`nil`) indicating no credentials
1056
1054
  #
1057
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1055
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1056
+ # is deprecated. Providing an unvalidated credential configuration to
1057
+ # Google APIs can compromise the security of your systems and data.
1058
+ #
1059
+ # @example
1060
+ #
1061
+ # # The recommended way to provide credentials is to use the `make_creds` method
1062
+ # # on the appropriate credentials class for your environment.
1063
+ #
1064
+ # require "googleauth"
1065
+ #
1066
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1067
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1068
+ # )
1069
+ #
1070
+ # client = ::Google::Cloud::Support::V2::CaseService::Client.new do |config|
1071
+ # config.credentials = credentials
1072
+ # end
1073
+ #
1074
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1058
1075
  # external source for authentication to Google Cloud, you must validate it before
1059
1076
  # providing it to a Google API client library. Providing an unvalidated credential
1060
1077
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -410,8 +410,6 @@ module Google
410
410
  # @return [::String,nil]
411
411
  # @!attribute [rw] credentials
412
412
  # Credentials to send with calls. You may provide any of the following types:
413
- # * (`String`) The path to a service account key file in JSON format
414
- # * (`Hash`) A service account key as a Hash
415
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
416
414
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
417
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -420,7 +418,26 @@ module Google
420
418
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
421
419
  # * (`nil`) indicating no credentials
422
420
  #
423
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
421
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
422
+ # is deprecated. Providing an unvalidated credential configuration to
423
+ # Google APIs can compromise the security of your systems and data.
424
+ #
425
+ # @example
426
+ #
427
+ # # The recommended way to provide credentials is to use the `make_creds` method
428
+ # # on the appropriate credentials class for your environment.
429
+ #
430
+ # require "googleauth"
431
+ #
432
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
433
+ # json_key_io: ::File.open("/path/to/keyfile.json")
434
+ # )
435
+ #
436
+ # client = ::Google::Cloud::Support::V2::CommentService::Client.new do |config|
437
+ # config.credentials = credentials
438
+ # end
439
+ #
440
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
424
441
  # external source for authentication to Google Cloud, you must validate it before
425
442
  # providing it to a Google API client library. Providing an unvalidated credential
426
443
  # 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 Support
23
23
  module V2
24
- VERSION = "1.5.0"
24
+ VERSION = "1.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-support-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC