class Google::Apis::MybusinessaccountmanagementV1::Admin
An administrator of an Account
or a location.
Attributes
Optional. The name of the admin. When making the initial invitation, this is the invitee's email address. On `GET` calls, the user's email address is returned if the invitation is still pending. Otherwise, it contains the user's first and last names. This field is only needed to be set during admin creation. Corresponds to the JSON property `admin` @return [String]
Immutable. The resource name. For account admins, this is in the form: ` accounts/`account_id`/admins/`admin_id“ For location admins, this is in the form: `locations/`location_id`/admins/`admin_id“ This field will be ignored if set during admin creation. Corresponds to the JSON property `name` @return [String]
Output only. Indicates whether this admin has a pending invitation for the specified resource. Corresponds to the JSON property `pendingInvitation` @return [Boolean]
Output only. Indicates whether this admin has a pending invitation for the specified resource. Corresponds to the JSON property `pendingInvitation` @return [Boolean]
Required. Specifies the role that this admin uses with the specified Account
or Location. Corresponds to the JSON property `role` @return [String]
Public Class Methods
# File lib/google/apis/mybusinessaccountmanagement_v1/classes.rb, line 156 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/mybusinessaccountmanagement_v1/classes.rb, line 161 def update!(**args) @admin = args[:admin] if args.key?(:admin) @name = args[:name] if args.key?(:name) @pending_invitation = args[:pending_invitation] if args.key?(:pending_invitation) @role = args[:role] if args.key?(:role) end