lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.55.0 vs lib/google/apis/run_v2/service.rb in google-apis-run_v2-0.56.0
- old
+ new
@@ -33,10 +33,12 @@
# Run = Google::Apis::RunV2 # Alias the module
# service = Run::CloudRunService.new
#
# @see https://cloud.google.com/run/
class CloudRunService < Google::Apis::Core::BaseService
+ DEFAULT_ENDPOINT_TEMPLATE = "https://run.$UNIVERSE_DOMAIN$/"
+
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
@@ -44,10 +46,10 @@
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
- super('https://run.googleapis.com/', '',
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
client_name: 'google-apis-run_v2',
client_version: Google::Apis::RunV2::GEM_VERSION)
@batch_path = 'batch'
end