Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::Membership.
Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.
#create_time=
def create_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.
- (::Google::Protobuf::Timestamp) — Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.
#delete_time
def delete_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.
#delete_time=
def delete_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.
- (::Google::Protobuf::Timestamp) — Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.
#group_member
def group_member() -> ::Google::Apps::Chat::V1::Group
-
(::Google::Apps::Chat::V1::Group) — Optional. The Google Group the membership corresponds to.
Reading or mutating memberships for Google Groups requires user authentication.
#group_member=
def group_member=(value) -> ::Google::Apps::Chat::V1::Group
-
value (::Google::Apps::Chat::V1::Group) — Optional. The Google Group the membership corresponds to.
Reading or mutating memberships for Google Groups requires user authentication.
-
(::Google::Apps::Chat::V1::Group) — Optional. The Google Group the membership corresponds to.
Reading or mutating memberships for Google Groups requires user authentication.
#member
def member() -> ::Google::Apps::Chat::V1::User
-
(::Google::Apps::Chat::V1::User) — Optional. The Google Chat user or app the membership corresponds to.
If your Chat app authenticates as a
user,
the output populates the
user
name
andtype
.
#member=
def member=(value) -> ::Google::Apps::Chat::V1::User
-
value (::Google::Apps::Chat::V1::User) — Optional. The Google Chat user or app the membership corresponds to.
If your Chat app authenticates as a
user,
the output populates the
user
name
andtype
.
-
(::Google::Apps::Chat::V1::User) — Optional. The Google Chat user or app the membership corresponds to.
If your Chat app authenticates as a
user,
the output populates the
user
name
andtype
.
#name
def name() -> ::String
-
(::String) — Identifier. Resource name of the membership, assigned by the server.
Format:
spaces/{space}/members/{member}
#name=
def name=(value) -> ::String
-
value (::String) — Identifier. Resource name of the membership, assigned by the server.
Format:
spaces/{space}/members/{member}
-
(::String) — Identifier. Resource name of the membership, assigned by the server.
Format:
spaces/{space}/members/{member}
#role
def role() -> ::Google::Apps::Chat::V1::Membership::MembershipRole
-
(::Google::Apps::Chat::V1::Membership::MembershipRole) — Optional. User's role within a Chat space, which determines their permitted
actions in the space.
This field can only be used as input in
UpdateMembership
.
#role=
def role=(value) -> ::Google::Apps::Chat::V1::Membership::MembershipRole
-
value (::Google::Apps::Chat::V1::Membership::MembershipRole) — Optional. User's role within a Chat space, which determines their permitted
actions in the space.
This field can only be used as input in
UpdateMembership
.
-
(::Google::Apps::Chat::V1::Membership::MembershipRole) — Optional. User's role within a Chat space, which determines their permitted
actions in the space.
This field can only be used as input in
UpdateMembership
.
#state
def state() -> ::Google::Apps::Chat::V1::Membership::MembershipState
- (::Google::Apps::Chat::V1::Membership::MembershipState) — Output only. State of the membership.