Class: Google::Apis::AdminDirectoryV1::Member
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Member
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#delivery_settings ⇒ String
Defines mail delivery preferences of member.
-
#email ⇒ String
The member's email address.
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
The unique ID of the group member.
-
#kind ⇒ String
The type of the API resource.
-
#role ⇒ String
The member's role in a group.
-
#status ⇒ String
Status of member (Immutable) Corresponds to the JSON property
status
. -
#type ⇒ String
The type of group member.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Member
constructor
A new instance of Member.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Member
Returns a new instance of Member.
1977 1978 1979 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1977 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivery_settings ⇒ String
Defines mail delivery preferences of member. This is only supported by create/
update/get.
Corresponds to the JSON property delivery_settings
1931 1932 1933 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1931 def delivery_settings @delivery_settings end |
#email ⇒ String
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
1939 1940 1941 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1939 def email @email end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1944 1945 1946 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1944 def etag @etag end |
#id ⇒ String
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
1950 1951 1952 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1950 def id @id end |
#kind ⇒ String
The type of the API resource. For Members resources, the value is admin#
directory#member
.
Corresponds to the JSON property kind
1956 1957 1958 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1956 def kind @kind end |
#role ⇒ String
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.
Corresponds to the JSON property role
1965 1966 1967 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1965 def role @role end |
#status ⇒ String
Status of member (Immutable)
Corresponds to the JSON property status
1970 1971 1972 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1970 def status @status end |
#type ⇒ String
The type of group member.
Corresponds to the JSON property type
1975 1976 1977 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1975 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1982 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 |