google-cloud-notebooks-v2 1.3.0 → 1.3.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: ca9541c6fcbfa711049e3f26bbfb4c5300cad085054bc035368357353f2cba0d
4
- data.tar.gz: cbd9eeabd0e36cd9beed5ae146cb96eb0f623b6671097927520559a1c15cfce9
3
+ metadata.gz: 892a2f313a31f3352589979f36af1520cf9607302ee31724c044023749ab2c0f
4
+ data.tar.gz: 4f3af3540bacf198211bd7eadd64b086daf64b3cf42957a33e1f5d0663ca7d85
5
5
  SHA512:
6
- metadata.gz: 36eb69f9a21b65cc0c558ca8ac386df672a4598b1b8d665892c4ac4c44c3a034a315e023caeb6e91eeb6d273858102e1c7dccac21fdcb3194a33a6aa2275e713
7
- data.tar.gz: b9593b3aeafb8c4671de691059ff6bdfbb9391045aaa72b2962f211548a6a1c69a5c0169a531d715ef2c55b719d519ee22511cce2f54dc840b91f7dcf14968c6
6
+ metadata.gz: fc1b390be363a1e466feabce24320aa6263078e99dd064195c7b7d4dd64bd3a589ac169b96e3e90f2126ad0d4d59fd34707c862a7298b1f2f7c0f2c72a03f7f0
7
+ data.tar.gz: e055e9e9492b8af34f7c4960f242ae832c6d9027c1114f99f9eb069b75643294dc108b55c69b3e3c38c18c0eb4b2e2ec77b0c0ad280e4f62881bbc3536b681b5
@@ -1434,8 +1434,6 @@ module Google
1434
1434
  # @return [::String,nil]
1435
1435
  # @!attribute [rw] credentials
1436
1436
  # Credentials to send with calls. You may provide any of the following types:
1437
- # * (`String`) The path to a service account key file in JSON format
1438
- # * (`Hash`) A service account key as a Hash
1439
1437
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1440
1438
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1441
1439
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1444,7 +1442,26 @@ module Google
1444
1442
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1445
1443
  # * (`nil`) indicating no credentials
1446
1444
  #
1447
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1445
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1446
+ # is deprecated. Providing an unvalidated credential configuration to
1447
+ # Google APIs can compromise the security of your systems and data.
1448
+ #
1449
+ # @example
1450
+ #
1451
+ # # The recommended way to provide credentials is to use the `make_creds` method
1452
+ # # on the appropriate credentials class for your environment.
1453
+ #
1454
+ # require "googleauth"
1455
+ #
1456
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1457
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1458
+ # )
1459
+ #
1460
+ # client = ::Google::Cloud::Notebooks::V2::NotebookService::Client.new do |config|
1461
+ # config.credentials = credentials
1462
+ # end
1463
+ #
1464
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1448
1465
  # external source for authentication to Google Cloud, you must validate it before
1449
1466
  # providing it to a Google API client library. Providing an unvalidated credential
1450
1467
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # 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 Notebooks
23
23
  module V2
24
- VERSION = "1.3.0"
24
+ VERSION = "1.3.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-notebooks-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC