Class: Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/mybusinessbusinesscalls_v1/classes.rb,
lib/google/apis/mybusinessbusinesscalls_v1/representations.rb,
lib/google/apis/mybusinessbusinesscalls_v1/representations.rb

Overview

Business calls settings for a location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BusinessCallsSettings

Returns a new instance of BusinessCallsSettings.



141
142
143
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 141

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#calls_stateString

Required. The state of this location's enrollment in Business calls. Corresponds to the JSON property callsState

Returns:

  • (String)


127
128
129
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 127

def calls_state
  @calls_state
end

Input only. Time when the end user provided consent to the API user to enable business calls. Corresponds to the JSON property consentTime

Returns:

  • (String)


133
134
135
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 133

def consent_time
  @consent_time
end

#nameString

Required. The resource name of the calls settings. Format: locations/location /businesscallssettings Corresponds to the JSON property name

Returns:

  • (String)


139
140
141
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 139

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



146
147
148
149
150
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 146

def update!(**args)
  @calls_state = args[:calls_state] if args.key?(:calls_state)
  @consent_time = args[:consent_time] if args.key?(:consent_time)
  @name = args[:name] if args.key?(:name)
end