Class Membership
A membership within the Cloud Identity Groups API. A Membership defines a relationship between a Group and
an entity belonging to that Group, referred to as a "member".
Implements
Inherited Members
Namespace: Google.Apis.CloudIdentity.v1beta1.Data
Assembly: Google.Apis.CloudIdentity.v1beta1.dll
Syntax
public class Membership : IDirectResponseSchema
Properties
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
CreateTimeRaw
Output only. The time when the Membership was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
DeliverySetting
Output only. Delivery setting associated with the membership.
Declaration
[JsonProperty("deliverySetting")]
public virtual string DeliverySetting { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MemberKey
Immutable. The EntityKey of the member. Either member_key or preferred_member_key must be set when
calling MembershipsService.CreateMembership but not both; both shall be set when returned.
Declaration
[JsonProperty("memberKey")]
public virtual EntityKey MemberKey { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityKey |
Name
Output only. The resource name of the Membership.
Shall be of the form groups/{group_id}/memberships/{membership_id}.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PreferredMemberKey
Required. Immutable. The EntityKey of the member. Either member_key or preferred_member_key must be
set when calling MembershipsService.CreateMembership but not both; both shall be set when returned.
Declaration
[JsonProperty("preferredMemberKey")]
public virtual EntityKey PreferredMemberKey { get; set; }
Property Value
| Type | Description |
|---|---|
| EntityKey |
Roles
The MembershipRoles that apply to the Membership. If unspecified, defaults to a single MembershipRole
with name MEMBER. Must not contain duplicate MembershipRoles with the same name.
Declaration
[JsonProperty("roles")]
public virtual IList<MembershipRole> Roles { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<MembershipRole> |
Type
Output only. The type of the membership.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
UpdateTimeRaw
Output only. The time when the Membership was last updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |