Class: Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessbusinesscallsV1::BusinessCallsSettings
- 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
-
#calls_state ⇒ String
Required.
-
#consent_time ⇒ String
Input only.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BusinessCallsSettings
constructor
A new instance of BusinessCallsSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_state ⇒ String
Required. The state of this location's enrollment in Business calls.
Corresponds to the JSON property callsState
127 128 129 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 127 def calls_state @calls_state end |
#consent_time ⇒ String
Input only. Time when the end user provided consent to the API user to enable
business calls.
Corresponds to the JSON property consentTime
133 134 135 |
# File 'lib/google/apis/mybusinessbusinesscalls_v1/classes.rb', line 133 def @consent_time end |
#name ⇒ String
Required. The resource name of the calls settings. Format: locations/location
/businesscallssettings
Corresponds to the JSON property name
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 |