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



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

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)


1196
1197
1198
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1196

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)


1203
1204
1205
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1203

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)


1211
1212
1213
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1211

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)


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

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)


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

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)


1235
1236
1237
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1235

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)


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