Class: Google::Apis::PeopleV1::UpdateContactGroupRequest
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::UpdateContactGroupRequest
- 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 update an existing user contact group. All updated fields will be replaced.
Instance Attribute Summary collapse
-
#contact_group ⇒ Google::Apis::PeopleV1::ContactGroup
A contact group.
-
#read_group_fields ⇒ String
Optional.
-
#update_group_fields ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateContactGroupRequest
constructor
A new instance of UpdateContactGroupRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpdateContactGroupRequest
Returns a new instance of UpdateContactGroupRequest.
2755 2756 2757 |
# File 'lib/google/apis/people_v1/classes.rb', line 2755 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contact_group ⇒ Google::Apis::PeopleV1::ContactGroup
A contact group.
Corresponds to the JSON property contactGroup
2738 2739 2740 |
# File 'lib/google/apis/people_v1/classes.rb', line 2738 def contact_group @contact_group end |
#read_group_fields ⇒ String
Optional. A field mask to restrict which fields on the group are returned.
Defaults to metadata
, groupType
, and name
if not set or set to empty.
Valid fields are: * clientData * groupType * memberCount * metadata * name
Corresponds to the JSON property readGroupFields
2745 2746 2747 |
# File 'lib/google/apis/people_v1/classes.rb', line 2745 def read_group_fields @read_group_fields end |
#update_group_fields ⇒ String
Optional. A field mask to restrict which fields on the group are updated.
Multiple fields can be specified by separating them with commas. Defaults to
name
if not set or set to empty. Updated fields are replaced. Valid values
are: * clientData * name
Corresponds to the JSON property updateGroupFields
2753 2754 2755 |
# File 'lib/google/apis/people_v1/classes.rb', line 2753 def update_group_fields @update_group_fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2760 2761 2762 2763 2764 |
# File 'lib/google/apis/people_v1/classes.rb', line 2760 def update!(**args) @contact_group = args[:contact_group] if args.key?(:contact_group) @read_group_fields = args[:read_group_fields] if args.key?(:read_group_fields) @update_group_fields = args[:update_group_fields] if args.key?(:update_group_fields) end |