lib/google/apis/securitycenter_v1beta1/service.rb in google-apis-securitycenter_v1beta1-0.69.0 vs lib/google/apis/securitycenter_v1beta1/service.rb in google-apis-securitycenter_v1beta1-0.70.0

- old
+ new

@@ -31,10 +31,12 @@ # Securitycenter = Google::Apis::SecuritycenterV1beta1 # Alias the module # service = Securitycenter::SecurityCommandCenterService.new # # @see https://cloud.google.com/security-command-center class SecurityCommandCenterService < Google::Apis::Core::BaseService + DEFAULT_ENDPOINT_TEMPLATE = "https://securitycenter.$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 @@ -42,10 +44,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://securitycenter.googleapis.com/', '', + super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-securitycenter_v1beta1', client_version: Google::Apis::SecuritycenterV1beta1::GEM_VERSION) @batch_path = 'batch' end