Class: Google::Apis::MerchantapiAccountsV1beta::GbpAccount
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::GbpAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
Collection of information related to a Google Business Profile (GBP) account.
Instance Attribute Summary collapse
-
#gbp_account_id ⇒ String
The id of the GBP account.
-
#gbp_account_name ⇒ String
The name of the Business Profile.
-
#listing_count ⇒ Fixnum
Number of listings under this account.
-
#name ⇒ String
Identifier.
-
#type ⇒ String
The type of the Business Profile.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GbpAccount
constructor
A new instance of GbpAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GbpAccount
Returns a new instance of GbpAccount.
1666 1667 1668 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gbp_account_id ⇒ String
The id of the GBP account.
Corresponds to the JSON property gbpAccountId
1642 1643 1644 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1642 def gbp_account_id @gbp_account_id end |
#gbp_account_name ⇒ String
The name of the Business Profile. For personal accounts: Email id of the owner.
For Business accounts: Name of the Business Account.
Corresponds to the JSON property gbpAccountName
1648 1649 1650 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1648 def gbp_account_name @gbp_account_name end |
#listing_count ⇒ Fixnum
Number of listings under this account.
Corresponds to the JSON property listingCount
1653 1654 1655 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1653 def listing_count @listing_count end |
#name ⇒ String
Identifier. The resource name of the GBP account. Format: accounts/account/
gbpAccount/gbp_account`
Corresponds to the JSON propertyname`
1659 1660 1661 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1659 def name @name end |
#type ⇒ String
The type of the Business Profile.
Corresponds to the JSON property type
1664 1665 1666 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1664 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1671 def update!(**args) @gbp_account_id = args[:gbp_account_id] if args.key?(:gbp_account_id) @gbp_account_name = args[:gbp_account_name] if args.key?(:gbp_account_name) @listing_count = args[:listing_count] if args.key?(:listing_count) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |