Skip to content

Commit 19b890e

Browse files
fix(multi): Fixed several issues with validating credential configs
1 parent 9426373 commit 19b890e

53 files changed

Lines changed: 78 additions & 78 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google-cloud-billing-budgets-v1beta1/lib/google/cloud/billing/budgets/v1beta1/budget_service/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,8 @@ class Configuration
787787

788788
config_attr :endpoint, nil, ::String, nil
789789
config_attr :credentials, nil do |value|
790-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
791-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
790+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
791+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
792792
allowed.any? { |klass| klass === value }
793793
end
794794
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-billing-budgets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Provides methods to view, create, and manage Cloud Billing budgets programmatica
77
Actual client classes for the various versions of this API are defined in
88
_versioned_ client gems, with names of the form `google-cloud-billing-budgets-v*`.
99
The gem `google-cloud-billing-budgets` is the main client library that brings the
10-
verisoned gems in as dependencies, and provides high-level methods for
10+
versioned gems in as dependencies, and provides high-level methods for
1111
constructing clients. More information on versioned clients can be found below
1212
in the section titled *Which client should I use?*.
1313

google-cloud-billing-v1/lib/google/cloud/billing/v1/cloud_billing/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,8 @@ class Configuration
14171417

14181418
config_attr :endpoint, nil, ::String, nil
14191419
config_attr :credentials, nil do |value|
1420-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1421-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1420+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1421+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
14221422
allowed.any? { |klass| klass === value }
14231423
end
14241424
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-billing-v1/lib/google/cloud/billing/v1/cloud_billing/rest/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ class Configuration
13401340

13411341
config_attr :endpoint, nil, ::String, nil
13421342
config_attr :credentials, nil do |value|
1343-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1343+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
13441344
allowed.any? { |klass| klass === value }
13451345
end
13461346
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-billing-v1/lib/google/cloud/billing/v1/cloud_catalog/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ class Configuration
497497

498498
config_attr :endpoint, nil, ::String, nil
499499
config_attr :credentials, nil do |value|
500-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
501-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
500+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
501+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
502502
allowed.any? { |klass| klass === value }
503503
end
504504
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-billing-v1/lib/google/cloud/billing/v1/cloud_catalog/rest/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ class Configuration
475475

476476
config_attr :endpoint, nil, ::String, nil
477477
config_attr :credentials, nil do |value|
478-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
479479
allowed.any? { |klass| klass === value }
480480
end
481481
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-billing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Allows developers to manage billing for their Google Cloud Platform projects pro
77
Actual client classes for the various versions of this API are defined in
88
_versioned_ client gems, with names of the form `google-cloud-billing-v*`.
99
The gem `google-cloud-billing` is the main client library that brings the
10-
verisoned gems in as dependencies, and provides high-level methods for
10+
versioned gems in as dependencies, and provides high-level methods for
1111
constructing clients. More information on versioned clients can be found below
1212
in the section titled *Which client should I use?*.
1313

google-cloud-binary_authorization-v1/lib/google/cloud/binary_authorization/v1/binauthz_management_service/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,8 @@ class Configuration
965965

966966
config_attr :endpoint, nil, ::String, nil
967967
config_attr :credentials, nil do |value|
968-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
969-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
968+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
969+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
970970
allowed.any? { |klass| klass === value }
971971
end
972972
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-binary_authorization-v1/lib/google/cloud/binary_authorization/v1/binauthz_management_service/rest/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ class Configuration
900900

901901
config_attr :endpoint, nil, ::String, nil
902902
config_attr :credentials, nil do |value|
903-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
903+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
904904
allowed.any? { |klass| klass === value }
905905
end
906906
config_attr :scope, nil, ::String, ::Array, nil

google-cloud-binary_authorization-v1/lib/google/cloud/binary_authorization/v1/system_policy/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ class Configuration
374374

375375
config_attr :endpoint, nil, ::String, nil
376376
config_attr :credentials, nil do |value|
377-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
378-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
377+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
378+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
379379
allowed.any? { |klass| klass === value }
380380
end
381381
config_attr :scope, nil, ::String, ::Array, nil

0 commit comments

Comments
 (0)