lib/google/cloud/domains/v1/domains/rest/operations.rb in google-cloud-domains-v1-0.3.0 vs lib/google/cloud/domains/v1/domains/rest/operations.rb in google-cloud-domains-v1-0.4.0
- old
+ new
@@ -409,13 +409,13 @@
# @!attribute [rw] credentials
# Credentials to send with calls. You may provide any of the following types:
# * (`String`) The path to a service account key file in JSON format
# * (`Hash`) A service account key as a Hash
# * (`Google::Auth::Credentials`) A googleauth credentials object
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
# * (`nil`) indicating no credentials
# @return [::Object]
# @!attribute [rw] scope
# The OAuth scopes
# @return [::Array<::String>]
@@ -444,11 +444,13 @@
# @return [::String]
#
class Configuration
extend ::Gapic::Config
- config_attr :endpoint, "domains.googleapis.com", ::String
+ DEFAULT_ENDPOINT = "domains.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
@@ -565,11 +567,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(
@@ -603,11 +605,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(
@@ -641,11 +643,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(
@@ -679,10 +681,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(