Class: Google::Apis::PeopleV1::ContactGroupMembership

Inherits:
Object
  • Object
show all
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 Google contact group membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContactGroupMembership

Returns a new instance of ContactGroupMembership.



582
583
584
# File 'lib/google/apis/people_v1/classes.rb', line 582

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

Instance Attribute Details

#contact_group_idString

Output only. The contact group ID for the contact group membership. Corresponds to the JSON property contactGroupId

Returns:

  • (String)


570
571
572
# File 'lib/google/apis/people_v1/classes.rb', line 570

def contact_group_id
  @contact_group_id
end

#contact_group_resource_nameString

The resource name for the contact group, assigned by the server. An ASCII string, in the form of contactGroups/contact_group_id`. Only contact_group_resource_name can be used for modifying memberships. Any contact group membership can be removed, but only user group or "myContacts" or " starred" system groups memberships can be added. A contact must always have at least one contact group membership. Corresponds to the JSON propertycontactGroupResourceName`

Returns:

  • (String)


580
581
582
# File 'lib/google/apis/people_v1/classes.rb', line 580

def contact_group_resource_name
  @contact_group_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



587
588
589
590
# File 'lib/google/apis/people_v1/classes.rb', line 587

def update!(**args)
  @contact_group_id = args[:contact_group_id] if args.key?(:contact_group_id)
  @contact_group_resource_name = args[:contact_group_resource_name] if args.key?(:contact_group_resource_name)
end