Class: Google::Apis::PeopleV1::ContactGroupMembership
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::ContactGroupMembership
- 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
-
#contact_group_id ⇒ String
Output only.
-
#contact_group_resource_name ⇒ String
The resource name for the contact group, assigned by the server.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContactGroupMembership
constructor
A new instance of ContactGroupMembership.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ContactGroupMembership
Returns a new instance of ContactGroupMembership.
349 350 351 |
# File 'generated/google/apis/people_v1/classes.rb', line 349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contact_group_id ⇒ String
Output only. The contact group ID for the contact group membership.
Corresponds to the JSON property contactGroupId
337 338 339 |
# File 'generated/google/apis/people_v1/classes.rb', line 337 def contact_group_id @contact_group_id end |
#contact_group_resource_name ⇒ String
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 property
contactGroupResourceName`
347 348 349 |
# File 'generated/google/apis/people_v1/classes.rb', line 347 def contact_group_resource_name @contact_group_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
354 355 356 357 |
# File 'generated/google/apis/people_v1/classes.rb', line 354 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 |