Class: Google::Apis::PeopleV1::Membership
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Membership
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/people_v1/classes.rb,
lib/google/apis/people_v1/representations.rb,
lib/google/apis/people_v1/representations.rb
Overview
A person's membership in a group. Only contact group memberships can be modified.
Instance Attribute Summary collapse
-
#contact_group_membership ⇒ Google::Apis::PeopleV1::ContactGroupMembership
A Google contact group membership.
-
#domain_membership ⇒ Google::Apis::PeopleV1::DomainMembership
A Google Workspace Domain membership.
-
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Membership
constructor
A new instance of Membership.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Membership
Returns a new instance of Membership.
1510 1511 1512 |
# File 'lib/google/apis/people_v1/classes.rb', line 1510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contact_group_membership ⇒ Google::Apis::PeopleV1::ContactGroupMembership
A Google contact group membership.
Corresponds to the JSON property contactGroupMembership
1498 1499 1500 |
# File 'lib/google/apis/people_v1/classes.rb', line 1498 def contact_group_membership @contact_group_membership end |
#domain_membership ⇒ Google::Apis::PeopleV1::DomainMembership
A Google Workspace Domain membership.
Corresponds to the JSON property domainMembership
1503 1504 1505 |
# File 'lib/google/apis/people_v1/classes.rb', line 1503 def domain_membership @domain_membership end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
1508 1509 1510 |
# File 'lib/google/apis/people_v1/classes.rb', line 1508 def @metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1515 1516 1517 1518 1519 |
# File 'lib/google/apis/people_v1/classes.rb', line 1515 def update!(**args) @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership) @domain_membership = args[:domain_membership] if args.key?(:domain_membership) @metadata = args[:metadata] if args.key?(:metadata) end |