Class: Google::Apis::MybusinessaccountmanagementV1::Account

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/mybusinessaccountmanagement_v1/classes.rb,
lib/google/apis/mybusinessaccountmanagement_v1/representations.rb,
lib/google/apis/mybusinessaccountmanagement_v1/representations.rb

Overview

An account is a container for your location. 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

Constructor Details

#initialize(**args) ⇒ Account

Returns a new instance of Account.



103
104
105
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 103

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#account_nameString

Required. The name of the account. For an account of type PERSONAL, this is the first and last name of the user account. Corresponds to the JSON property accountName

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 50

def 
  @account_name
end

#account_numberString

Output only. Account reference number if provisioned. Corresponds to the JSON property accountNumber

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 55

def 
  @account_number
end

#nameString

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

Returns:

  • (String)


60
61
62
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 60

def name
  @name
end

#organization_infoGoogle::Apis::MybusinessaccountmanagementV1::OrganizationInfo

Additional information stored for an organization. Corresponds to the JSON property organizationInfo



65
66
67
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 65

def organization_info
  @organization_info
end

#permission_levelString

Output only. Specifies the permission level the user has for this account. Corresponds to the JSON property permissionLevel

Returns:

  • (String)


70
71
72
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 70

def permission_level
  @permission_level
end

#primary_ownerString

Required. Input only. The resource name of the account which will be the primary owner of the account being created. It should be of the form accounts/ account_id`. Corresponds to the JSON propertyprimaryOwner`

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 77

def primary_owner
  @primary_owner
end

#roleString

Output only. Specifies the AccountRole of this account. Corresponds to the JSON property role

Returns:

  • (String)


82
83
84
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 82

def role
  @role
end

#typeString

Required. Contains the type of account. Accounts of type PERSONAL and ORGANIZATION cannot be created using this API. Corresponds to the JSON property type

Returns:

  • (String)


88
89
90
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 88

def type
  @type
end

#verification_stateString

Output only. If verified, future locations that are created are automatically connected to Google Maps, and have Google+ pages created, without requiring moderation. Corresponds to the JSON property verificationState

Returns:

  • (String)


95
96
97
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 95

def verification_state
  @verification_state
end

#vetted_stateString

Output only. Indicates whether the account is vetted by Google. A vetted account is able to verify locations via the VETTED_PARTNER method. Corresponds to the JSON property vettedState

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 101

def vetted_state
  @vetted_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/google/apis/mybusinessaccountmanagement_v1/classes.rb', line 108

def update!(**args)
  @account_name = args[:account_name] if args.key?(:account_name)
  @account_number = args[:account_number] if args.key?(:account_number)
  @name = args[:name] if args.key?(:name)
  @organization_info = args[:organization_info] if args.key?(:organization_info)
  @permission_level = args[:permission_level] if args.key?(:permission_level)
  @primary_owner = args[:primary_owner] if args.key?(:primary_owner)
  @role = args[:role] if args.key?(:role)
  @type = args[:type] if args.key?(:type)
  @verification_state = args[:verification_state] if args.key?(:verification_state)
  @vetted_state = args[:vetted_state] if args.key?(:vetted_state)
end