google-cloud-dataproc-v1 1.9.0 → 1.9.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: 7ab27aae6b0e5d90eed957ce9bb30333a2a3ffd1062bfb5df5237bf828f27a0c
4
- data.tar.gz: ae1e860969bdb4bc1c5148644281398b060b0e49c9b506865248de00711207ac
3
+ metadata.gz: 616aba998934a9ac437f00615249b981157f8ddc19f566d1cf66b17286edea3a
4
+ data.tar.gz: 2755856b15af1787461f3f4326aeccf002063edee90645dd42b424224c8abd76
5
5
  SHA512:
6
- metadata.gz: aa9423f24c290f38961078504bc61a914c2aac034484db0f6480be3516341f989165659f1aeca1838eb21e55dc696757cbb636d0c13dac477a218fd51f09e297
7
- data.tar.gz: 5820b6c743136a0dc32ea70e779f60abfe6270d20af001ebc54c1da1eb970b217f06b5047ab84a6738f636405db9ce704043f69b0c2a1b690d9ad5231f8a7dba
6
+ metadata.gz: 506e5154d250225d867853b80fb9fe5755fa994971bd4ec8191cb51f66256dfb8091f13b5a9a9e899a9a73e3d3ee9b1431f0738c2ae241dbfe83f16efdb9c6c8
7
+ data.tar.gz: 14353dc371498f4274c950c443b7f366bdc5f861f326179e1306dbb8765de2792234d636ec70a80420bc0c1da53783005be65212465aa832f5219960d8710cd9
@@ -733,8 +733,6 @@ module Google
733
733
  # @return [::String,nil]
734
734
  # @!attribute [rw] credentials
735
735
  # Credentials to send with calls. You may provide any of the following types:
736
- # * (`String`) The path to a service account key file in JSON format
737
- # * (`Hash`) A service account key as a Hash
738
736
  # * (`Google::Auth::Credentials`) A googleauth credentials object
739
737
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
740
738
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -743,7 +741,26 @@ module Google
743
741
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
744
742
  # * (`nil`) indicating no credentials
745
743
  #
746
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
744
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
745
+ # is deprecated. Providing an unvalidated credential configuration to
746
+ # Google APIs can compromise the security of your systems and data.
747
+ #
748
+ # @example
749
+ #
750
+ # # The recommended way to provide credentials is to use the `make_creds` method
751
+ # # on the appropriate credentials class for your environment.
752
+ #
753
+ # require "googleauth"
754
+ #
755
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
756
+ # json_key_io: ::File.open("/path/to/keyfile.json")
757
+ # )
758
+ #
759
+ # client = ::Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Client.new do |config|
760
+ # config.credentials = credentials
761
+ # end
762
+ #
763
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
747
764
  # external source for authentication to Google Cloud, you must validate it before
748
765
  # providing it to a Google API client library. Providing an unvalidated credential
749
766
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -655,8 +655,6 @@ module Google
655
655
  # @return [::String,nil]
656
656
  # @!attribute [rw] credentials
657
657
  # Credentials to send with calls. You may provide any of the following types:
658
- # * (`String`) The path to a service account key file in JSON format
659
- # * (`Hash`) A service account key as a Hash
660
658
  # * (`Google::Auth::Credentials`) A googleauth credentials object
661
659
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
662
660
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -665,7 +663,26 @@ module Google
665
663
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
666
664
  # * (`nil`) indicating no credentials
667
665
  #
668
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
666
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
667
+ # is deprecated. Providing an unvalidated credential configuration to
668
+ # Google APIs can compromise the security of your systems and data.
669
+ #
670
+ # @example
671
+ #
672
+ # # The recommended way to provide credentials is to use the `make_creds` method
673
+ # # on the appropriate credentials class for your environment.
674
+ #
675
+ # require "googleauth"
676
+ #
677
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
678
+ # json_key_io: ::File.open("/path/to/keyfile.json")
679
+ # )
680
+ #
681
+ # client = ::Google::Cloud::Dataproc::V1::BatchController::Client.new do |config|
682
+ # config.credentials = credentials
683
+ # end
684
+ #
685
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
669
686
  # external source for authentication to Google Cloud, you must validate it before
670
687
  # providing it to a Google API client library. Providing an unvalidated credential
