lib/google/iam/v2/policies/rest/operations.rb in google-iam-v2-0.3.0 vs lib/google/iam/v2/policies/rest/operations.rb in google-iam-v2-0.3.1
- old
+ new
@@ -443,11 +443,13 @@
# @return [::String]
#
class Configuration
extend ::Gapic::Config
- config_attr :endpoint, "iam.googleapis.com", ::String
+ DEFAULT_ENDPOINT = "iam.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
@@ -564,11 +566,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(
@@ -602,11 +604,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(
@@ -640,11 +642,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(
@@ -678,10 +680,10 @@
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(