lib/google/cloud/run/v2/jobs/rest/operations.rb in google-cloud-run-v2-0.9.0 vs lib/google/cloud/run/v2/jobs/rest/operations.rb in google-cloud-run-v2-0.9.1
- old
+ new
@@ -519,11 +519,13 @@
# @return [::String]
#
class Configuration
extend ::Gapic::Config
- config_attr :endpoint, "run.googleapis.com", ::String
+ DEFAULT_ENDPOINT = "run.googleapis.com"
+
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
config_attr :credentials, nil do |value|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
allowed.any? { |klass| klass === value }
end
config_attr :scope, nil, ::String, ::Array, nil
@@ -647,11 +649,11 @@
def list_operations request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -685,11 +687,11 @@
def get_operation request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -723,11 +725,11 @@
def delete_operation request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -761,11 +763,11 @@
def cancel_operation request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(
@@ -799,10 +801,10 @@
def wait_operation request_pb, options = nil
raise ::ArgumentError, "request must be provided" if request_pb.nil?
verb, uri, query_string_params, body = OperationsServiceStub.transcode_wait_operation_request request_pb
query_string_params = if query_string_params.any?
- query_string_params.to_h { |p| p.split("=", 2) }
+ query_string_params.to_h { |p| p.split "=", 2 }
else
{}
end
response = @client_stub.make_http_request(