lib/google/cloud/domains/v1beta1/domains/client.rb in google-cloud-domains-v1beta1-0.1.0 vs lib/google/cloud/domains/v1beta1/domains/client.rb in google-cloud-domains-v1beta1-0.2.0

- old
+ new

@@ -58,11 +58,11 @@ @configure ||= begin namespace = ["Google", "Cloud", "Domains", "V1beta1"] parent_config = while namespace.any? parent_name = namespace.join "::" parent_const = const_get parent_name - break parent_const.configure if parent_const&.respond_to? :configure + break parent_const.configure if parent_const.respond_to? :configure namespace.pop end default_config = Client::Configuration.new parent_config default_config @@ -129,11 +129,11 @@ # Use self-signed JWT if the scope and endpoint are unchanged from default, # but only if the default endpoint does not have a region prefix. enable_self_signed_jwt = @config.scope == Client.configure.scope && @config.endpoint == Client.configure.endpoint && !@config.endpoint.split(".").first.include?("-") - credentials ||= Credentials.default scope: @config.scope, + credentials ||= Credentials.default scope: @config.scope, enable_self_signed_jwt: enable_self_signed_jwt if credentials.is_a?(String) || credentials.is_a?(Hash) credentials = Credentials.new credentials, scope: @config.scope end @quota_project_id = @config.quota_project @@ -1254,11 +1254,11 @@ allowed.any? { |klass| klass === value } end config_attr :scope, nil, ::String, ::Array, nil config_attr :lib_name, nil, ::String, nil config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil) + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) config_attr :interceptors, nil, ::Array, nil config_attr :timeout, nil, ::Numeric, nil config_attr :metadata, nil, ::Hash, nil config_attr :retry_policy, nil, ::Hash, ::Proc, nil config_attr :quota_project, nil, ::String, nil @@ -1275,11 +1275,11 @@ # @return [Rpcs] # def rpcs @rpcs ||= begin parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs) + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) Rpcs.new parent_rpcs end end ## @@ -1366,34 +1366,34 @@ # attr_reader :reset_authorization_code # @private def initialize parent_rpcs = nil - search_domains_config = parent_rpcs&.search_domains if parent_rpcs&.respond_to? :search_domains + search_domains_config = parent_rpcs.search_domains if parent_rpcs.respond_to? :search_domains @search_domains = ::Gapic::Config::Method.new search_domains_config - retrieve_register_parameters_config = parent_rpcs&.retrieve_register_parameters if parent_rpcs&.respond_to? :retrieve_register_parameters + retrieve_register_parameters_config = parent_rpcs.retrieve_register_parameters if parent_rpcs.respond_to? :retrieve_register_parameters @retrieve_register_parameters = ::Gapic::Config::Method.new retrieve_register_parameters_config - register_domain_config = parent_rpcs&.register_domain if parent_rpcs&.respond_to? :register_domain + register_domain_config = parent_rpcs.register_domain if parent_rpcs.respond_to? :register_domain @register_domain = ::Gapic::Config::Method.new register_domain_config - list_registrations_config = parent_rpcs&.list_registrations if parent_rpcs&.respond_to? :list_registrations + list_registrations_config = parent_rpcs.list_registrations if parent_rpcs.respond_to? :list_registrations @list_registrations = ::Gapic::Config::Method.new list_registrations_config - get_registration_config = parent_rpcs&.get_registration if parent_rpcs&.respond_to? :get_registration + get_registration_config = parent_rpcs.get_registration if parent_rpcs.respond_to? :get_registration @get_registration = ::Gapic::Config::Method.new get_registration_config - update_registration_config = parent_rpcs&.update_registration if parent_rpcs&.respond_to? :update_registration + update_registration_config = parent_rpcs.update_registration if parent_rpcs.respond_to? :update_registration @update_registration = ::Gapic::Config::Method.new update_registration_config - configure_management_settings_config = parent_rpcs&.configure_management_settings if parent_rpcs&.respond_to? :configure_management_settings + configure_management_settings_config = parent_rpcs.configure_management_settings if parent_rpcs.respond_to? :configure_management_settings @configure_management_settings = ::Gapic::Config::Method.new configure_management_settings_config - configure_dns_settings_config = parent_rpcs&.configure_dns_settings if parent_rpcs&.respond_to? :configure_dns_settings + configure_dns_settings_config = parent_rpcs.configure_dns_settings if parent_rpcs.respond_to? :configure_dns_settings @configure_dns_settings = ::Gapic::Config::Method.new configure_dns_settings_config - configure_contact_settings_config = parent_rpcs&.configure_contact_settings if parent_rpcs&.respond_to? :configure_contact_settings + configure_contact_settings_config = parent_rpcs.configure_contact_settings if parent_rpcs.respond_to? :configure_contact_settings @configure_contact_settings = ::Gapic::Config::Method.new configure_contact_settings_config - export_registration_config = parent_rpcs&.export_registration if parent_rpcs&.respond_to? :export_registration + export_registration_config = parent_rpcs.export_registration if parent_rpcs.respond_to? :export_registration @export_registration = ::Gapic::Config::Method.new export_registration_config - delete_registration_config = parent_rpcs&.delete_registration if parent_rpcs&.respond_to? :delete_registration + delete_registration_config = parent_rpcs.delete_registration if parent_rpcs.respond_to? :delete_registration @delete_registration = ::Gapic::Config::Method.new delete_registration_config - retrieve_authorization_code_config = parent_rpcs&.retrieve_authorization_code if parent_rpcs&.respond_to? :retrieve_authorization_code + retrieve_authorization_code_config = parent_rpcs.retrieve_authorization_code if parent_rpcs.respond_to? :retrieve_authorization_code @retrieve_authorization_code = ::Gapic::Config::Method.new retrieve_authorization_code_config - reset_authorization_code_config = parent_rpcs&.reset_authorization_code if parent_rpcs&.respond_to? :reset_authorization_code + reset_authorization_code_config = parent_rpcs.reset_authorization_code if parent_rpcs.respond_to? :reset_authorization_code @reset_authorization_code = ::Gapic::Config::Method.new reset_authorization_code_config yield self if block_given? end end