Class: Google::Apis::MybusinessV3::LocationState
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::LocationState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/mybusiness_v3/classes.rb,
generated/google/apis/mybusiness_v3/representations.rb,
generated/google/apis/mybusiness_v3/representations.rb
Overview
Contains a set of booleans that reflect the state of a Location.
Instance Attribute Summary collapse
-
#can_delete ⇒ Boolean
(also: #can_delete?)
Indicates whether the location can be deleted using the Google My Business UI.
-
#can_update ⇒ Boolean
(also: #can_update?)
Indicates whether the location can be updated.
-
#is_duplicate ⇒ Boolean
(also: #is_duplicate?)
Indicates whether the location is a duplicate of another location.
-
#is_google_updated ⇒ Boolean
(also: #is_google_updated?)
Indicates whether the place ID associated with this location has updates.
-
#is_suspended ⇒ Boolean
(also: #is_suspended?)
Indicates whether the location is suspended.
-
#is_verified ⇒ Boolean
(also: #is_verified?)
Indicates whether the location is verified.
-
#needs_reverification ⇒ Boolean
(also: #needs_reverification?)
Indicates whether the location requires reverification.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationState
constructor
A new instance of LocationState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LocationState
Returns a new instance of LocationState
1245 1246 1247 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_delete ⇒ Boolean Also known as: can_delete?
Indicates whether the location can be deleted using the Google My Business
UI.
Corresponds to the JSON property canDelete
1196 1197 1198 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1196 def can_delete @can_delete end |
#can_update ⇒ Boolean Also known as: can_update?
Indicates whether the location can be updated.
Corresponds to the JSON property canUpdate
1203 1204 1205 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1203 def can_update @can_update end |
#is_duplicate ⇒ Boolean Also known as: is_duplicate?
Indicates whether the location is a duplicate of another location.
See metadata.duplicate for more information.
Corresponds to the JSON property isDuplicate
1211 1212 1213 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1211 def is_duplicate @is_duplicate end |
#is_google_updated ⇒ Boolean Also known as: is_google_updated?
Indicates whether the place ID associated with this location has updates.
Corresponds to the JSON property isGoogleUpdated
1218 1219 1220 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1218 def is_google_updated @is_google_updated end |
#is_suspended ⇒ Boolean Also known as: is_suspended?
Indicates whether the location is suspended.
Suspended locations are not visible to end users in Google products.
If you believe this was a mistake, see the help center article.
Corresponds to the JSON property isSuspended
1228 1229 1230 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1228 def is_suspended @is_suspended end |
#is_verified ⇒ Boolean Also known as: is_verified?
Indicates whether the location is verified.
Corresponds to the JSON property isVerified
1235 1236 1237 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1235 def is_verified @is_verified end |
#needs_reverification ⇒ Boolean Also known as: needs_reverification?
Indicates whether the location requires reverification.
Corresponds to the JSON property needsReverification
1242 1243 1244 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1242 def needs_reverification @needs_reverification end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1250 1251 1252 1253 1254 1255 1256 1257 1258 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1250 def update!(**args) @can_delete = args[:can_delete] if args.key?(:can_delete) @can_update = args[:can_update] if args.key?(:can_update) @is_duplicate = args[:is_duplicate] if args.key?(:is_duplicate) @is_google_updated = args[:is_google_updated] if args.key?(:is_google_updated) @is_suspended = args[:is_suspended] if args.key?(:is_suspended) @is_verified = args[:is_verified] if args.key?(:is_verified) @needs_reverification = args[:needs_reverification] if args.key?(:needs_reverification) end |