Debian Codegraph @

docs/dyn/advisorynotifications_v1.projects.locations.notifications.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="advisorynotifications_v1.html">Advisory Notifications API</a> . <a href="advisorynotifications_v1.projects.html">projects</a> . <a href="advisorynotifications_v1.projects.locations.html">locations</a> . <a href="advisorynotifications_v1.projects.locations.notifications.html">notifications</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#get">get(name, languageCode=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Gets a notification.</p>
83 <p class="toc_element">
84 <code><a href="#list">list(parent, languageCode=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Lists notifications under a given parent.</p>
86 <p class="toc_element">
87 <code><a href="#list_next">list_next()</a></code></p>
88 <p class="firstline">Retrieves the next page of results.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="get">get(name, languageCode=None, x__xgafv=None)</code>
97 <pre>Gets a notification.
98
99 Args:
100 name: string, Required. A name of the notification to retrieve. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{projects}/locations/{location}/notifications/{notification}. (required)
101 languageCode: string, ISO code for requested localization language. If unset, will be interpereted as &quot;en&quot;. If the requested language is valid, but not supported for this notification, English will be returned with an &quot;Not applicable&quot; LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
106
107 Returns:
108 An object of the form:
109
110 { # A notification object for notifying customers about security and privacy issues.
111 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the notification was created.
112 &quot;messages&quot;: [ # A list of messages in the notification.
113 { # A message which contains notification details.
114 &quot;attachments&quot;: [ # The attachments to download.
115 { # Attachment with specific information about the issue.
116 &quot;csv&quot;: { # A representation of a CSV file attachment, as a list of column headers and a list of data rows. # A CSV file attachment. Max size is 10 MB.
117 &quot;dataRows&quot;: [ # The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
118 { # A representation of a single data row in a CSV file.
119 &quot;entries&quot;: [ # The data entries in a CSV file row, as a string array rather than a single comma-separated string.
120 &quot;A String&quot;,
121 ],
122 },
123 ],
124 &quot;headers&quot;: [ # The list of headers for data columns in a CSV file.
125 &quot;A String&quot;,
126 ],
127 },
128 &quot;displayName&quot;: &quot;A String&quot;, # The title of the attachment.
129 },
130 ],
131 &quot;body&quot;: { # A message body containing text. # The message content.
132 &quot;text&quot;: { # A text object containing the English text and its localized copies. # The text content of the message body.
133 &quot;enText&quot;: &quot;A String&quot;, # The English copy.
134 &quot;localizationState&quot;: &quot;A String&quot;, # Status of the localization.
135 &quot;localizedText&quot;: &quot;A String&quot;, # The requested localized copy (if applicable).
136 },
137 },
138 &quot;createTime&quot;: &quot;A String&quot;, # The Message creation timestamp.
139 &quot;localizationTime&quot;: &quot;A String&quot;, # Time when Message was localized
140 },
141 ],
142 &quot;name&quot;: &quot;A String&quot;, # The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.
143 &quot;notificationType&quot;: &quot;A String&quot;, # Type of notification
144 &quot;subject&quot;: { # A subject line of a notification. # The subject line of the notification.
145 &quot;text&quot;: { # A text object containing the English text and its localized copies. # The text content.
146 &quot;enText&quot;: &quot;A String&quot;, # The English copy.
147 &quot;localizationState&quot;: &quot;A String&quot;, # Status of the localization.
148 &quot;localizedText&quot;: &quot;A String&quot;, # The requested localized copy (if applicable).
149 },
150 },
151 }</pre>
152 </div>
153
154 <div class="method">
155 <code class="details" id="list">list(parent, languageCode=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
156 <pre>Lists notifications under a given parent.
157
158 Args:
159 parent: string, Required. The parent, which owns this collection of notifications. Must be of the form &quot;organizations/{organization}/locations/{location}&quot; or &quot;projects/{project}/locations/{location}&quot;. (required)
160 languageCode: string, ISO code for requested localization language. If unset, will be interpereted as &quot;en&quot;. If the requested language is valid, but not supported for this notification, English will be returned with an &quot;Not applicable&quot; LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.
161 pageSize: integer, The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.
162 pageToken: string, A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.
163 view: string, Specifies which parts of the notification resource should be returned in the response.
164 Allowed values
165 NOTIFICATION_VIEW_UNSPECIFIED - Not specified, equivalent to BASIC.
166 BASIC - Server responses only include title, creation time and Notification ID. Note: for internal use responses also include the last update time, the latest message text and whether notification has attachments.
167 FULL - Include everything.
168 x__xgafv: string, V1 error format.
169 Allowed values
170 1 - v1 error format
171 2 - v2 error format
172
173 Returns:
174 An object of the form:
175
176 { # Response of ListNotifications endpoint.
177 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
178 &quot;notifications&quot;: [ # List of notifications under a given parent.
179 { # A notification object for notifying customers about security and privacy issues.
180 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time the notification was created.
181 &quot;messages&quot;: [ # A list of messages in the notification.
182 { # A message which contains notification details.
183 &quot;attachments&quot;: [ # The attachments to download.
184 { # Attachment with specific information about the issue.
185 &quot;csv&quot;: { # A representation of a CSV file attachment, as a list of column headers and a list of data rows. # A CSV file attachment. Max size is 10 MB.
186 &quot;dataRows&quot;: [ # The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
187 { # A representation of a single data row in a CSV file.
188 &quot;entries&quot;: [ # The data entries in a CSV file row, as a string array rather than a single comma-separated string.
189 &quot;A String&quot;,
190 ],
191 },
192 ],
193 &quot;headers&quot;: [ # The list of headers for data columns in a CSV file.
194 &quot;A String&quot;,
195 ],
196 },
197 &quot;displayName&quot;: &quot;A String&quot;, # The title of the attachment.
198 },
199 ],
200 &quot;body&quot;: { # A message body containing text. # The message content.
201 &quot;text&quot;: { # A text object containing the English text and its localized copies. # The text content of the message body.
202 &quot;enText&quot;: &quot;A String&quot;, # The English copy.
203 &quot;localizationState&quot;: &quot;A String&quot;, # Status of the localization.
204 &quot;localizedText&quot;: &quot;A String&quot;, # The requested localized copy (if applicable).
205 },
206 },
207 &quot;createTime&quot;: &quot;A String&quot;, # The Message creation timestamp.
208 &quot;localizationTime&quot;: &quot;A String&quot;, # Time when Message was localized
209 },
210 ],
211 &quot;name&quot;: &quot;A String&quot;, # The resource name of the notification. Format: organizations/{organization}/locations/{location}/notifications/{notification} or projects/{project}/locations/{location}/notifications/{notification}.
212 &quot;notificationType&quot;: &quot;A String&quot;, # Type of notification
213 &quot;subject&quot;: { # A subject line of a notification. # The subject line of the notification.
214 &quot;text&quot;: { # A text object containing the English text and its localized copies. # The text content.
215 &quot;enText&quot;: &quot;A String&quot;, # The English copy.
216 &quot;localizationState&quot;: &quot;A String&quot;, # Status of the localization.
217 &quot;localizedText&quot;: &quot;A String&quot;, # The requested localized copy (if applicable).
218 },
219 },
220 },
221 ],
222 &quot;totalSize&quot;: 42, # Estimation of a total number of notifications.
223 }</pre>
224 </div>
225
226 <div class="method">
227 <code class="details" id="list_next">list_next()</code>
228 <pre>Retrieves the next page of results.
229
230 Args:
231 previous_request: The request for the previous page. (required)
232 previous_response: The response from the request for the previous page. (required)
233
234 Returns:
235 A request object that you can call &#x27;execute()&#x27; on to request the next
236 page. Returns None if there are no more items in the collection.
237 </pre>
238 </div>
239
240 </body></html>