lib/google/apis/displayvideo_v3/service.rb in google-apis-displayvideo_v3-0.3.0 vs lib/google/apis/displayvideo_v3/service.rb in google-apis-displayvideo_v3-0.4.0
- old
+ new
@@ -32,10 +32,12 @@
# Displayvideo = Google::Apis::DisplayvideoV3 # Alias the module
# service = Displayvideo::DisplayVideoService.new
#
# @see https://developers.google.com/display-video/
class DisplayVideoService < Google::Apis::Core::BaseService
+ DEFAULT_ENDPOINT_TEMPLATE = "https://displayvideo.$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
@@ -43,10 +45,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://displayvideo.googleapis.com/', '',
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
client_name: 'google-apis-displayvideo_v3',
client_version: Google::Apis::DisplayvideoV3::GEM_VERSION)
@batch_path = 'batch'
end