Class: Google::Apis::MybusinessV3::LocationState

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_deleteBoolean Also known as: can_delete?

Indicates whether the location can be deleted using the Google My Business UI. Corresponds to the JSON property canDelete

Returns:

  • (Boolean)


1252
1253
1254
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1252

def can_delete
  @can_delete
end

#can_updateBoolean Also known as: can_update?

Indicates whether the location can be updated. Corresponds to the JSON property canUpdate

Returns:

  • (Boolean)


1244
1245
1246
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1244

def can_update
  @can_update
end

#is_duplicateBoolean 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

Returns:

  • (Boolean)


1227
1228
1229
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1227

def is_duplicate
  @is_duplicate
end

#is_google_updatedBoolean Also known as: is_google_updated?

Indicates whether the place ID associated with this location has updates. Corresponds to the JSON property isGoogleUpdated

Returns:

  • (Boolean)


1219
1220
1221
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1219

def is_google_updated
  @is_google_updated
end

#is_suspendedBoolean 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

Returns:

  • (Boolean)


1237
1238
1239
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1237

def is_suspended
  @is_suspended
end

#is_verifiedBoolean Also known as: is_verified?

Indicates whether the location is verified. Corresponds to the JSON property isVerified

Returns:

  • (Boolean)


1259
1260
1261
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1259

def is_verified
  @is_verified
end

#needs_reverificationBoolean Also known as: needs_reverification?

Indicates whether the location requires reverification. Corresponds to the JSON property needsReverification

Returns:

  • (Boolean)


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