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

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 request to modify an existing contact group's members.

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) ⇒ ModifyContactGroupMembersRequest

Returns a new instance of ModifyContactGroupMembersRequest



1911
1912
1913
# File 'generated/google/apis/people_v1/classes.rb', line 1911

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

Instance Attribute Details

#resource_names_to_addArray<String>

The resource names of the contact people to add in the form of in the form people/<person_id>. Corresponds to the JSON property resourceNamesToAdd

Returns:

  • (Array<String>)


1903
1904
1905
# File 'generated/google/apis/people_v1/classes.rb', line 1903

def resource_names_to_add
  @resource_names_to_add
end

#resource_names_to_removeArray<String>

The resource names of the contact people to remove in the form of in the form of people/<person_id>. Corresponds to the JSON property resourceNamesToRemove

Returns:

  • (Array<String>)


1909
1910
1911
# File 'generated/google/apis/people_v1/classes.rb', line 1909

def resource_names_to_remove
  @resource_names_to_remove
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1916
1917
1918
1919
# File 'generated/google/apis/people_v1/classes.rb', line 1916

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