Class: Google::Apis::MybusinessV3::Account

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_nameString

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

Returns:

  • (String)

71
72
73
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 71

def 
  @account_name
end

#nameString

The resource name, in the format accounts/account_id`. Corresponds to the JSON propertyname`

Returns:

  • (String)

64
65
66
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 64

def name
  @name
end

#roleString

Specifies the AccountRole the caller has for this account. Corresponds to the JSON property role

Returns:

  • (String)

85
86
87
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 85

def role
  @role
end

#stateGoogle::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

#typeString

Specifies the AccountType of this account. Corresponds to the JSON property type

Returns:

  • (String)

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