Class: Google::Apis::PeopleV1::ModifyContactGroupMembersRequest

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 request to modify an existing contact group's members. Contacts can be removed from any group but they can only be added to a user group or " myContacts" or "starred" system groups.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModifyContactGroupMembersRequest

Returns a new instance of ModifyContactGroupMembersRequest.



1582
1583
1584
# File 'lib/google/apis/people_v1/classes.rb', line 1582

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

Instance Attribute Details

#resource_names_to_addArray<String>

Optional. The resource names of the contact people to add in the form of people/person_id`. The total number of resource names in resource_names_to_addandresource_names_to_removemust be less than or equal to 1000. Corresponds to the JSON propertyresourceNamesToAdd`

Returns:

  • (Array<String>)


1572
1573
1574
# File 'lib/google/apis/people_v1/classes.rb', line 1572

def resource_names_to_add
  @resource_names_to_add
end

#resource_names_to_removeArray<String>

Optional. The resource names of the contact people to remove in the form of people/person_id`. The total number of resource names in resource_names_to_addandresource_names_to_removemust be less than or equal to 1000. Corresponds to the JSON propertyresourceNamesToRemove`

Returns:

  • (Array<String>)


1580
1581
1582
# File 'lib/google/apis/people_v1/classes.rb', line 1580

def resource_names_to_remove
  @resource_names_to_remove
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1587
1588
1589
1590
# File 'lib/google/apis/people_v1/classes.rb', line 1587

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