class Google::Apis::MybusinessaccountmanagementV1::Invitation

Represents a pending invitation.

Attributes

name[RW]

Required. The resource name for the invitation. `accounts/`account_id`/ invitations/`invitation_id“. Corresponds to the JSON property `name` @return [String]

role[RW]

Output only. The invited role on the account. Corresponds to the JSON property `role` @return [String]

target_account[RW]

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) . Corresponds to the JSON property `targetAccount` @return [Google::Apis::MybusinessaccountmanagementV1::Account]

target_location[RW]

Represents a target location for a pending invitation. Corresponds to the JSON property `targetLocation` @return [Google::Apis::MybusinessaccountmanagementV1::TargetLocation]

target_type[RW]

Output only. Specifies which target types should appear in the response. Corresponds to the JSON property `targetType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/mybusinessaccountmanagement_v1/classes.rb, line 233
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/mybusinessaccountmanagement_v1/classes.rb, line 238
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @role = args[:role] if args.key?(:role)
  @target_account = args[:target_account] if args.key?(:target_account)
  @target_location = args[:target_location] if args.key?(:target_location)
  @target_type = args[:target_type] if args.key?(:target_type)
end