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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ContactGroupMembership

Returns a new instance of ContactGroupMembership.



350
351
352
# File 'generated/google/apis/people_v1/classes.rb', line 350

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)


338
339
340
# File 'generated/google/apis/people_v1/classes.rb', line 338

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)


348
349
350
# File 'generated/google/apis/people_v1/classes.rb', line 348

def contact_group_resource_name
  @contact_group_resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



355
356
357
358
# File 'generated/google/apis/people_v1/classes.rb', line 355

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