lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb in google-cloud-dataproc-v1beta2-0.5.0 vs lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb in google-cloud-dataproc-v1beta2-0.6.0

- old
+ new

@@ -59,69 +59,69 @@ @configure ||= begin namespace = ["Google", "Cloud", "Dataproc", "V1beta2"] 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.rpcs.create_workflow_template.timeout = 600.0 default_config.rpcs.create_workflow_template.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [14] } default_config.rpcs.get_workflow_template.timeout = 600.0 default_config.rpcs.get_workflow_template.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [4, 13, 14] } default_config.rpcs.instantiate_workflow_template.timeout = 600.0 default_config.rpcs.instantiate_workflow_template.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [14] } default_config.rpcs.instantiate_inline_workflow_template.timeout = 600.0 default_config.rpcs.instantiate_inline_workflow_template.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [14] } default_config.rpcs.update_workflow_template.timeout = 600.0 default_config.rpcs.update_workflow_template.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [14] } default_config.rpcs.list_workflow_templates.timeout = 600.0 default_config.rpcs.list_workflow_templates.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [4, 13, 14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [4, 13, 14] } default_config.rpcs.delete_workflow_template.timeout = 600.0 default_config.rpcs.delete_workflow_template.retry_policy = { initial_delay: 0.1, - max_delay: 60.0, - multiplier: 1.3, - retry_codes: [14] + max_delay: 60.0, + multiplier: 1.3, + retry_codes: [14] } default_config end yield @configure if block_given? @@ -186,11 +186,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 @@ -929,11 +929,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 @@ -950,11 +950,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 ## @@ -1011,22 +1011,22 @@ # attr_reader :delete_workflow_template # @private def initialize parent_rpcs = nil - create_workflow_template_config = parent_rpcs&.create_workflow_template if parent_rpcs&.respond_to? :create_workflow_template + create_workflow_template_config = parent_rpcs.create_workflow_template if parent_rpcs.respond_to? :create_workflow_template @create_workflow_template = ::Gapic::Config::Method.new create_workflow_template_config - get_workflow_template_config = parent_rpcs&.get_workflow_template if parent_rpcs&.respond_to? :get_workflow_template + get_workflow_template_config = parent_rpcs.get_workflow_template if parent_rpcs.respond_to? :get_workflow_template @get_workflow_template = ::Gapic::Config::Method.new get_workflow_template_config - instantiate_workflow_template_config = parent_rpcs&.instantiate_workflow_template if parent_rpcs&.respond_to? :instantiate_workflow_template + instantiate_workflow_template_config = parent_rpcs.instantiate_workflow_template if parent_rpcs.respond_to? :instantiate_workflow_template @instantiate_workflow_template = ::Gapic::Config::Method.new instantiate_workflow_template_config - instantiate_inline_workflow_template_config = parent_rpcs&.instantiate_inline_workflow_template if parent_rpcs&.respond_to? :instantiate_inline_workflow_template + instantiate_inline_workflow_template_config = parent_rpcs.instantiate_inline_workflow_template if parent_rpcs.respond_to? :instantiate_inline_workflow_template @instantiate_inline_workflow_template = ::Gapic::Config::Method.new instantiate_inline_workflow_template_config - update_workflow_template_config = parent_rpcs&.update_workflow_template if parent_rpcs&.respond_to? :update_workflow_template + update_workflow_template_config = parent_rpcs.update_workflow_template if parent_rpcs.respond_to? :update_workflow_template @update_workflow_template = ::Gapic::Config::Method.new update_workflow_template_config - list_workflow_templates_config = parent_rpcs&.list_workflow_templates if parent_rpcs&.respond_to? :list_workflow_templates + list_workflow_templates_config = parent_rpcs.list_workflow_templates if parent_rpcs.respond_to? :list_workflow_templates @list_workflow_templates = ::Gapic::Config::Method.new list_workflow_templates_config - delete_workflow_template_config = parent_rpcs&.delete_workflow_template if parent_rpcs&.respond_to? :delete_workflow_template + delete_workflow_template_config = parent_rpcs.delete_workflow_template if parent_rpcs.respond_to? :delete_workflow_template @delete_workflow_template = ::Gapic::Config::Method.new delete_workflow_template_config yield self if block_given? end end