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

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 Google contact group membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContactGroupMembership

Returns a new instance of ContactGroupMembership.



415
416
417
# File 'generated/google/apis/people_v1/classes.rb', line 415

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)


403
404
405
# File 'generated/google/apis/people_v1/classes.rb', line 403

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)


413
414
415
# File 'generated/google/apis/people_v1/classes.rb', line 413

def contact_group_resource_name
  @contact_group_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



420
421
422
423
# File 'generated/google/apis/people_v1/classes.rb', line 420

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