class Google::Apis::MybusinessaccountmanagementV1::Account
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] (support.google.com/business/answer/6085339?ref_topic=6085325) .
Attributes
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` @return [String]
Output only. Account
reference number if provisioned. Corresponds to the JSON property `accountNumber` @return [String]
Immutable. The resource name, in the format `accounts/`account_id“. Corresponds to the JSON property `name` @return [String]
Additional information stored for an organization. Corresponds to the JSON property `organizationInfo` @return [Google::Apis::MybusinessaccountmanagementV1::OrganizationInfo]
Output only. Specifies the permission level the user has for this account. Corresponds to the JSON property `permissionLevel` @return [String]
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 property `primaryOwner` @return [String]
Output only. Specifies the AccountRole of this account. Corresponds to the JSON property `role` @return [String]
Required. Contains the type of account. Accounts of type PERSONAL and ORGANIZATION cannot be created using this API. Corresponds to the JSON property `type` @return [String]
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` @return [String]
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` @return [String]
Public Class Methods
# File lib/google/apis/mybusinessaccountmanagement_v1/classes.rb, line 103 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# 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