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
65 66 67 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 65 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
38 39 40 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 38 def account_name @account_name end |
#name ⇒ String
The resource name, in the format accounts/
account_id`.
Corresponds to the JSON property
name`
43 44 45 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 43 def name @name end |
#role ⇒ String
Specifies the AccountRole
the caller has for this account.
Corresponds to the JSON property role
50 51 52 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 50 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
56 57 58 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 56 def state @state end |
#type ⇒ String
Specifies the AccountType
of this account.
Corresponds to the JSON property type
63 64 65 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 63 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
70 71 72 73 74 75 76 |
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 70 def update!(**args) @account_name = args[:account_name] if args.key?(:account_name) @name = args[:name] if args.key?(:name) @role = args[:role] if args.key?(:role) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) end |