Class: Google::Apis::ContentV2_1::AccountGoogleMyBusinessLink

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountGoogleMyBusinessLink

Returns a new instance of AccountGoogleMyBusinessLink.


298
299
300
# File 'generated/google/apis/content_v2_1/classes.rb', line 298

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gmb_account_idString

The ID of the GMB account. If this is provided, then gmbEmail is ignored. The value of this field should match the accountId used by the GMB API. Corresponds to the JSON property gmbAccountId

Returns:

  • (String)

281
282
283
# File 'generated/google/apis/content_v2_1/classes.rb', line 281

def 
  @gmb_account_id
end

#gmb_emailString

The GMB email address of which a specific account within a GMB account. A sample account within a GMB account could be a business account with set of locations, managed under the GMB account. Corresponds to the JSON property gmbEmail

Returns:

  • (String)

288
289
290
# File 'generated/google/apis/content_v2_1/classes.rb', line 288

def gmb_email
  @gmb_email
end

#statusString

Status of the link between this Merchant Center account and the GMB account. Acceptable values are:

  • "active"
  • "pending" Corresponds to the JSON property status

Returns:

  • (String)

296
297
298
# File 'generated/google/apis/content_v2_1/classes.rb', line 296

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


303
304
305
306
307
# File 'generated/google/apis/content_v2_1/classes.rb', line 303

def update!(**args)
  @gmb_account_id = args[:gmb_account_id] if args.key?(:gmb_account_id)
  @gmb_email = args[:gmb_email] if args.key?(:gmb_email)
  @status = args[:status] if args.key?(:status)
end