671
688
  # 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.
@@ -1294,8 +1294,6 @@ module Google
1294
1294
  # @return [::String,nil]
1295
1295
  # @!attribute [rw] credentials
1296
1296
  # Credentials to send with calls. You may provide any of the following types:
1297
- # * (`String`) The path to a service account key file in JSON format
1298
- # * (`Hash`) A service account key as a Hash
1299
1297
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1300
1298
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1301
1299
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1304,7 +1302,26 @@ module Google
1304
1302
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1305
1303
  # * (`nil`) indicating no credentials
1306
1304
  #
1307
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1305
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1306
+ # is deprecated. Providing an unvalidated credential configuration to
1307
+ # Google APIs can compromise the security of your systems and data.
1308
+ #
1309
+ # @example
1310
+ #
1311
+ # # The recommended way to provide credentials is to use the `make_creds` method
1312
+ # # on the appropriate credentials class for your environment.
1313
+ #
1314
+ # require "googleauth"
1315
+ #
1316
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1317
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1318
+ # )
1319
+ #
1320
+ # client = ::Google::Cloud::Dataproc::V1::ClusterController::Client.new do |config|
1321
+ # config.credentials = credentials
1322
+ # end
1323
+ #
1324
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1308
1325
  # external source for authentication to Google Cloud, you must validate it before
1309
1326
  # providing it to a Google API client library. Providing an unvalidated credential
1310
1327
  # 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.
@@ -1025,8 +1025,6 @@ module Google
1025
1025
  # @return [::String,nil]
1026
1026
  # @!attribute [rw] credentials
1027
1027
  # Credentials to send with calls. You may provide any of the following types:
1028
- # * (`String`) The path to a service account key file in JSON format
1029
- # * (`Hash`) A service account key as a Hash
1030
1028
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1031
1029
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1032
1030
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1035,7 +1033,26 @@ module Google
1035
1033
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1036
1034
  # * (`nil`) indicating no credentials
1037
1035
  #
1038
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1036
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1037
+ # is deprecated. Providing an unvalidated credential configuration to
1038
+ # Google APIs can compromise the security of your systems and data.
1039
+ #
1040
+ # @example
1041
+ #
1042
+ # # The recommended way to provide credentials is to use the `make_creds` method
1043
+ # # on the appropriate credentials class for your environment.
1044
+ #
1045
+ # require "googleauth"
1046
+ #
1047
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1048
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1049
+ # )
1050
+ #
1051
+ # client = ::Google::Cloud::Dataproc::V1::JobController::Client.new do |config|
1052
+ # config.credentials = credentials
1053
+ # end
1054
+ #
1055
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1039
1056
  # external source for authentication to Google Cloud, you must validate it before
1040
1057
  # providing it to a Google API client library. Providing an unvalidated credential
1041
1058
  # 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.
@@ -583,8 +583,6 @@ module Google
583
583
  # @return [::String,nil]
584
584
  # @!attribute [rw] credentials
585
585
  # Credentials to send with calls. You may provide any of the following types:
586
- # * (`String`) The path to a service account key file in JSON format
587
- # * (`Hash`) A service account key as a Hash
588
586
  # * (`Google::Auth::Credentials`) A googleauth credentials object
589
587
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
590
588
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -593,7 +591,26 @@ module Google
593
591
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
594
592
  # * (`nil`) indicating no credentials
595
593
  #
596
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
594
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
595
+ # is deprecated. Providing an unvalidated credential configuration to
596
+ # Google APIs can compromise the security of your systems and data.
597
+ #
598
+ # @example
599
+ #
600
+ # # The recommended way to provide credentials is to use the `make_creds` method
601
+ # # on the appropriate credentials class for your environment.
602
+ #
603
+ # require "googleauth"
604
+ #
605
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
606
+ # json_key_io: ::File.open("/path/to/keyfile.json")
607
+ # )
608
+ #
609
+ # client = ::Google::Cloud::Dataproc::V1::NodeGroupController::Client.new do |config|
610
+ # config.credentials = credentials
611
+ # end
612
+ #
613
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
597
614
  # external source for authentication to Google Cloud, you must validate it before
598
615
  # providing it to a Google API client library. Providing an unvalidated credential
599
616
  # 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.
