注意:API 即将进行重大更改,需要进行迁移工作。请时常关注我们即将发布的版本页面,了解最新动态。
此 API 的 v4.9 版本已发布!请参阅更新日志

REST Resource: accounts.invitations

Resource: Invitation

Output only. Represents a pending invitation.

JSON representation
{
  "name": string,
  "role": enum (AdminRole),

  // Union field target can be only one of the following:
  "targetAccount": {
    object (Account)
  },
  "targetLocation": {
    object (TargetLocation)
  }
  // End of list of possible types for union field target.
}
Fields
name

string

The resource name for the invitation.

role

enum (AdminRole)

The invited role on the account.

Union field target. Indicates the target this invitation is for. target can be only one of the following:
targetAccount

object (Account)

The sparsely populated account this invitation is for.

targetLocation

object (TargetLocation)

The target location this invitation is for.

TargetLocation

Represents a target location for a pending invitation.

JSON representation
{
  "locationName": string,
  "locationAddress": string
}
Fields
locationName

string

The name of the location to which the user is invited.

locationAddress

string

The address of the location to which the user is invited.

Methods

accept
(deprecated)

Accepts the specified invitation.

decline
(deprecated)

Declines the specified invitation.

list
(deprecated)

Lists pending invitations for the specified account.