Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Account

import type { Account } from "https://googleapis.deno.dev/v1/mybusinessaccountmanagement:v1.ts";

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] (https://support.google.com/business/answer/6085339?ref_topic=6085325).

interface Account {
accountName?: string;
readonly accountNumber?: string;
name?: string;
readonly organizationInfo?: OrganizationInfo;
readonly permissionLevel?: "PERMISSION_LEVEL_UNSPECIFIED" | "OWNER_LEVEL" | "MEMBER_LEVEL";
primaryOwner?: string;
readonly role?:
| "ACCOUNT_ROLE_UNSPECIFIED"
| "PRIMARY_OWNER"
| "OWNER"
| "MANAGER"
| "SITE_MANAGER";
type?:
| "ACCOUNT_TYPE_UNSPECIFIED"
| "PERSONAL"
| "LOCATION_GROUP"
| "USER_GROUP"
| "ORGANIZATION";
readonly verificationState?:
| "VERIFICATION_STATE_UNSPECIFIED"
| "VERIFIED"
| "UNVERIFIED"
| "VERIFICATION_REQUESTED";
readonly vettedState?:
| "VETTED_STATE_UNSPECIFIED"
| "NOT_VETTED"
| "VETTED"
| "INVALID";
}

§Properties

§
accountName?: string
[src]

Required. The name of the account. For an account of type PERSONAL, this is the first and last name of the user account.

§
readonly accountNumber?: string
[src]

Output only. Account reference number if provisioned.

§
name?: string
[src]

Immutable. The resource name, in the format accounts/{account_id}.

§
readonly organizationInfo?: OrganizationInfo
[src]

Output only. Additional info for an organization. This is populated only for an organization account.

§
readonly permissionLevel?: "PERMISSION_LEVEL_UNSPECIFIED" | "OWNER_LEVEL" | "MEMBER_LEVEL"
[src]

Output only. Specifies the permission level the user has for this account.

§
primaryOwner?: string
[src]

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}.

§
readonly role?: "ACCOUNT_ROLE_UNSPECIFIED" | "PRIMARY_OWNER" | "OWNER" | "MANAGER" | "SITE_MANAGER"
[src]

Output only. Specifies the AccountRole of this account.

§
type?: "ACCOUNT_TYPE_UNSPECIFIED" | "PERSONAL" | "LOCATION_GROUP" | "USER_GROUP" | "ORGANIZATION"
[src]

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

§
readonly verificationState?: "VERIFICATION_STATE_UNSPECIFIED" | "VERIFIED" | "UNVERIFIED" | "VERIFICATION_REQUESTED"
[src]

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

§
readonly vettedState?: "VETTED_STATE_UNSPECIFIED" | "NOT_VETTED" | "VETTED" | "INVALID"
[src]

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