Class: Google::Apis::PeopleV1::Membership

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/people_v1/classes.rb,
generated/google/apis/people_v1/representations.rb,
generated/google/apis/people_v1/representations.rb

Overview

A person’s membership in a group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Membership

Returns a new instance of Membership.



1378
1379
1380
# File 'generated/google/apis/people_v1/classes.rb', line 1378

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contact_group_membershipGoogle::Apis::PeopleV1::ContactGroupMembership

A Google contact group membership. Corresponds to the JSON property contactGroupMembership



1371
1372
1373
# File 'generated/google/apis/people_v1/classes.rb', line 1371

def contact_group_membership
  @contact_group_membership
end

#domain_membershipGoogle::Apis::PeopleV1::DomainMembership

A Google Apps Domain membership. Corresponds to the JSON property domainMembership



1376
1377
1378
# File 'generated/google/apis/people_v1/classes.rb', line 1376

def domain_membership
  @domain_membership
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1366
1367
1368
# File 'generated/google/apis/people_v1/classes.rb', line 1366

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1383
1384
1385
1386
1387
# File 'generated/google/apis/people_v1/classes.rb', line 1383

def update!(**args)
  @metadata = args[:metadata] if args.key?(:metadata)
  @contact_group_membership = args[:contact_group_membership] if args.key?(:contact_group_membership)
  @domain_membership = args[:domain_membership] if args.key?(:domain_membership)
end