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
1269 1270 1271 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1269 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
1252 1253 1254 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1252 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
1244 1245 1246 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1244 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
1227 1228 1229 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1227 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
1219 1220 1221 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1219 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
1237 1238 1239 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1237 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
1259 1260 1261 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1259 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
1266 1267 1268 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1266 def needs_reverification @needs_reverification end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1274 1275 1276 1277 1278 1279 1280 1281 1282 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1274 def update!(**args) @is_google_updated = args[:is_google_updated] if args.key?(:is_google_updated) @is_duplicate = args[:is_duplicate] if args.key?(:is_duplicate) @is_suspended = args[:is_suspended] if args.key?(:is_suspended) @can_update = args[:can_update] if args.key?(:can_update) @can_delete = args[:can_delete] if args.key?(:can_delete) @is_verified = args[:is_verified] if args.key?(:is_verified) @needs_reverification = args[:needs_reverification] if args.key?(:needs_reverification) end |