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



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

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)


38
39
40
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 38

def 
  @account_name
end

#nameString

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

Returns:

  • (String)


43
44
45
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 43

def name
  @name
end

#roleString

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

Returns:

  • (String)


50
51
52
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 50

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



56
57
58
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 56

def state
  @state
end

#typeString

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

Returns:

  • (String)


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