Class: Google::Apis::MybusinessV3::Account
- Inherits:
-
Object
- Object
- Google::Apis::MybusinessV3::Account
- 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
An account is a container for your business's locations. If you are the only user who manages locations for your business, you can use your personal Google Account. To share management of locations with multiple users, create a business account.
Instance Attribute Summary collapse
-
#account_name ⇒ String
The name of the account.
-
#name ⇒ String
The resource name, in the format
accounts/
account_id``. -
#role ⇒ String
Specifies the AccountRole the caller has for this account.
-
#state ⇒ Google::Apis::MybusinessV3::AccountState
Indicates status of the account, such as whether the account has been verified by Google.
-
#type ⇒ String
Specifies the AccountType of this account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account
93 94 95 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 93 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_name ⇒ String
The name of the account. Note: For an account with AccountType PERSONAL
,
this is the first
and last name of the user account.
Corresponds to the JSON property accountName
71 72 73 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 71 def account_name @account_name end |
#name ⇒ String
The resource name, in the format accounts/
account_id`.
Corresponds to the JSON property
name`
64 65 66 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 64 def name @name end |
#role ⇒ String
Specifies the AccountRole
the caller has for this account.
Corresponds to the JSON property role
85 86 87 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 85 def role @role end |
#state ⇒ Google::Apis::MybusinessV3::AccountState
Indicates status of the account, such as whether the account
has been verified by Google.
Corresponds to the JSON property state
91 92 93 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 91 def state @state end |
#type ⇒ String
Specifies the AccountType
of this account.
Corresponds to the JSON property type
78 79 80 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 78 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
98 99 100 101 102 103 104 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 98 def update!(**args) @name = args[:name] if args.key?(:name) @account_name = args[:account_name] if args.key?(:account_name) @type = args[:type] if args.key?(:type) @role = args[:role] if args.key?(:role) @state = args[:state] if args.key?(:state) end |