blob: 4815e815ed3ad03d32f32ee01e5aecc7e2f2cac8 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="people_v1.html">People API</a> . <a href="people_v1.contactGroups.html">contactGroups</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="people_v1.contactGroups.members.html">members()</a></code>
79</p>
80<p class="firstline">Returns the members Resource.</p>
81
82<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070083 <code><a href="#batchGet">batchGet(maxMembers=None, resourceNames=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Get a list of contact groups owned by the authenticated user by specifying</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Create a new contact group owned by the authenticated user.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(resourceName, deleteContacts=None, x__xgafv=None)</a></code></p>
90<p class="firstline">Delete an existing contact group owned by the authenticated user by</p>
91<p class="toc_element">
92 <code><a href="#get">get(resourceName, maxMembers=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Get a specific contact group owned by the authenticated user by specifying</p>
94<p class="toc_element">
95 <code><a href="#list">list(pageSize=None, syncToken=None, pageToken=None, x__xgafv=None)</a></code></p>
96<p class="firstline">List all contact groups owned by the authenticated user. Members of the</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#update">update(resourceName, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Update the name of an existing contact group owned by the authenticated</p>
103<h3>Method Details</h3>
104<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 <code class="details" id="batchGet">batchGet(maxMembers=None, resourceNames=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 <pre>Get a list of contact groups owned by the authenticated user by specifying
107a list of contact group resource names.
108
109Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 maxMembers: integer, Optional. Specifies the maximum number of members to return for each group. Defaults
111to 0 if not set, which will return zero members.
Bu Sun Kim65020912020-05-20 12:08:20 -0700112 resourceNames: string, Required. The resource names of the contact groups to get. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 x__xgafv: string, V1 error format.
114 Allowed values
115 1 - v1 error format
116 2 - v2 error format
117
118Returns:
119 An object of the form:
120
121 { # The response to a batch get contact groups request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;responses&quot;: [ # The list of responses for each requested contact group resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 { # The response for a specific contact group.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;contactGroup&quot;: { # A contact group. # The contact group.
125 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
126 # resource. Used for web cache validation.
127 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
128 # specified in the request.
129 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
130 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
131 # for system groups.
132 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
133 # group. The field is not populated for LIST requests and can only be updated
134 # through the
135 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
136 &quot;A String&quot;,
137 ],
138 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
139 # or the `Accept-Language` HTTP header locale for system groups names.
140 # Group names set by the owner are the same as name.
141 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
142 # string, in the form of `contactGroups/{contact_group_id}`.
143 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
144 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
145 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
146 # that include a sync token.
147 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
148 },
149 },
150 &quot;requestedResourceName&quot;: &quot;A String&quot;, # The original requested resource name.
151 &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for # The status of the response.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700152 # different programming environments, including REST APIs and RPC APIs. It is
153 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
154 # three pieces of data: error code, error message, and error details.
155 #
156 # You can find out more about this error model and how to work with it in the
157 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700159 # user-facing error message should be localized and sent in the
160 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162 # message types for APIs to use.
163 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 },
166 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700168 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700169 },
170 ],
171 }</pre>
172</div>
173
174<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700176 <pre>Create a new contact group owned by the authenticated user.
177
178Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700179 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180 The object takes the form of:
181
182{ # A request to create a new contact group.
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;contactGroup&quot;: { # A contact group. # Required. The contact group to create.
184 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
185 # resource. Used for web cache validation.
186 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
187 # specified in the request.
188 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
189 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 # for system groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700192 # group. The field is not populated for LIST requests and can only be updated
193 # through the
194 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700196 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
198 # or the `Accept-Language` HTTP header locale for system groups names.
199 # Group names set by the owner are the same as name.
200 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700201 # string, in the form of `contactGroups/{contact_group_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
203 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700204 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
205 # that include a sync token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 },
208 },
209 }
210
211 x__xgafv: string, V1 error format.
212 Allowed values
213 1 - v1 error format
214 2 - v2 error format
215
216Returns:
217 An object of the form:
218
219 { # A contact group.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
221 # resource. Used for web cache validation.
222 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
223 # specified in the request.
224 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
225 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 # for system groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700227 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 # group. The field is not populated for LIST requests and can only be updated
229 # through the
230 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
Bu Sun Kim65020912020-05-20 12:08:20 -0700231 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
234 # or the `Accept-Language` HTTP header locale for system groups names.
235 # Group names set by the owner are the same as name.
236 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700237 # string, in the form of `contactGroups/{contact_group_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
239 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700240 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
241 # that include a sync token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700243 },
244 }</pre>
245</div>
246
247<div class="method">
248 <code class="details" id="delete">delete(resourceName, deleteContacts=None, x__xgafv=None)</code>
249 <pre>Delete an existing contact group owned by the authenticated user by
250specifying a contact group resource name.
251
252Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700253 resourceName: string, Required. The resource name of the contact group to delete. (required)
254 deleteContacts: boolean, Optional. Set to true to also delete the contacts in the specified group.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 x__xgafv: string, V1 error format.
256 Allowed values
257 1 - v1 error format
258 2 - v2 error format
259
260Returns:
261 An object of the form:
262
263 { # A generic empty message that you can re-use to avoid defining duplicated
264 # empty messages in your APIs. A typical example is to use it as the request
265 # or the response type of an API method. For instance:
266 #
267 # service Foo {
268 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
269 # }
270 #
271 # The JSON representation for `Empty` is empty JSON object `{}`.
272 }</pre>
273</div>
274
275<div class="method">
276 <code class="details" id="get">get(resourceName, maxMembers=None, x__xgafv=None)</code>
277 <pre>Get a specific contact group owned by the authenticated user by specifying
278a contact group resource name.
279
280Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700281 resourceName: string, Required. The resource name of the contact group to get. (required)
282 maxMembers: integer, Optional. Specifies the maximum number of members to return. Defaults to 0 if not
283set, which will return zero members.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700284 x__xgafv: string, V1 error format.
285 Allowed values
286 1 - v1 error format
287 2 - v2 error format
288
289Returns:
290 An object of the form:
291
292 { # A contact group.
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
294 # resource. Used for web cache validation.
295 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
296 # specified in the request.
297 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
298 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 # for system groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700301 # group. The field is not populated for LIST requests and can only be updated
302 # through the
303 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700305 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700306 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
307 # or the `Accept-Language` HTTP header locale for system groups names.
308 # Group names set by the owner are the same as name.
309 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700310 # string, in the form of `contactGroups/{contact_group_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
312 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
314 # that include a sync token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 },
317 }</pre>
318</div>
319
320<div class="method">
321 <code class="details" id="list">list(pageSize=None, syncToken=None, pageToken=None, x__xgafv=None)</code>
322 <pre>List all contact groups owned by the authenticated user. Members of the
323contact groups are not populated.
324
325Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700326 pageSize: integer, Optional. The maximum number of resources to return. Valid values are between 1 and
3271000, inclusive. Defaults to 30 if not set or set to 0.
328 syncToken: string, Optional. A sync token, returned by a previous call to `contactgroups.list`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700329Only resources changed since the sync token was created will be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700330 pageToken: string, Optional. The next_page_token value returned from a previous call to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331[ListContactGroups](/people/api/rest/v1/contactgroups/list).
332Requests the next page of resources.
333 x__xgafv: string, V1 error format.
334 Allowed values
335 1 - v1 error format
336 2 - v2 error format
337
338Returns:
339 An object of the form:
340
341 { # The response to a list contact groups request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700342 &quot;nextSyncToken&quot;: &quot;A String&quot;, # The token that can be used to retrieve changes since the last request.
343 &quot;contactGroups&quot;: [ # The list of contact groups. Members of the contact groups are not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700344 # populated.
345 { # A contact group.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
347 # resource. Used for web cache validation.
348 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
349 # specified in the request.
350 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
351 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 # for system groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700354 # group. The field is not populated for LIST requests and can only be updated
355 # through the
356 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700358 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
360 # or the `Accept-Language` HTTP header locale for system groups names.
361 # Group names set by the owner are the same as name.
362 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700363 # string, in the form of `contactGroups/{contact_group_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
365 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700366 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
367 # that include a sync token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 },
370 },
371 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;totalItems&quot;: 42, # The total number of items in the list without pagination.
373 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used to retrieve the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 }</pre>
375</div>
376
377<div class="method">
378 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
379 <pre>Retrieves the next page of results.
380
381Args:
382 previous_request: The request for the previous page. (required)
383 previous_response: The response from the request for the previous page. (required)
384
385Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 page. Returns None if there are no more items in the collection.
388 </pre>
389</div>
390
391<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700392 <code class="details" id="update">update(resourceName, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700393 <pre>Update the name of an existing contact group owned by the authenticated
394user.
395
396Args:
397 resourceName: string, The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700398string, in the form of `contactGroups/{contact_group_id}`. (required)
399 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700400 The object takes the form of:
401
402{ # A request to update an existing user contact group. All updated fields will
403 # be replaced.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 &quot;contactGroup&quot;: { # A contact group. # Required. The contact group to update.
405 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
406 # resource. Used for web cache validation.
407 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
408 # specified in the request.
409 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
410 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 # for system groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 # group. The field is not populated for LIST requests and can only be updated
414 # through the
415 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
Bu Sun Kim65020912020-05-20 12:08:20 -0700416 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
419 # or the `Accept-Language` HTTP header locale for system groups names.
420 # Group names set by the owner are the same as name.
421 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700422 # string, in the form of `contactGroups/{contact_group_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
424 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700425 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
426 # that include a sync token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700427 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700428 },
429 },
430 }
431
432 x__xgafv: string, V1 error format.
433 Allowed values
434 1 - v1 error format
435 2 - v2 error format
436
437Returns:
438 An object of the form:
439
440 { # A contact group.
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;etag&quot;: &quot;A String&quot;, # The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
442 # resource. Used for web cache validation.
443 &quot;memberCount&quot;: 42, # Output only. The total number of contacts in the group irrespective of max members in
444 # specified in the request.
445 &quot;groupType&quot;: &quot;A String&quot;, # Output only. The contact group type.
446 &quot;name&quot;: &quot;A String&quot;, # The contact group name set by the group owner or a system provided name
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700447 # for system groups.
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;memberResourceNames&quot;: [ # Output only. The list of contact person resource names that are members of the contact
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 # group. The field is not populated for LIST requests and can only be updated
450 # through the
451 # [ModifyContactGroupMembers](/people/api/rest/v1/contactgroups/members/modify).
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700453 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700454 &quot;formattedName&quot;: &quot;A String&quot;, # Output only. The name translated and formatted in the viewer&#x27;s account locale
455 # or the `Accept-Language` HTTP header locale for system groups names.
456 # Group names set by the owner are the same as name.
457 &quot;resourceName&quot;: &quot;A String&quot;, # The resource name for the contact group, assigned by the server. An ASCII
Dan O'Mearadd494642020-05-01 07:42:23 -0700458 # string, in the form of `contactGroups/{contact_group_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700459 &quot;metadata&quot;: { # The metadata about a contact group. # Output only. Metadata about the contact group.
460 &quot;deleted&quot;: True or False, # Output only. True if the contact group resource has been deleted. Populated only for
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700461 # [`ListContactGroups`](/people/api/rest/v1/contactgroups/list) requests
462 # that include a sync token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the group was last updated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700464 },
465 }</pre>
466</div>
467
468</body></html>