@@ -772,8 +772,6 @@ module Google
772
772
  # @return [::String,nil]
773
773
  # @!attribute [rw] credentials
774
774
  # Credentials to send with calls. You may provide any of the following types:
775
- # * (`String`) The path to a service account key file in JSON format
776
- # * (`Hash`) A service account key as a Hash
777
775
  # * (`Google::Auth::Credentials`) A googleauth credentials object
778
776
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
779
777
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -782,7 +780,26 @@ module Google
782
780
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
783
781
  # * (`nil`) indicating no credentials
784
782
  #
785
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
783
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
784
+ # is deprecated. Providing an unvalidated credential configuration to
785
+ # Google APIs can compromise the security of your systems and data.
786
+ #
787
+ # @example
788
+ #
789
+ # # The recommended way to provide credentials is to use the `make_creds` method
790
+ # # on the appropriate credentials class for your environment.
791
+ #
792
+ # require "googleauth"
793
+ #
794
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
795
+ # json_key_io: ::File.open("/path/to/keyfile.json")
796
+ # )
797
+ #
798
+ # client = ::Google::Cloud::Dataproc::V1::SessionController::Client.new do |config|
799
+ # config.credentials = credentials
800
+ # end
801
+ #
802
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
786
803
  # external source for authentication to Google Cloud, you must validate it before
787
804
  # providing it to a Google API client library. Providing an unvalidated credential
788
805
  # 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.
@@ -678,8 +678,6 @@ module Google
678
678
  # @return [::String,nil]
679
679
  # @!attribute [rw] credentials
680
680
  # Credentials to send with calls. You may provide any of the following types:
681
- # * (`String`) The path to a service account key file in JSON format
682
- # * (`Hash`) A service account key as a Hash
683
681
  # * (`Google::Auth::Credentials`) A googleauth credentials object
684
682
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
685
683
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -688,7 +686,26 @@ module Google
688
686
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
689
687
  # * (`nil`) indicating no credentials
690
688
  #
691
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
689
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
690
+ # is deprecated. Providing an unvalidated credential configuration to
691
+ # Google APIs can compromise the security of your systems and data.
692
+ #
693
+ # @example
694
+ #
695
+ # # The recommended way to provide credentials is to use the `make_creds` method
696
+ # # on the appropriate credentials class for your environment.
697
+ #
698
+ # require "googleauth"
699
+ #
700
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
701
+ # json_key_io: ::File.open("/path/to/keyfile.json")
702
+ # )
703
+ #
704
+ # client = ::Google::Cloud::Dataproc::V1::SessionTemplateController::Client.new do |config|
705
+ # config.credentials = credentials
706
+ # end
707
+ #
708
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
692
709
  # external source for authentication to Google Cloud, you must validate it before
693
710
  # providing it to a Google API client library. Providing an unvalidated credential
694
711
  # 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 Dataproc
23
23
  module V1
24
- VERSION = "1.9.0"
24
+ VERSION = "1.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1054,8 +1054,6 @@ module Google
1054
1054
  # @return [::String,nil]
1055
1055
  # @!attribute [rw] credentials
1056
1056
  # Credentials to send with calls. You may provide any of the following types:
1057
- # * (`String`) The path to a service account key file in JSON format
1058
- # * (`Hash`) A service account key as a Hash
1059
1057
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1060
1058
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1061
1059
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1064,7 +1062,26 @@ module Google
1064
1062
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1065
1063
  # * (`nil`) indicating no credentials
1066
1064
  #
1067
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1065
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1066
+ # is deprecated. Providing an unvalidated credential configuration to
1067
+ # Google APIs can compromise the security of your systems and data.
1068
+ #
1069
+ # @example
1070
+ #
1071
+ # # The recommended way to provide credentials is to use the `make_creds` method
1072
+ # # on the appropriate credentials class for your environment.
1073
+ #
1074
+ # require "googleauth"
1075
+ #
1076
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1077
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1078
+ # )
1079
+ #
1080
+ # client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
1081
+ # config.credentials = credentials
1082
+ # end
1083
+ #
1084
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1068
1085
  # external source for authentication to Google Cloud, you must validate it before
1069
1086
  # providing it to a Google API client library. Providing an unvalidated credential
1070
1087
  # 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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataproc-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC