blob: 63589c405a9b900e00d87c379688f85bcf57a937 [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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700119 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
120 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
121 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
122 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
123 #
124 # The client-assigned feed identifier must be unique within the parent
125 # project/folder/organization.
126 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
127 # type will be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700128 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
129 # or both of asset_names and asset_types. Only asset updates matching
130 # specified asset_names or asset_types are exported to the feed.
131 # Example: `&quot;compute.googleapis.com/Disk&quot;`
132 #
133 # See [this
134 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
135 # for a list of all supported asset types.
136 &quot;A String&quot;,
137 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
139 # either or both of asset_names and asset_types. Only asset updates matching
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700140 # specified asset_names or asset_types are exported to the feed.
141 # Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
143 # See [Resource
144 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
145 # for more info.
146 &quot;A String&quot;,
147 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700148 &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 # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
153 },
154 },
155 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # A condition which determines whether an asset update should be published.
156 # If specified, an asset will be returned only when the expression evaluates
157 # to true.
158 # When set, `expression` field in the `Expr` must be a valid [CEL expression]
159 # (https://github.com/google/cel-spec) on a TemporalAsset with name
160 # `temporal_asset`. Example: a Feed with expression (&quot;temporal_asset.deleted
161 # == true&quot;) will only publish Asset deletions. Other fields of `Expr` are
162 # optional.
163 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
164 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700166 # Example (Comparison):
167 #
168 # title: &quot;Summary size limit&quot;
169 # description: &quot;Determines if a summary is less than 100 chars&quot;
170 # expression: &quot;document.summary.size() &lt; 100&quot;
171 #
172 # Example (Equality):
173 #
174 # title: &quot;Requestor is owner&quot;
175 # description: &quot;Determines if requestor is the document owner&quot;
176 # expression: &quot;document.owner == request.auth.claims.email&quot;
177 #
178 # Example (Logic):
179 #
180 # title: &quot;Public documents&quot;
181 # description: &quot;Determine whether the document should be publicly visible&quot;
182 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
183 #
184 # Example (Data Manipulation):
185 #
186 # title: &quot;Notification string&quot;
187 # description: &quot;Create a notification string with a timestamp.&quot;
188 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
189 #
190 # The exact variables and functions that may be referenced within an expression
191 # are determined by the service that evaluates it. See the service
192 # documentation for additional information.
193 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
194 # describes the expression, e.g. when hovered over it in a UI.
195 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
196 # reporting, e.g. a file name and a position in the file.
197 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
198 # syntax.
199 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
200 # its purpose. This can be used e.g. in UIs which allow to enter the
201 # expression.
202 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 },
204 }
205
206 x__xgafv: string, V1 error format.
207 Allowed values
208 1 - v1 error format
209 2 - v2 error format
210
211Returns:
212 An object of the form:
213
214 { # An asset feed used to export asset updates to a destinations.
215 # An asset feed filter controls what updates are exported.
216 # The asset feed must be created within a project, organization, or
217 # folder. Supported destinations are:
218 # Pub/Sub topics.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
220 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
221 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
222 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
223 #
224 # The client-assigned feed identifier must be unique within the parent
225 # project/folder/organization.
226 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
227 # type will be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
229 # or both of asset_names and asset_types. Only asset updates matching
230 # specified asset_names or asset_types are exported to the feed.
231 # Example: `&quot;compute.googleapis.com/Disk&quot;`
232 #
233 # See [this
234 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
235 # for a list of all supported asset types.
236 &quot;A String&quot;,
237 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
239 # either or both of asset_names and asset_types. Only asset updates matching
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700240 # specified asset_names or asset_types are exported to the feed.
241 # Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
243 # See [Resource
244 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
245 # for more info.
246 &quot;A String&quot;,
247 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700248 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
249 # published to.
250 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
251 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
252 # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
253 },
254 },
255 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # A condition which determines whether an asset update should be published.
256 # If specified, an asset will be returned only when the expression evaluates
257 # to true.
258 # When set, `expression` field in the `Expr` must be a valid [CEL expression]
259 # (https://github.com/google/cel-spec) on a TemporalAsset with name
260 # `temporal_asset`. Example: a Feed with expression (&quot;temporal_asset.deleted
261 # == true&quot;) will only publish Asset deletions. Other fields of `Expr` are
262 # optional.
263 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
264 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700266 # Example (Comparison):
267 #
268 # title: &quot;Summary size limit&quot;
269 # description: &quot;Determines if a summary is less than 100 chars&quot;
270 # expression: &quot;document.summary.size() &lt; 100&quot;
271 #
272 # Example (Equality):
273 #
274 # title: &quot;Requestor is owner&quot;
275 # description: &quot;Determines if requestor is the document owner&quot;
276 # expression: &quot;document.owner == request.auth.claims.email&quot;
277 #
278 # Example (Logic):
279 #
280 # title: &quot;Public documents&quot;
281 # description: &quot;Determine whether the document should be publicly visible&quot;
282 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
283 #
284 # Example (Data Manipulation):
285 #
286 # title: &quot;Notification string&quot;
287 # description: &quot;Create a notification string with a timestamp.&quot;
288 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
289 #
290 # The exact variables and functions that may be referenced within an expression
291 # are determined by the service that evaluates it. See the service
292 # documentation for additional information.
293 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
294 # describes the expression, e.g. when hovered over it in a UI.
295 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
296 # reporting, e.g. a file name and a position in the file.
297 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
298 # syntax.
299 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
300 # its purpose. This can be used e.g. in UIs which allow to enter the
301 # expression.
302 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 }</pre>
304</div>
305
306<div class="method">
307 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
308 <pre>Deletes an asset feed.
309
310Args:
311 name: string, Required. The name of the feed and it must be in the format of:
312projects/project_number/feeds/feed_id
313folders/folder_number/feeds/feed_id
314organizations/organization_number/feeds/feed_id (required)
315 x__xgafv: string, V1 error format.
316 Allowed values
317 1 - v1 error format
318 2 - v2 error format
319
320Returns:
321 An object of the form:
322
323 { # A generic empty message that you can re-use to avoid defining duplicated
324 # empty messages in your APIs. A typical example is to use it as the request
325 # or the response type of an API method. For instance:
326 #
327 # service Foo {
328 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
329 # }
330 #
331 # The JSON representation for `Empty` is empty JSON object `{}`.
332 }</pre>
333</div>
334
335<div class="method">
336 <code class="details" id="get">get(name, x__xgafv=None)</code>
337 <pre>Gets details about an asset feed.
338
339Args:
340 name: string, Required. The name of the Feed and it must be in the format of:
341projects/project_number/feeds/feed_id
342folders/folder_number/feeds/feed_id
343organizations/organization_number/feeds/feed_id (required)
344 x__xgafv: string, V1 error format.
345 Allowed values
346 1 - v1 error format
347 2 - v2 error format
348
349Returns:
350 An object of the form:
351
352 { # An asset feed used to export asset updates to a destinations.
353 # An asset feed filter controls what updates are exported.
354 # The asset feed must be created within a project, organization, or
355 # folder. Supported destinations are:
356 # Pub/Sub topics.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700357 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
358 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
359 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
360 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
361 #
362 # The client-assigned feed identifier must be unique within the parent
363 # project/folder/organization.
364 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
365 # type will be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700366 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
367 # or both of asset_names and asset_types. Only asset updates matching
368 # specified asset_names or asset_types are exported to the feed.
369 # Example: `&quot;compute.googleapis.com/Disk&quot;`
370 #
371 # See [this
372 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
373 # for a list of all supported asset types.
374 &quot;A String&quot;,
375 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
377 # either or both of asset_names and asset_types. Only asset updates matching
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700378 # specified asset_names or asset_types are exported to the feed.
379 # Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700380 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
381 # See [Resource
382 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
383 # for more info.
384 &quot;A String&quot;,
385 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700386 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
387 # published to.
388 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
389 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
390 # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
391 },
392 },
393 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # A condition which determines whether an asset update should be published.
394 # If specified, an asset will be returned only when the expression evaluates
395 # to true.
396 # When set, `expression` field in the `Expr` must be a valid [CEL expression]
397 # (https://github.com/google/cel-spec) on a TemporalAsset with name
398 # `temporal_asset`. Example: a Feed with expression (&quot;temporal_asset.deleted
399 # == true&quot;) will only publish Asset deletions. Other fields of `Expr` are
400 # optional.
401 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
402 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700404 # Example (Comparison):
405 #
406 # title: &quot;Summary size limit&quot;
407 # description: &quot;Determines if a summary is less than 100 chars&quot;
408 # expression: &quot;document.summary.size() &lt; 100&quot;
409 #
410 # Example (Equality):
411 #
412 # title: &quot;Requestor is owner&quot;
413 # description: &quot;Determines if requestor is the document owner&quot;
414 # expression: &quot;document.owner == request.auth.claims.email&quot;
415 #
416 # Example (Logic):
417 #
418 # title: &quot;Public documents&quot;
419 # description: &quot;Determine whether the document should be publicly visible&quot;
420 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
421 #
422 # Example (Data Manipulation):
423 #
424 # title: &quot;Notification string&quot;
425 # description: &quot;Create a notification string with a timestamp.&quot;
426 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
427 #
428 # The exact variables and functions that may be referenced within an expression
429 # are determined by the service that evaluates it. See the service
430 # documentation for additional information.
431 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
432 # describes the expression, e.g. when hovered over it in a UI.
433 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
434 # reporting, e.g. a file name and a position in the file.
435 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
436 # syntax.
437 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
438 # its purpose. This can be used e.g. in UIs which allow to enter the
439 # expression.
440 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 }</pre>
442</div>
443
444<div class="method">
445 <code class="details" id="list">list(parent, x__xgafv=None)</code>
446 <pre>Lists all asset feeds in a parent project/folder/organization.
447
448Args:
449 parent: string, Required. The parent project/folder/organization whose feeds are to be
450listed. It can only be using project/folder/organization number (such as
451&quot;folders/12345&quot;)&quot;, or a project ID (such as &quot;projects/my-project-id&quot;). (required)
452 x__xgafv: string, V1 error format.
453 Allowed values
454 1 - v1 error format
455 2 - v2 error format
456
457Returns:
458 An object of the form:
459
460 {
461 &quot;feeds&quot;: [ # A list of feeds.
462 { # An asset feed used to export asset updates to a destinations.
463 # An asset feed filter controls what updates are exported.
464 # The asset feed must be created within a project, organization, or
465 # folder. Supported destinations are:
466 # Pub/Sub topics.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700467 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
468 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
469 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
470 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
471 #
472 # The client-assigned feed identifier must be unique within the parent
473 # project/folder/organization.
474 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
475 # type will be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700476 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
477 # or both of asset_names and asset_types. Only asset updates matching
478 # specified asset_names or asset_types are exported to the feed.
479 # Example: `&quot;compute.googleapis.com/Disk&quot;`
480 #
481 # See [this
482 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
483 # for a list of all supported asset types.
484 &quot;A String&quot;,
485 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
487 # either or both of asset_names and asset_types. Only asset updates matching
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700488 # specified asset_names or asset_types are exported to the feed.
489 # Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700490 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
491 # See [Resource
492 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
493 # for more info.
494 &quot;A String&quot;,
495 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700496 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
497 # published to.
498 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
499 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
500 # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
501 },
502 },
503 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # A condition which determines whether an asset update should be published.
504 # If specified, an asset will be returned only when the expression evaluates
505 # to true.
506 # When set, `expression` field in the `Expr` must be a valid [CEL expression]
507 # (https://github.com/google/cel-spec) on a TemporalAsset with name
508 # `temporal_asset`. Example: a Feed with expression (&quot;temporal_asset.deleted
509 # == true&quot;) will only publish Asset deletions. Other fields of `Expr` are
510 # optional.
511 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
512 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim65020912020-05-20 12:08:20 -0700513 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700514 # Example (Comparison):
515 #
516 # title: &quot;Summary size limit&quot;
517 # description: &quot;Determines if a summary is less than 100 chars&quot;
518 # expression: &quot;document.summary.size() &lt; 100&quot;
519 #
520 # Example (Equality):
521 #
522 # title: &quot;Requestor is owner&quot;
523 # description: &quot;Determines if requestor is the document owner&quot;
524 # expression: &quot;document.owner == request.auth.claims.email&quot;
525 #
526 # Example (Logic):
527 #
528 # title: &quot;Public documents&quot;
529 # description: &quot;Determine whether the document should be publicly visible&quot;
530 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
531 #
532 # Example (Data Manipulation):
533 #
534 # title: &quot;Notification string&quot;
535 # description: &quot;Create a notification string with a timestamp.&quot;
536 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
537 #
538 # The exact variables and functions that may be referenced within an expression
539 # are determined by the service that evaluates it. See the service
540 # documentation for additional information.
541 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
542 # describes the expression, e.g. when hovered over it in a UI.
543 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
544 # reporting, e.g. a file name and a position in the file.
545 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
546 # syntax.
547 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
548 # its purpose. This can be used e.g. in UIs which allow to enter the
549 # expression.
550 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700551 },
552 ],
553 }</pre>
554</div>
555
556<div class="method">
557 <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
558 <pre>Updates an asset feed configuration.
559
560Args:
561 name: string, Required. The format will be
562projects/{project_number}/feeds/{client-assigned_feed_identifier} or
563folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
564organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
565
566The client-assigned feed identifier must be unique within the parent
567project/folder/organization. (required)
568 body: object, The request body.
569 The object takes the form of:
570
571{ # Update asset feed request.
572 &quot;updateMask&quot;: &quot;A String&quot;, # Required. Only updates the `feed` fields indicated by this mask.
573 # The field mask must not be empty, and it must not contain fields that
574 # are immutable or only set by the server.
575 &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
576 # field `name` must be in the format of:
577 # projects/project_number/feeds/feed_id or
578 # folders/folder_number/feeds/feed_id or
579 # organizations/organization_number/feeds/feed_id.
580 # An asset feed filter controls what updates are exported.
581 # The asset feed must be created within a project, organization, or
582 # folder. Supported destinations are:
583 # Pub/Sub topics.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700584 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
585 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
586 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
587 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
588 #
589 # The client-assigned feed identifier must be unique within the parent
590 # project/folder/organization.
591 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
592 # type will be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700593 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
594 # or both of asset_names and asset_types. Only asset updates matching
595 # specified asset_names or asset_types are exported to the feed.
596 # Example: `&quot;compute.googleapis.com/Disk&quot;`
597 #
598 # See [this
599 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
600 # for a list of all supported asset types.
601 &quot;A String&quot;,
602 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
604 # either or both of asset_names and asset_types. Only asset updates matching
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700605 # specified asset_names or asset_types are exported to the feed.
606 # Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700607 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
608 # See [Resource
609 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
610 # for more info.
611 &quot;A String&quot;,
612 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700613 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
614 # published to.
615 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
616 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
617 # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
618 },
619 },
620 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # A condition which determines whether an asset update should be published.
621 # If specified, an asset will be returned only when the expression evaluates
622 # to true.
623 # When set, `expression` field in the `Expr` must be a valid [CEL expression]
624 # (https://github.com/google/cel-spec) on a TemporalAsset with name
625 # `temporal_asset`. Example: a Feed with expression (&quot;temporal_asset.deleted
626 # == true&quot;) will only publish Asset deletions. Other fields of `Expr` are
627 # optional.
628 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
629 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim65020912020-05-20 12:08:20 -0700630 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700631 # Example (Comparison):
632 #
633 # title: &quot;Summary size limit&quot;
634 # description: &quot;Determines if a summary is less than 100 chars&quot;
635 # expression: &quot;document.summary.size() &lt; 100&quot;
636 #
637 # Example (Equality):
638 #
639 # title: &quot;Requestor is owner&quot;
640 # description: &quot;Determines if requestor is the document owner&quot;
641 # expression: &quot;document.owner == request.auth.claims.email&quot;
642 #
643 # Example (Logic):
644 #
645 # title: &quot;Public documents&quot;
646 # description: &quot;Determine whether the document should be publicly visible&quot;
647 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
648 #
649 # Example (Data Manipulation):
650 #
651 # title: &quot;Notification string&quot;
652 # description: &quot;Create a notification string with a timestamp.&quot;
653 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
654 #
655 # The exact variables and functions that may be referenced within an expression
656 # are determined by the service that evaluates it. See the service
657 # documentation for additional information.
658 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
659 # describes the expression, e.g. when hovered over it in a UI.
660 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
661 # reporting, e.g. a file name and a position in the file.
662 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
663 # syntax.
664 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
665 # its purpose. This can be used e.g. in UIs which allow to enter the
666 # expression.
667 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 },
669 }
670
671 x__xgafv: string, V1 error format.
672 Allowed values
673 1 - v1 error format
674 2 - v2 error format
675
676Returns:
677 An object of the form:
678
679 { # An asset feed used to export asset updates to a destinations.
680 # An asset feed filter controls what updates are exported.
681 # The asset feed must be created within a project, organization, or
682 # folder. Supported destinations are:
683 # Pub/Sub topics.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700684 &quot;name&quot;: &quot;A String&quot;, # Required. The format will be
685 # projects/{project_number}/feeds/{client-assigned_feed_identifier} or
686 # folders/{folder_number}/feeds/{client-assigned_feed_identifier} or
687 # organizations/{organization_number}/feeds/{client-assigned_feed_identifier}
688 #
689 # The client-assigned feed identifier must be unique within the parent
690 # project/folder/organization.
691 &quot;contentType&quot;: &quot;A String&quot;, # Asset content type. If not specified, no content but the asset name and
692 # type will be returned.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700693 &quot;assetTypes&quot;: [ # A list of types of the assets to receive updates. You must specify either
694 # or both of asset_names and asset_types. Only asset updates matching
695 # specified asset_names or asset_types are exported to the feed.
696 # Example: `&quot;compute.googleapis.com/Disk&quot;`
697 #
698 # See [this
699 # topic](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
700 # for a list of all supported asset types.
701 &quot;A String&quot;,
702 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;assetNames&quot;: [ # A list of the full names of the assets to receive updates. You must specify
704 # either or both of asset_names and asset_types. Only asset updates matching
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700705 # specified asset_names or asset_types are exported to the feed.
706 # Example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
708 # See [Resource
709 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
710 # for more info.
711 &quot;A String&quot;,
712 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700713 &quot;feedOutputConfig&quot;: { # Output configuration for asset feed destination. # Required. Feed output configuration defining where the asset updates are
714 # published to.
715 &quot;pubsubDestination&quot;: { # A Pub/Sub destination. # Destination on Pub/Sub.
716 &quot;topic&quot;: &quot;A String&quot;, # The name of the Pub/Sub topic to publish to.
717 # Example: `projects/PROJECT_ID/topics/TOPIC_ID`.
718 },
719 },
720 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # A condition which determines whether an asset update should be published.
721 # If specified, an asset will be returned only when the expression evaluates
722 # to true.
723 # When set, `expression` field in the `Expr` must be a valid [CEL expression]
724 # (https://github.com/google/cel-spec) on a TemporalAsset with name
725 # `temporal_asset`. Example: a Feed with expression (&quot;temporal_asset.deleted
726 # == true&quot;) will only publish Asset deletions. Other fields of `Expr` are
727 # optional.
728 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
729 # are documented at https://github.com/google/cel-spec.
Bu Sun Kim65020912020-05-20 12:08:20 -0700730 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700731 # Example (Comparison):
732 #
733 # title: &quot;Summary size limit&quot;
734 # description: &quot;Determines if a summary is less than 100 chars&quot;
735 # expression: &quot;document.summary.size() &lt; 100&quot;
736 #
737 # Example (Equality):
738 #
739 # title: &quot;Requestor is owner&quot;
740 # description: &quot;Determines if requestor is the document owner&quot;
741 # expression: &quot;document.owner == request.auth.claims.email&quot;
742 #
743 # Example (Logic):
744 #
745 # title: &quot;Public documents&quot;
746 # description: &quot;Determine whether the document should be publicly visible&quot;
747 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
748 #
749 # Example (Data Manipulation):
750 #
751 # title: &quot;Notification string&quot;
752 # description: &quot;Create a notification string with a timestamp.&quot;
753 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
754 #
755 # The exact variables and functions that may be referenced within an expression
756 # are determined by the service that evaluates it. See the service
757 # documentation for additional information.
758 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
759 # describes the expression, e.g. when hovered over it in a UI.
760 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
761 # reporting, e.g. a file name and a position in the file.
762 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
763 # syntax.
764 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
765 # its purpose. This can be used e.g. in UIs which allow to enter the
766 # expression.
767 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700768 }</pre>
769</div>
770
771</body></html>