class Google::Apis::AdminDirectoryV1::Member

A Google Groups member can be a user or another group. This member can be inside or outside of your account's domains. For more information about common group member tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/ manage-group-members).

Attributes

delivery_settings[RW]

Defines mail delivery preferences of member. This is only supported by create/ update/get. Corresponds to the JSON property `delivery_settings` @return [String]

email[RW]

The member's email address. A member can be a user or another group. This property is required when adding a member to a group. The `email` must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes. Corresponds to the JSON property `email` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

id[RW]

The unique ID of the group member. A member `id` can be used as a member request URI's `memberKey`. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of the API resource. For Members resources, the value is `admin# directory#member`. Corresponds to the JSON property `kind` @return [String]

role[RW]

The member's role in a group. The API returns an error for cycles in group memberships. For example, if `group1` is a member of `group2`, `group2` cannot be a member of `group1`. For more information about a member's role, see the [ administration help center](support.google.com/a/answer/167094). Corresponds to the JSON property `role` @return [String]

status[RW]

Status of member (Immutable) Corresponds to the JSON property `status` @return [String]

type[RW]

The type of group member. Corresponds to the JSON property `type` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 2306
def update!(**args)
  @delivery_settings = args[:delivery_settings] if args.key?(:delivery_settings)
  @email = args[:email] if args.key?(:email)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @role = args[:role] if args.key?(:role)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end