google-analytics-admin-v1alpha 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -188,7 +188,7 @@ module Google
188
188
  credentials = @config.credentials
189
189
  # Use self-signed JWT if the endpoint is unchanged from default,
190
190
  # but only if the default endpoint does not have a region prefix.
191
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
191
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
192
192
  !@config.endpoint.split(".").first.include?("-")
193
193
  credentials ||= Credentials.default scope: @config.scope,
194
194
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -11432,7 +11432,9 @@ module Google
11432
11432
  class Configuration
11433
11433
  extend ::Gapic::Config
11434
11434
 
11435
- config_attr :endpoint, "analyticsadmin.googleapis.com", ::String
11435
+ DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com"
11436
+
11437
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
11436
11438
  config_attr :credentials, nil do |value|
11437
11439
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
11438
11440
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -184,7 +184,7 @@ module Google
184
184
  credentials = @config.credentials
185
185
  # Use self-signed JWT if the endpoint is unchanged from default,
186
186
  # but only if the default endpoint does not have a region prefix.
187
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
187
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
188
188
  !@config.endpoint.split(".").first.include?("-")
189
189
  credentials ||= Credentials.default scope: @config.scope,
190
190
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -8604,7 +8604,9 @@ module Google
8604
8604
  class Configuration
8605
8605
  extend ::Gapic::Config
8606
8606
 
8607
- config_attr :endpoint, "analyticsadmin.googleapis.com", ::String
8607
+ DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com"
8608
+
8609
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
8608
8610
  config_attr :credentials, nil do |value|
8609
8611
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
8610
8612
  allowed.any? { |klass| klass === value }