blob: b41ede47e8cb01a55b61856ba030e36b4d1a911a [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="alertcenter_v1beta1.html">G Suite Alert Center API</a> . <a href="alertcenter_v1beta1.alerts.html">alerts</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="alertcenter_v1beta1.alerts.feedback.html">feedback()</a></code>
79</p>
80<p class="firstline">Returns the feedback Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#batchDelete">batchDelete(body=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Performs batch delete operation on alerts.</p>
85<p class="toc_element">
86 <code><a href="#batchUndelete">batchUndelete(body=None, x__xgafv=None)</a></code></p>
87<p class="firstline">Performs batch undelete operation on alerts.</p>
88<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089 <code><a href="#delete">delete(alertId, customerId=None, x__xgafv=None)</a></code></p>
90<p class="firstline">Marks the specified alert for deletion. An alert that has been marked for</p>
91<p class="toc_element">
92 <code><a href="#get">get(alertId, customerId=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets the specified alert. Attempting to get a nonexistent alert returns</p>
94<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070095 <code><a href="#getMetadata">getMetadata(alertId, customerId=None, x__xgafv=None)</a></code></p>
96<p class="firstline">Returns the metadata of an alert. Attempting to get metadata for</p>
97<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070098 <code><a href="#list">list(orderBy=None, customerId=None, pageSize=None, pageToken=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Lists the alerts.</p>
100<p class="toc_element">
101 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
102<p class="firstline">Retrieves the next page of results.</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#undelete">undelete(alertId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Restores, or "undeletes", an alert that was marked for deletion within the</p>
106<h3>Method Details</h3>
107<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code class="details" id="batchDelete">batchDelete(body=None, x__xgafv=None)</code>
109 <pre>Performs batch delete operation on alerts.
110
111Args:
112 body: object, The request body.
113 The object takes the form of:
114
115{ # A request to perform batch delete on alerts.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700116 &quot;customerId&quot;: &quot;A String&quot;, # Optional. The unique identifier of the G Suite organization account of the
117 # customer the alerts are associated with.
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 &quot;alertId&quot;: [ # Required. list of alert IDs.
119 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 ],
121 }
122
123 x__xgafv: string, V1 error format.
124 Allowed values
125 1 - v1 error format
126 2 - v2 error format
127
128Returns:
129 An object of the form:
130
131 { # Response to batch delete operation on alerts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &quot;failedAlertStatus&quot;: { # The status details for each failed alert_id.
133 &quot;a_key&quot;: { # The `Status` type defines a logical error model that is suitable for
Dan O'Mearadd494642020-05-01 07:42:23 -0700134 # different programming environments, including REST APIs and RPC APIs. It is
135 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
136 # three pieces of data: error code, error message, and error details.
137 #
138 # You can find out more about this error model and how to work with it in the
139 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 # message types for APIs to use.
142 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700144 },
145 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700146 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
148 # user-facing error message should be localized and sent in the
149 # google.rpc.Status.details field, or localized by the client.
Dan O'Mearadd494642020-05-01 07:42:23 -0700150 },
151 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700152 &quot;successAlertIds&quot;: [ # The successful list of alert IDs.
153 &quot;A String&quot;,
154 ],
Dan O'Mearadd494642020-05-01 07:42:23 -0700155 }</pre>
156</div>
157
158<div class="method">
159 <code class="details" id="batchUndelete">batchUndelete(body=None, x__xgafv=None)</code>
160 <pre>Performs batch undelete operation on alerts.
161
162Args:
163 body: object, The request body.
164 The object takes the form of:
165
166{ # A request to perform batch undelete on alerts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;alertId&quot;: [ # Required. list of alert IDs.
168 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700169 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700170 &quot;customerId&quot;: &quot;A String&quot;, # Optional. The unique identifier of the G Suite organization account of the
171 # customer the alerts are associated with.
Dan O'Mearadd494642020-05-01 07:42:23 -0700172 }
173
174 x__xgafv: string, V1 error format.
175 Allowed values
176 1 - v1 error format
177 2 - v2 error format
178
179Returns:
180 An object of the form:
181
182 { # Response to batch undelete operation on alerts.
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;failedAlertStatus&quot;: { # The status details for each failed alert_id.
184 &quot;a_key&quot;: { # The `Status` type defines a logical error model that is suitable for
Dan O'Mearadd494642020-05-01 07:42:23 -0700185 # different programming environments, including REST APIs and RPC APIs. It is
186 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
187 # three pieces of data: error code, error message, and error details.
188 #
189 # You can find out more about this error model and how to work with it in the
190 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
Dan O'Mearadd494642020-05-01 07:42:23 -0700192 # message types for APIs to use.
193 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700194 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700195 },
196 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700197 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
199 # user-facing error message should be localized and sent in the
200 # google.rpc.Status.details field, or localized by the client.
Dan O'Mearadd494642020-05-01 07:42:23 -0700201 },
202 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;successAlertIds&quot;: [ # The successful list of alert IDs.
204 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700205 ],
206 }</pre>
207</div>
208
209<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700210 <code class="details" id="delete">delete(alertId, customerId=None, x__xgafv=None)</code>
211 <pre>Marks the specified alert for deletion. An alert that has been marked for
212deletion is removed from Alert Center after 30 days.
213Marking an alert for deletion has no effect on an alert which has
214already been marked for deletion. Attempting to mark a nonexistent alert
215for deletion results in a `NOT_FOUND` error.
216
217Args:
218 alertId: string, Required. The identifier of the alert to delete. (required)
219 customerId: string, Optional. The unique identifier of the G Suite organization account of the
220customer the alert is associated with.
221Inferred from the caller identity if not provided.
222 x__xgafv: string, V1 error format.
223 Allowed values
224 1 - v1 error format
225 2 - v2 error format
226
227Returns:
228 An object of the form:
229
230 { # A generic empty message that you can re-use to avoid defining duplicated
231 # empty messages in your APIs. A typical example is to use it as the request
232 # or the response type of an API method. For instance:
233 #
234 # service Foo {
235 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
236 # }
237 #
238 # The JSON representation for `Empty` is empty JSON object `{}`.
239 }</pre>
240</div>
241
242<div class="method">
243 <code class="details" id="get">get(alertId, customerId=None, x__xgafv=None)</code>
244 <pre>Gets the specified alert. Attempting to get a nonexistent alert returns
245`NOT_FOUND` error.
246
247Args:
248 alertId: string, Required. The identifier of the alert to retrieve. (required)
249 customerId: string, Optional. The unique identifier of the G Suite organization account of the
250customer the alert is associated with.
251Inferred from the caller identity if not provided.
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257Returns:
258 An object of the form:
259
260 { # An alert affecting a customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700261 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700262 &quot;data&quot;: { # Optional. The data associated with this alert, for example
263 # google.apps.alertcenter.type.DeviceCompromised.
264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
265 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700266 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to help
267 # prevent simultaneous updates of an alert from overwriting each other.
268 # It is strongly suggested that systems make use of the `etag` in the
269 # read-modify-write cycle to perform alert updates in order to avoid race
270 # conditions: An `etag` is returned in the response which contains alerts,
271 # and systems are expected to put that etag in the request to update alert to
272 # ensure that their change will be applied to the same version of the alert.
273 #
274 # If no `etag` is provided in the call to update alert, then the existing
275 # alert is overwritten blindly.
276 &quot;startTime&quot;: &quot;A String&quot;, # Required. The time the event that caused this alert was started or
277 # detected.
278 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this alert was created.
279 &quot;securityInvestigationToolLink&quot;: &quot;A String&quot;, # Output only. An optional
280 # [Security Investigation Tool](https://support.google.com/a/answer/7575955)
281 # query for this alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;metadata&quot;: { # An alert metadata. # Output only. The metadata associated with this alert.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700283 &quot;assignee&quot;: &quot;A String&quot;, # The email address of the user assigned to the alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700284 &quot;severity&quot;: &quot;A String&quot;, # The severity value of the alert. Alert Center will set this field at alert
285 # creation time, default&#x27;s to an empty string when it could not be
Dan O'Mearadd494642020-05-01 07:42:23 -0700286 # determined.
287 # The supported values for update actions on this field are the following:
288 #
289 # * HIGH
290 # * MEDIUM
291 # * LOW
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700292 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this metadata was last updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to
Dan O'Mearadd494642020-05-01 07:42:23 -0700294 # help prevent simultaneous updates of an alert metadata from overwriting
295 # each other. It is strongly suggested that systems make use of the `etag` in
296 # the read-modify-write cycle to perform metatdata updates in order to avoid
297 # race conditions: An `etag` is returned in the response which contains alert
298 # metadata, and systems are expected to put that etag in the request to
299 # update alert metadata to ensure that their change will be applied to the
300 # same version of the alert metadata.
301 #
302 # If no `etag` is provided in the call to update alert metadata, then the
303 # existing alert metadata is overwritten blindly.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700304 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The alert identifier.
305 &quot;status&quot;: &quot;A String&quot;, # The current status of the alert.
306 # The supported values are the following:
307 #
308 # * NOT_STARTED
309 # * IN_PROGRESS
310 # * CLOSED
311 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700312 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700313 &quot;source&quot;: &quot;A String&quot;, # Required. A unique identifier for the system that reported the alert.
314 # This is output only after alert is created.
315 #
316 # Supported sources are any of the following:
317 #
318 # * Google Operations
319 # * Mobile device management
320 # * Gmail phishing
321 # * Domain wide takeout
322 # * State sponsored attack
323 # * Google identity
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700324 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this alert was last updated.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700325 &quot;deleted&quot;: True or False, # Output only. `True` if this alert is marked for deletion.
326 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the alert.
327 # This is output only after alert is created.
328 # For a list of available alert types see
329 # [G Suite Alert types](/admin-sdk/alertcenter/reference/alert-types).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700330 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The unique identifier for the alert.
331 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The time the event that caused this alert ceased being active.
332 # If provided, the end time must not be earlier than the start time.
333 # If not provided, it indicates an ongoing alert.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 }</pre>
335</div>
336
337<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700338 <code class="details" id="getMetadata">getMetadata(alertId, customerId=None, x__xgafv=None)</code>
339 <pre>Returns the metadata of an alert. Attempting to get metadata for
340a non-existent alert returns `NOT_FOUND` error.
341
342Args:
343 alertId: string, Required. The identifier of the alert this metadata belongs to. (required)
344 customerId: string, Optional. The unique identifier of the G Suite organization account of the
345customer the alert metadata is associated with.
346Inferred from the caller identity if not provided.
347 x__xgafv: string, V1 error format.
348 Allowed values
349 1 - v1 error format
350 2 - v2 error format
351
352Returns:
353 An object of the form:
354
355 { # An alert metadata.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700356 &quot;assignee&quot;: &quot;A String&quot;, # The email address of the user assigned to the alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;severity&quot;: &quot;A String&quot;, # The severity value of the alert. Alert Center will set this field at alert
358 # creation time, default&#x27;s to an empty string when it could not be
Dan O'Mearadd494642020-05-01 07:42:23 -0700359 # determined.
360 # The supported values for update actions on this field are the following:
361 #
362 # * HIGH
363 # * MEDIUM
364 # * LOW
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700365 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this metadata was last updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700366 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to
Dan O'Mearadd494642020-05-01 07:42:23 -0700367 # help prevent simultaneous updates of an alert metadata from overwriting
368 # each other. It is strongly suggested that systems make use of the `etag` in
369 # the read-modify-write cycle to perform metatdata updates in order to avoid
370 # race conditions: An `etag` is returned in the response which contains alert
371 # metadata, and systems are expected to put that etag in the request to
372 # update alert metadata to ensure that their change will be applied to the
373 # same version of the alert metadata.
374 #
375 # If no `etag` is provided in the call to update alert metadata, then the
376 # existing alert metadata is overwritten blindly.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700377 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The alert identifier.
378 &quot;status&quot;: &quot;A String&quot;, # The current status of the alert.
379 # The supported values are the following:
380 #
381 # * NOT_STARTED
382 # * IN_PROGRESS
383 # * CLOSED
384 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Dan O'Mearadd494642020-05-01 07:42:23 -0700385 }</pre>
386</div>
387
388<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700389 <code class="details" id="list">list(orderBy=None, customerId=None, pageSize=None, pageToken=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 <pre>Lists the alerts.
391
392Args:
393 orderBy: string, Optional. The sort order of the list results.
394If not specified results may be returned in arbitrary order.
395You can sort the results in descending order based on the creation
Bu Sun Kim65020912020-05-20 12:08:20 -0700396timestamp using `order_by=&quot;create_time desc&quot;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700397Currently, supported sorting are `create_time asc`, `create_time desc`,
398`update_time desc`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700399 customerId: string, Optional. The unique identifier of the G Suite organization account of the
400customer the alerts are associated with.
401Inferred from the caller identity if not provided.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 pageSize: integer, Optional. The requested page size. Server may return fewer items than
403requested. If unspecified, server picks an appropriate default.
404 pageToken: string, Optional. A token identifying a page of results the server should return.
405If empty, a new iteration is started. To continue an iteration, pass in
406the value from the previous ListAlertsResponse&#x27;s
407next_page_token field.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 filter: string, Optional. A query string for filtering alert results.
409For more details, see [Query
410filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported
411query filter
412fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.list).
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 x__xgafv: string, V1 error format.
414 Allowed values
415 1 - v1 error format
416 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417
418Returns:
419 An object of the form:
420
421 { # Response message for an alert listing request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 &quot;alerts&quot;: [ # The list of alerts.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700423 { # An alert affecting a customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700424 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700425 &quot;data&quot;: { # Optional. The data associated with this alert, for example
426 # google.apps.alertcenter.type.DeviceCompromised.
427 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
428 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700429 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to help
430 # prevent simultaneous updates of an alert from overwriting each other.
431 # It is strongly suggested that systems make use of the `etag` in the
432 # read-modify-write cycle to perform alert updates in order to avoid race
433 # conditions: An `etag` is returned in the response which contains alerts,
434 # and systems are expected to put that etag in the request to update alert to
435 # ensure that their change will be applied to the same version of the alert.
436 #
437 # If no `etag` is provided in the call to update alert, then the existing
438 # alert is overwritten blindly.
439 &quot;startTime&quot;: &quot;A String&quot;, # Required. The time the event that caused this alert was started or
440 # detected.
441 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this alert was created.
442 &quot;securityInvestigationToolLink&quot;: &quot;A String&quot;, # Output only. An optional
443 # [Security Investigation Tool](https://support.google.com/a/answer/7575955)
444 # query for this alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;metadata&quot;: { # An alert metadata. # Output only. The metadata associated with this alert.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700446 &quot;assignee&quot;: &quot;A String&quot;, # The email address of the user assigned to the alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;severity&quot;: &quot;A String&quot;, # The severity value of the alert. Alert Center will set this field at alert
448 # creation time, default&#x27;s to an empty string when it could not be
Dan O'Mearadd494642020-05-01 07:42:23 -0700449 # determined.
450 # The supported values for update actions on this field are the following:
451 #
452 # * HIGH
453 # * MEDIUM
454 # * LOW
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700455 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this metadata was last updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to
Dan O'Mearadd494642020-05-01 07:42:23 -0700457 # help prevent simultaneous updates of an alert metadata from overwriting
458 # each other. It is strongly suggested that systems make use of the `etag` in
459 # the read-modify-write cycle to perform metatdata updates in order to avoid
460 # race conditions: An `etag` is returned in the response which contains alert
461 # metadata, and systems are expected to put that etag in the request to
462 # update alert metadata to ensure that their change will be applied to the
463 # same version of the alert metadata.
464 #
465 # If no `etag` is provided in the call to update alert metadata, then the
466 # existing alert metadata is overwritten blindly.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700467 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The alert identifier.
468 &quot;status&quot;: &quot;A String&quot;, # The current status of the alert.
469 # The supported values are the following:
470 #
471 # * NOT_STARTED
472 # * IN_PROGRESS
473 # * CLOSED
474 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700476 &quot;source&quot;: &quot;A String&quot;, # Required. A unique identifier for the system that reported the alert.
477 # This is output only after alert is created.
478 #
479 # Supported sources are any of the following:
480 #
481 # * Google Operations
482 # * Mobile device management
483 # * Gmail phishing
484 # * Domain wide takeout
485 # * State sponsored attack
486 # * Google identity
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700487 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this alert was last updated.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700488 &quot;deleted&quot;: True or False, # Output only. `True` if this alert is marked for deletion.
489 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the alert.
490 # This is output only after alert is created.
491 # For a list of available alert types see
492 # [G Suite Alert types](/admin-sdk/alertcenter/reference/alert-types).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700493 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The unique identifier for the alert.
494 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The time the event that caused this alert ceased being active.
495 # If provided, the end time must not be earlier than the start time.
496 # If not provided, it indicates an ongoing alert.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700497 },
498 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700499 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the next page. If not empty, indicates that there may be more
500 # alerts that match the listing request; this value can be used in a
501 # subsequent ListAlertsRequest to get alerts continuing from last result
502 # of the current list call.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700503 }</pre>
504</div>
505
506<div class="method">
507 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
508 <pre>Retrieves the next page of results.
509
510Args:
511 previous_request: The request for the previous page. (required)
512 previous_response: The response from the request for the previous page. (required)
513
514Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700516 page. Returns None if there are no more items in the collection.
517 </pre>
518</div>
519
520<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700521 <code class="details" id="undelete">undelete(alertId, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 <pre>Restores, or &quot;undeletes&quot;, an alert that was marked for deletion within the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523past 30 days. Attempting to undelete an alert which was marked for deletion
524over 30 days ago (which has been removed from the Alert Center database) or
525a nonexistent alert returns a `NOT_FOUND` error. Attempting to
526undelete an alert which has not been marked for deletion has no effect.
527
528Args:
529 alertId: string, Required. The identifier of the alert to undelete. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700530 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531 The object takes the form of:
532
533{ # A request to undelete a specific alert that was marked for deletion.
Bu Sun Kim65020912020-05-20 12:08:20 -0700534 &quot;customerId&quot;: &quot;A String&quot;, # Optional. The unique identifier of the G Suite organization account of the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700535 # customer the alert is associated with.
536 # Inferred from the caller identity if not provided.
537 }
538
539 x__xgafv: string, V1 error format.
540 Allowed values
541 1 - v1 error format
542 2 - v2 error format
543
544Returns:
545 An object of the form:
546
547 { # An alert affecting a customer.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700548 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &quot;data&quot;: { # Optional. The data associated with this alert, for example
550 # google.apps.alertcenter.type.DeviceCompromised.
551 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
552 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700553 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to help
554 # prevent simultaneous updates of an alert from overwriting each other.
555 # It is strongly suggested that systems make use of the `etag` in the
556 # read-modify-write cycle to perform alert updates in order to avoid race
557 # conditions: An `etag` is returned in the response which contains alerts,
558 # and systems are expected to put that etag in the request to update alert to
559 # ensure that their change will be applied to the same version of the alert.
560 #
561 # If no `etag` is provided in the call to update alert, then the existing
562 # alert is overwritten blindly.
563 &quot;startTime&quot;: &quot;A String&quot;, # Required. The time the event that caused this alert was started or
564 # detected.
565 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this alert was created.
566 &quot;securityInvestigationToolLink&quot;: &quot;A String&quot;, # Output only. An optional
567 # [Security Investigation Tool](https://support.google.com/a/answer/7575955)
568 # query for this alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 &quot;metadata&quot;: { # An alert metadata. # Output only. The metadata associated with this alert.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700570 &quot;assignee&quot;: &quot;A String&quot;, # The email address of the user assigned to the alert.
Bu Sun Kim65020912020-05-20 12:08:20 -0700571 &quot;severity&quot;: &quot;A String&quot;, # The severity value of the alert. Alert Center will set this field at alert
572 # creation time, default&#x27;s to an empty string when it could not be
Dan O'Mearadd494642020-05-01 07:42:23 -0700573 # determined.
574 # The supported values for update actions on this field are the following:
575 #
576 # * HIGH
577 # * MEDIUM
578 # * LOW
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700579 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this metadata was last updated.
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is used for optimistic concurrency control as a way to
Dan O'Mearadd494642020-05-01 07:42:23 -0700581 # help prevent simultaneous updates of an alert metadata from overwriting
582 # each other. It is strongly suggested that systems make use of the `etag` in
583 # the read-modify-write cycle to perform metatdata updates in order to avoid
584 # race conditions: An `etag` is returned in the response which contains alert
585 # metadata, and systems are expected to put that etag in the request to
586 # update alert metadata to ensure that their change will be applied to the
587 # same version of the alert metadata.
588 #
589 # If no `etag` is provided in the call to update alert metadata, then the
590 # existing alert metadata is overwritten blindly.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700591 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The alert identifier.
592 &quot;status&quot;: &quot;A String&quot;, # The current status of the alert.
593 # The supported values are the following:
594 #
595 # * NOT_STARTED
596 # * IN_PROGRESS
597 # * CLOSED
598 &quot;customerId&quot;: &quot;A String&quot;, # Output only. The unique identifier of the Google account of the customer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700599 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700600 &quot;source&quot;: &quot;A String&quot;, # Required. A unique identifier for the system that reported the alert.
601 # This is output only after alert is created.
602 #
603 # Supported sources are any of the following:
604 #
605 # * Google Operations
606 # * Mobile device management
607 # * Gmail phishing
608 # * Domain wide takeout
609 # * State sponsored attack
610 # * Google identity
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700611 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this alert was last updated.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700612 &quot;deleted&quot;: True or False, # Output only. `True` if this alert is marked for deletion.
613 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the alert.
614 # This is output only after alert is created.
615 # For a list of available alert types see
616 # [G Suite Alert types](/admin-sdk/alertcenter/reference/alert-types).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700617 &quot;alertId&quot;: &quot;A String&quot;, # Output only. The unique identifier for the alert.
618 &quot;endTime&quot;: &quot;A String&quot;, # Optional. The time the event that caused this alert ceased being active.
619 # If provided, the end time must not be earlier than the start time.
620 # If not provided, it indicates an ongoing alert.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700621 }</pre>
622</div>
623
624</body></html>