@@ -1211,62 +1211,93 @@ async def sample_search_all_resources():
1211
1211
Examples:
1212
1212
1213
1213
- ``name:Important`` to find Google Cloud resources
1214
- whose name contains " Important" as a word.
1214
+ whose name contains `` Important`` as a word.
1215
1215
- ``name=Important`` to find the Google Cloud resource
1216
- whose name is exactly " Important" .
1216
+ whose name is exactly `` Important`` .
1217
1217
- ``displayName:Impor*`` to find Google Cloud resources
1218
- whose display name contains " Impor" as a prefix of
1218
+ whose display name contains `` Impor`` as a prefix of
1219
1219
any word in the field.
1220
1220
- ``location:us-west*`` to find Google Cloud resources
1221
- whose location contains both "us" and " west" as
1221
+ whose location contains both ``us`` and `` west`` as
1222
1222
prefixes.
1223
1223
- ``labels:prod`` to find Google Cloud resources whose
1224
- labels contain " prod" as a key or value.
1224
+ labels contain `` prod`` as a key or value.
1225
1225
- ``labels.env:prod`` to find Google Cloud resources
1226
- that have a label " env" and its value is " prod" .
1226
+ that have a label `` env`` and its value is `` prod`` .
1227
1227
- ``labels.env:*`` to find Google Cloud resources that
1228
- have a label "env".
1228
+ have a label ``env``.
1229
+ - ``tagKeys:env`` to find Google Cloud resources that
1230
+ have directly attached tags where the
1231
+ ```TagKey`` <https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey>`__
1232
+ .\ ``namespacedName`` contains ``env``.
1233
+ - ``tagValues:prod*`` to find Google Cloud resources
1234
+ that have directly attached tags where the
1235
+ ```TagValue`` <https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue>`__
1236
+ .\ ``namespacedName`` contains a word prefixed by
1237
+ ``prod``.
1238
+ - ``tagValueIds=tagValues/123`` to find Google Cloud
1239
+ resources that have directly attached tags where the
1240
+ ```TagValue`` <https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue>`__
1241
+ .\ ``name`` is exactly ``tagValues/123``.
1242
+ - ``effectiveTagKeys:env`` to find Google Cloud
1243
+ resources that have directly attached or inherited
1244
+ tags where the
1245
+ ```TagKey`` <https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey>`__
1246
+ .\ ``namespacedName`` contains ``env``.
1247
+ - ``effectiveTagValues:prod*`` to find Google Cloud
1248
+ resources that have directly attached or inherited
1249
+ tags where the
1250
+ ```TagValue`` <https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue>`__
1251
+ .\ ``namespacedName`` contains a word prefixed by
1252
+ ``prod``.
1253
+ - ``effectiveTagValueIds=tagValues/123`` to find Google
1254
+ Cloud resources that have directly attached or
1255
+ inherited tags where the
1256
+ ```TagValue`` <https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue>`__
1257
+ .\ ``name`` is exactly ``tagValues/123``.
1229
1258
- ``kmsKey:key`` to find Google Cloud resources
1230
1259
encrypted with a customer-managed encryption key
1231
- whose name contains " key" as a word. This field is
1260
+ whose name contains `` key`` as a word. This field is
1232
1261
deprecated. Please use the ``kmsKeys`` field to
1233
1262
retrieve Cloud KMS key information.
1234
1263
- ``kmsKeys:key`` to find Google Cloud resources
1235
1264
encrypted with customer-managed encryption keys whose
1236
- name contains the word " key" .
1265
+ name contains the word `` key`` .
1237
1266
- ``relationships:instance-group-1`` to find Google
1238
1267
Cloud resources that have relationships with
1239
- " instance-group-1" in the related resource name.
1268
+ `` instance-group-1`` in the related resource name.
1240
1269
- ``relationships:INSTANCE_TO_INSTANCEGROUP`` to find
1241
1270
Compute Engine instances that have relationships of
1242
- type " INSTANCE_TO_INSTANCEGROUP" .
1271
+ type `` INSTANCE_TO_INSTANCEGROUP`` .
1243
1272
- ``relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1``
1244
1273
to find Compute Engine instances that have
1245
- relationships with " instance-group-1" in the Compute
1246
- Engine instance group resource name, for relationship
1247
- type " INSTANCE_TO_INSTANCEGROUP" .
1274
+ relationships with `` instance-group-1`` in the
1275
+ Compute Engine instance group resource name, for
1276
+ relationship type `` INSTANCE_TO_INSTANCEGROUP`` .
1248
1277
- ``state:ACTIVE`` to find Google Cloud resources whose
1249
- state contains " ACTIVE" as a word.
1278
+ state contains `` ACTIVE`` as a word.
1250
1279
- ``NOT state:ACTIVE`` to find Google Cloud resources
1251
- whose state doesn't contain " ACTIVE" as a word.
1280
+ whose state doesn't contain `` ACTIVE`` as a word.
1252
1281
- ``createTime<1609459200`` to find Google Cloud
1253
- resources that were created before "2021-01-01
1254
- 00:00:00 UTC". 1609459200 is the epoch timestamp of
1255
- "2021-01-01 00:00:00 UTC" in seconds.
1282
+ resources that were created before
1283
+ ``2021-01-01 00:00:00 UTC``. ``1609459200`` is the
1284
+ epoch timestamp of ``2021-01-01 00:00:00 UTC`` in
1285
+ seconds.
1256
1286
- ``updateTime>1609459200`` to find Google Cloud
1257
- resources that were updated after "2021-01-01
1258
- 00:00:00 UTC". 1609459200 is the epoch timestamp of
1259
- "2021-01-01 00:00:00 UTC" in seconds.
1287
+ resources that were updated after
1288
+ ``2021-01-01 00:00:00 UTC``. ``1609459200`` is the
1289
+ epoch timestamp of ``2021-01-01 00:00:00 UTC`` in
1290
+ seconds.
1260
1291
- ``Important`` to find Google Cloud resources that
1261
- contain " Important" as a word in any of the
1292
+ contain `` Important`` as a word in any of the
1262
1293
searchable fields.
1263
1294
- ``Impor*`` to find Google Cloud resources that
1264
- contain " Impor" as a prefix of any word in any of the
1265
- searchable fields.
1295
+ contain `` Impor`` as a prefix of any word in any of
1296
+ the searchable fields.
1266
1297
- ``Important location:(us-west1 OR global)`` to find
1267
- Google Cloud resources that contain " Important" as a
1268
- word in any of the searchable fields and are also
1269
- located in the " us-west1" region or the " global"
1298
+ Google Cloud resources that contain `` Important`` as
1299
+ a word in any of the searchable fields and are also
1300
+ located in the `` us-west1`` region or the `` global``
1270
1301
location.
1271
1302
1272
1303
This corresponds to the ``query`` field
@@ -1880,8 +1911,8 @@ async def query_assets(
1880
1911
metadata : Sequence [Tuple [str , str ]] = (),
1881
1912
) -> asset_service .QueryAssetsResponse :
1882
1913
r"""Issue a job that queries assets using a SQL statement compatible
1883
- with `BigQuery Standard
1884
- SQL <http ://cloud/bigquery/docs/reference/standard-sql/enabling-standard -sql>`__.
1914
+ with `BigQuery
1915
+ SQL <https ://cloud.google.com /bigquery/docs/introduction -sql>`__.
1885
1916
1886
1917
If the query execution finishes within timeout and there's no
1887
1918
pagination, the full query results will be returned in the
@@ -1892,9 +1923,9 @@ async def query_assets(
1892
1923
``QueryAssets`` call.
1893
1924
1894
1925
Note, the query result has approximately 10 GB limitation
1895
- enforced by BigQuery
1896
- https://cloud.google.com/bigquery/docs/best-practices-performance-output,
1897
- queries return larger results will result in errors.
1926
+ enforced by
1927
+ `BigQuery < https://cloud.google.com/bigquery/docs/best-practices-performance-output>`__.
1928
+ Queries return larger results will result in errors.
1898
1929
1899
1930
.. code-block:: python
1900
1931
0 commit comments