class Google::Apis::PeopleV1::ContactGroup

A contact group.

Attributes

client_data[RW]

The group's client data. Corresponds to the JSON property `clientData` @return [Array<Google::Apis::PeopleV1::GroupClientData>]

etag[RW]

The [HTTP entity tag](en.wikipedia.org/wiki/HTTP_ETag) of the resource. Used for web cache validation. Corresponds to the JSON property `etag` @return [String]

formatted_name[RW]

Output only. The name translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale for system groups names. Group names set by the owner are the same as name. Corresponds to the JSON property `formattedName` @return [String]

group_type[RW]

Output only. The contact group type. Corresponds to the JSON property `groupType` @return [String]

member_count[RW]

Output only. The total number of contacts in the group irrespective of max members in specified in the request. Corresponds to the JSON property `memberCount` @return [Fixnum]

member_resource_names[RW]

Output only. The list of contact person resource names that are members of the contact group. The field is only populated for GET requests and will only return as many members as `maxMembers` in the get request. Corresponds to the JSON property `memberResourceNames` @return [Array<String>]

metadata[RW]

The metadata about a contact group. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::ContactGroupMetadata]

name[RW]

The contact group name set by the group owner or a system provided name for system groups. For [`contactGroups.create`](/people/api/rest/v1/contactGroups/ create) or [`contactGroups.update`](/people/api/rest/v1/contactGroups/update) the name must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Corresponds to the JSON property `name` @return [String]

resource_name[RW]

The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/`contact_group_id“. Corresponds to the JSON property `resourceName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/people_v1/classes.rb, line 543
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/people_v1/classes.rb, line 548
def update!(**args)
  @client_data = args[:client_data] if args.key?(:client_data)
  @etag = args[:etag] if args.key?(:etag)
  @formatted_name = args[:formatted_name] if args.key?(:formatted_name)
  @group_type = args[:group_type] if args.key?(:group_type)
  @member_count = args[:member_count] if args.key?(:member_count)
  @member_resource_names = args[:member_resource_names] if args.key?(:member_resource_names)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end