blob: bf272f19579dda8a910466dd0efb74278207b609 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -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="cloudasset_v1.html">Cloud Asset API</a> . <a href="cloudasset_v1.feeds.html">feeds</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a feed in a parent project/folder/organization to listen to its</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes an asset feed.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Gets details about an asset feed.</p>
86<p class="toc_element">
87 <code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists all asset feeds in a parent project/folder/organization.</p>
89<p class="toc_element">
90 <code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Updates an asset feed configuration.</p>
92<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
95 <pre>Creates a feed in a parent project/folder/organization to listen to its
96asset updates.
97
98Args:
99 parent: string, Required. The name of the project/folder/organization where this feed
100should be created in. It can only be an organization number (such as
101&quot;organizations/123&quot;), a folder number (such as &quot;folders/123&quot;), a project ID
102(such as &quot;projects/my-project-id&quot;)&quot;, or a project number (such as
103&quot;projects/12345&quot;). (required)
104 body: object, The request body.
105 The object takes the form of:
106
107{ # Create asset feed request.
108 &quot;feedId&quot;: &quot;A String&quot;, # Required. This is the client-assigned asset feed identifier and it needs to
109 # be unique under a specific parent project/folder/organization.
110 &quot;feed&quot;: { # An asset feed used to export asset updates to a destinations. # Required. The feed details. The field `name` must be empty and it will be generated
111 # in the format of:
112 # projects/project_number/feeds/feed_id
113 # folders/folder_number/feeds/feed_id
114 # organizations/organization_number/feeds/feed_id
115 # An asset feed filter controls what updates are exported.
116 # The asset feed must be created within a project, organization, or
117 # folder. Supported destinations are:
118 # Pub/Sub topics.
119 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
120 # either or both of asset_names and asset_types. Only asset updates matching
121 # specified asset_names and asset_types are exported to the feed. For
122 # example:
123 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
124 # See [Resource
125 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
126 # for more info.
127 &quot;A String&quot;,
128 ],
129 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
130 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
131 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
132 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
133 #
134 # The client-assigned feed identifier must be unique within the parent
135 # project/folder/organization.
136 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
137 # type will be returned.
138 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
139 # or both of asset_names and asset_types. Only asset updates matching
140 # specified asset_names and asset_types are exported to the feed.
141 # For example: `&quot;compute.googleapis.com/Disk&quot;`
142 #
143 # See [this
144 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
145 # for a list of all supported asset types.
146 &quot;A String&quot;,
147 ],
148 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
149 # published to.
150 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
151 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
152 # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
153 },
154 },
155 },
156 }
157
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163Returns:
164 An object of the form:
165
166 { # An asset feed used to export asset updates to a destinations.
167 # An asset feed filter controls what updates are exported.
168 # The asset feed must be created within a project, organization, or
169 # folder. Supported destinations are:
170 # Pub/Sub topics.
171 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
172 # either or both of asset_names and asset_types. Only asset updates matching
173 # specified asset_names and asset_types are exported to the feed. For
174 # example:
175 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
176 # See [Resource
177 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
178 # for more info.
179 &quot;A String&quot;,
180 ],
181 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
182 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
183 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
184 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
185 #
186 # The client-assigned feed identifier must be unique within the parent
187 # project/folder/organization.
188 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
189 # type will be returned.
190 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
191 # or both of asset_names and asset_types. Only asset updates matching
192 # specified asset_names and asset_types are exported to the feed.
193 # For example: `&quot;compute.googleapis.com/Disk&quot;`
194 #
195 # See [this
196 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
197 # for a list of all supported asset types.
198 &quot;A String&quot;,
199 ],
200 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
201 # published to.
202 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
203 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
204 # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
205 },
206 },
207 }</pre>
208</div>
209
210<div class="method">
211 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
212 <pre>Deletes an asset feed.
213
214Args:
215 name: string, Required. The name of the feed and it must be in the format of:
216projects/project_number/feeds/feed_id
217folders/folder_number/feeds/feed_id
218organizations/organization_number/feeds/feed_id (required)
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
223
224Returns:
225 An object of the form:
226
227 { # A generic empty message that you can re-use to avoid defining duplicated
228 # empty messages in your APIs. A typical example is to use it as the request
229 # or the response type of an API method. For instance:
230 #
231 # service Foo {
232 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
233 # }
234 #
235 # The JSON representation for `Empty` is empty JSON object `{}`.
236 }</pre>
237</div>
238
239<div class="method">
240 <code class="details" id="get">get(name, x__xgafv=None)</code>
241 <pre>Gets details about an asset feed.
242
243Args:
244 name: string, Required. The name of the Feed and it must be in the format of:
245projects/project_number/feeds/feed_id
246folders/folder_number/feeds/feed_id
247organizations/organization_number/feeds/feed_id (required)
248 x__xgafv: string, V1 error format.
249 Allowed values
250 1 - v1 error format
251 2 - v2 error format
252
253Returns:
254 An object of the form:
255
256 { # An asset feed used to export asset updates to a destinations.
257 # An asset feed filter controls what updates are exported.
258 # The asset feed must be created within a project, organization, or
259 # folder. Supported destinations are:
260 # Pub/Sub topics.
261 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
262 # either or both of asset_names and asset_types. Only asset updates matching
263 # specified asset_names and asset_types are exported to the feed. For
264 # example:
265 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
266 # See [Resource
267 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
268 # for more info.
269 &quot;A String&quot;,
270 ],
271 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
272 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
273 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
274 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
275 #
276 # The client-assigned feed identifier must be unique within the parent
277 # project/folder/organization.
278 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
279 # type will be returned.
280 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
281 # or both of asset_names and asset_types. Only asset updates matching
282 # specified asset_names and asset_types are exported to the feed.
283 # For example: `&quot;compute.googleapis.com/Disk&quot;`
284 #
285 # See [this
286 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
287 # for a list of all supported asset types.
288 &quot;A String&quot;,
289 ],
290 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
291 # published to.
292 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
293 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
294 # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
295 },
296 },
297 }</pre>
298</div>
299
300<div class="method">
301 <code class="details" id="list">list(parent, x__xgafv=None)</code>
302 <pre>Lists all asset feeds in a parent project/folder/organization.
303
304Args:
305 parent: string, Required. The parent project/folder/organization whose feeds are to be
306listed. It can only be using project/folder/organization number (such as
307&quot;folders/12345&quot;)&quot;, or a project ID (such as &quot;projects/my-project-id&quot;). (required)
308 x__xgafv: string, V1 error format.
309 Allowed values
310 1 - v1 error format
311 2 - v2 error format
312
313Returns:
314 An object of the form:
315
316 {
317 &quot;feeds&quot;: [ # A list of feeds.
318 { # An asset feed used to export asset updates to a destinations.
319 # An asset feed filter controls what updates are exported.
320 # The asset feed must be created within a project, organization, or
321 # folder. Supported destinations are:
322 # Pub/Sub topics.
323 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
324 # either or both of asset_names and asset_types. Only asset updates matching
325 # specified asset_names and asset_types are exported to the feed. For
326 # example:
327 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
328 # See [Resource
329 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
330 # for more info.
331 &quot;A String&quot;,
332 ],
333 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
334 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
335 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
336 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
337 #
338 # The client-assigned feed identifier must be unique within the parent
339 # project/folder/organization.
340 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
341 # type will be returned.
342 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
343 # or both of asset_names and asset_types. Only asset updates matching
344 # specified asset_names and asset_types are exported to the feed.
345 # For example: `&quot;compute.googleapis.com/Disk&quot;`
346 #
347 # See [this
348 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
349 # for a list of all supported asset types.
350 &quot;A String&quot;,
351 ],
352 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
353 # published to.
354 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
355 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
356 # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
357 },
358 },
359 },
360 ],
361 }</pre>
362</div>
363
364<div class="method">
365 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
366 <pre>Updates an asset feed configuration.
367
368Args:
369 name: string, Required. The format will be
370projects/{project_number}/feeds/{client-assigned_feed_identifier} or
371folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
372organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
373
374The client-assigned feed identifier must be unique within the parent
375project/folder/organization. (required)
376 body: object, The request body.
377 The object takes the form of:
378
379{ # Update asset feed request.
380 &quot;updateMask&quot;: &quot;A String&quot;, # Required. Only updates the `feed` fields indicated by this mask.
381 # The field mask must not be empty, and it must not contain fields that
382 # are immutable or only set by the server.
383 &quot;feed&quot;: { # An asset feed used to export asset updates to a destinations. # Required. The new values of feed details. It must match an existing feed and the
384 # field `name` must be in the format of:
385 # projects/project_number/feeds/feed_id or
386 # folders/folder_number/feeds/feed_id or
387 # organizations/organization_number/feeds/feed_id.
388 # An asset feed filter controls what updates are exported.
389 # The asset feed must be created within a project, organization, or
390 # folder. Supported destinations are:
391 # Pub/Sub topics.
392 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
393 # either or both of asset_names and asset_types. Only asset updates matching
394 # specified asset_names and asset_types are exported to the feed. For
395 # example:
396 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
397 # See [Resource
398 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
399 # for more info.
400 &quot;A String&quot;,
401 ],
402 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
403 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
404 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
405 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
406 #
407 # The client-assigned feed identifier must be unique within the parent
408 # project/folder/organization.
409 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
410 # type will be returned.
411 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
412 # or both of asset_names and asset_types. Only asset updates matching
413 # specified asset_names and asset_types are exported to the feed.
414 # For example: `&quot;compute.googleapis.com/Disk&quot;`
415 #
416 # See [this
417 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
418 # for a list of all supported asset types.
419 &quot;A String&quot;,
420 ],
421 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
422 # published to.
423 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
424 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
425 # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
426 },
427 },
428 },
429 }
430
431 x__xgafv: string, V1 error format.
432 Allowed values
433 1 - v1 error format
434 2 - v2 error format
435
436Returns:
437 An object of the form:
438
439 { # An asset feed used to export asset updates to a destinations.
440 # An asset feed filter controls what updates are exported.
441 # The asset feed must be created within a project, organization, or
442 # folder. Supported destinations are:
443 # Pub/Sub topics.
444 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
445 # either or both of asset_names and asset_types. Only asset updates matching
446 # specified asset_names and asset_types are exported to the feed. For
447 # example:
448 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
449 # See [Resource
450 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
451 # for more info.
452 &quot;A String&quot;,
453 ],
454 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
455 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
456 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
457 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
458 #
459 # The client-assigned feed identifier must be unique within the parent
460 # project/folder/organization.
461 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
462 # type will be returned.
463 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
464 # or both of asset_names and asset_types. Only asset updates matching
465 # specified asset_names and asset_types are exported to the feed.
466 # For example: `&quot;compute.googleapis.com/Disk&quot;`
467 #
468 # See [this
469 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
470 # for a list of all supported asset types.
471 &quot;A String&quot;,
472 ],
473 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
474 # published to.
475 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
476 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
477 # For example: `projects/PROJECT_ID/topics/TOPIC_ID`.
478 },
479 },
480 }</pre>
481</div>
482
483</body></html>