Class: Google::Apis::PeopleV1::CreateContactGroupRequest
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::CreateContactGroupRequest
- 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 create a new contact group.
Instance Attribute Summary collapse
-
#contact_group ⇒ Google::Apis::PeopleV1::ContactGroup
A contact group.
-
#read_group_fields ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateContactGroupRequest
constructor
A new instance of CreateContactGroupRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateContactGroupRequest
Returns a new instance of CreateContactGroupRequest.
769 770 771 |
# File 'lib/google/apis/people_v1/classes.rb', line 769 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contact_group ⇒ Google::Apis::PeopleV1::ContactGroup
A contact group.
Corresponds to the JSON property contactGroup
760 761 762 |
# File 'lib/google/apis/people_v1/classes.rb', line 760 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 * metadata * name
Corresponds to the JSON property readGroupFields
767 768 769 |
# File 'lib/google/apis/people_v1/classes.rb', line 767 def read_group_fields @read_group_fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
774 775 776 777 |
# File 'lib/google/apis/people_v1/classes.rb', line 774 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) end |