google-cloud-asset-v1 0.26.1 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a35e756907ebd1db6200332672b33c298efd5b741d7250f907691d4a33fd0736
4
- data.tar.gz: ab178dde1f4d28102bf6c4bc3d7a34b0a640ba2b096a0b08e9502fd4cebc1ec3
3
+ metadata.gz: 01243b2f7e69373b2cfbd53589a2a22992428f3cd31eecdd121a6fa07f9d77b8
4
+ data.tar.gz: bc8c8cb91bb50b4a4c3517e515c696933f9c45e6afb068ced6f5579f5cf19d1e
5
5
  SHA512:
6
- metadata.gz: 4308d598b287cee09c334bebb2fc331aab2a7c3529a86f2d624ce9522ba4af528353883e27396b8b0f7df56496fe8e02c4ffa43381f4fbee2758c4654dd26e50
7
- data.tar.gz: 763ac86ca5e01fcbf614214cf958ec3ca1c667377140c148ec72b2a588aa9118090e77379689ceb181b7f6be184d1e57cc4ccee365306039934825449e38c905
6
+ metadata.gz: 8fa655567ef6f712b3c58f8aaf7b3b24e5bc4c78d2348c2695b1f1471dbf650ebb2e2e2f258432de9c52e2a5110cde54d6fb4ff51d14922e150b5b007ca4528a
7
+ data.tar.gz: 76e6fe824da276ba998685fea9f7bfb187116c40d0b44ea2d05697a9c6354060115d7c8e470a3fc71200c3fe32b0bd5e7d5bb6e6b023a95285c01a7908203930
@@ -236,7 +236,8 @@ module Google
236
236
  credentials: credentials,
237
237
  endpoint: @config.endpoint,
238
238
  channel_args: @config.channel_args,
239
- interceptors: @config.interceptors
239
+ interceptors: @config.interceptors,
240
+ channel_pool_config: @config.channel_pool
240
241
  )
241
242
  end
242
243
 
@@ -1173,49 +1174,73 @@ module Google
1173
1174
  # Examples:
1174
1175
  #
1175
1176
  # * `name:Important` to find Google Cloud resources whose name contains
1176
- # "Important" as a word.
1177
+ # `Important` as a word.
1177
1178
  # * `name=Important` to find the Google Cloud resource whose name is exactly
1178
- # "Important".
1179
+ # `Important`.
1179
1180
  # * `displayName:Impor*` to find Google Cloud resources whose display name
1180
- # contains "Impor" as a prefix of any word in the field.
1181
+ # contains `Impor` as a prefix of any word in the field.
1181
1182
  # * `location:us-west*` to find Google Cloud resources whose location
1182
- # contains both "us" and "west" as prefixes.
1183
- # * `labels:prod` to find Google Cloud resources whose labels contain "prod"
1183
+ # contains both `us` and `west` as prefixes.
1184
+ # * `labels:prod` to find Google Cloud resources whose labels contain `prod`
1184
1185
  # as a key or value.
1185
- # * `labels.env:prod` to find Google Cloud resources that have a label "env"
1186
- # and its value is "prod".
1187
- # * `labels.env:*` to find Google Cloud resources that have a label "env".
1186
+ # * `labels.env:prod` to find Google Cloud resources that have a label `env`
1187
+ # and its value is `prod`.
1188
+ # * `labels.env:*` to find Google Cloud resources that have a label `env`.
1189
+ # * `tagKeys:env` to find Google Cloud resources that have directly
1190
+ # attached tags where the
1191
+ # [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
1192
+ # .`namespacedName` contains `env`.
1193
+ # * `tagValues:prod*` to find Google Cloud resources that have directly
1194
+ # attached tags where the
1195
+ # [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1196
+ # .`namespacedName` contains a word prefixed by `prod`.
1197
+ # * `tagValueIds=tagValues/123` to find Google Cloud resources that have
1198
+ # directly attached tags where the
1199
+ # [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1200
+ # .`name` is exactly `tagValues/123`.
1201
+ # * `effectiveTagKeys:env` to find Google Cloud resources that have
1202
+ # directly attached or inherited tags where the
1203
+ # [`TagKey`](https://cloud.google.com/resource-manager/reference/rest/v3/tagKeys#resource:-tagkey)
1204
+ # .`namespacedName` contains `env`.
1205
+ # * `effectiveTagValues:prod*` to find Google Cloud resources that have
1206
+ # directly attached or inherited tags where the
1207
+ # [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1208
+ # .`namespacedName` contains a word prefixed by `prod`.
1209
+ # * `effectiveTagValueIds=tagValues/123` to find Google Cloud resources that
1210
+ # have directly attached or inherited tags where the
1211
+ # [`TagValue`](https://cloud.google.com/resource-manager/reference/rest/v3/tagValues#resource:-tagvalue)
1212
+ # .`name` is exactly `tagValues/123`.
1188
1213
  # * `kmsKey:key` to find Google Cloud resources encrypted with a
1189
- # customer-managed encryption key whose name contains "key" as a word. This
1214
+ # customer-managed encryption key whose name contains `key` as a word. This
1190
1215
  # field is deprecated. Please use the `kmsKeys` field to retrieve Cloud KMS
1191
1216
  # key information.
1192
1217
  # * `kmsKeys:key` to find Google Cloud resources encrypted with
1193
- # customer-managed encryption keys whose name contains the word "key".
1218
+ # customer-managed encryption keys whose name contains the word `key`.
1194
1219
  # * `relationships:instance-group-1` to find Google Cloud resources that have
1195
- # relationships with "instance-group-1" in the related resource name.
1220
+ # relationships with `instance-group-1` in the related resource name.
1196
1221
  # * `relationships:INSTANCE_TO_INSTANCEGROUP` to find Compute Engine
1197
- # instances that have relationships of type "INSTANCE_TO_INSTANCEGROUP".
1222
+ # instances that have relationships of type `INSTANCE_TO_INSTANCEGROUP`.
1198
1223
  # * `relationships.INSTANCE_TO_INSTANCEGROUP:instance-group-1` to find
1199
- # Compute Engine instances that have relationships with "instance-group-1"
1224
+ # Compute Engine instances that have relationships with `instance-group-1`
1200
1225
  # in the Compute Engine instance group resource name, for relationship type
1201
- # "INSTANCE_TO_INSTANCEGROUP".
1226
+ # `INSTANCE_TO_INSTANCEGROUP`.
1202
1227
  # * `state:ACTIVE` to find Google Cloud resources whose state contains
1203
- # "ACTIVE" as a word.
1228
+ # `ACTIVE` as a word.
1204
1229
  # * `NOT state:ACTIVE` to find Google Cloud resources whose state doesn't
1205
- # contain "ACTIVE" as a word.
1230
+ # contain `ACTIVE` as a word.
1206
1231
  # * `createTime<1609459200` to find Google Cloud resources that were created
1207
- # before "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
1208
- # "2021-01-01 00:00:00 UTC" in seconds.
1232
+ # before `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of
1233
+ # `2021-01-01 00:00:00 UTC` in seconds.
1209
1234
  # * `updateTime>1609459200` to find Google Cloud resources that were updated
1210
- # after "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of
1211
- # "2021-01-01 00:00:00 UTC" in seconds.
1212
- # * `Important` to find Google Cloud resources that contain "Important" as a
1235
+ # after `2021-01-01 00:00:00 UTC`. `1609459200` is the epoch timestamp of
1236
+ # `2021-01-01 00:00:00 UTC` in seconds.
1237
+ # * `Important` to find Google Cloud resources that contain `Important` as a
1213
1238
  # word in any of the searchable fields.
1214
- # * `Impor*` to find Google Cloud resources that contain "Impor" as a prefix
1239
+ # * `Impor*` to find Google Cloud resources that contain `Impor` as a prefix
1215
1240
  # of any word in any of the searchable fields.
1216
1241
  # * `Important location:(us-west1 OR global)` to find Google Cloud
1217
- # resources that contain "Important" as a word in any of the searchable
1218
- # fields and are also located in the "us-west1" region or the "global"
1242
+ # resources that contain `Important` as a word in any of the searchable
1243
+ # fields and are also located in the `us-west1` region or the `global`
1219
1244
  # location.
1220
1245
  # @param asset_types [::Array<::String>]
1221
1246
  # Optional. A list of asset types that this request searches for. If empty,
@@ -1234,10 +1259,10 @@ module Google
1234
1259
  # supported asset type, an INVALID_ARGUMENT error will be returned.
1235
1260
  # @param page_size [::Integer]
1236
1261
  # Optional. The page size for search result pagination. Page size is capped
1237
- # at 500 even if a larger value is given. If set to zero, server will pick an
1238
- # appropriate default. Returned results may be fewer than requested. When
1239
- # this happens, there could be more results as long as `next_page_token` is
1240
- # returned.
1262
+ # at 500 even if a larger value is given. If set to zero or a negative value,
1263
+ # server will pick an appropriate default. Returned results may be fewer than
1264
+ # requested. When this happens, there could be more results as long as
1265
+ # `next_page_token` is returned.
1241
1266
  # @param page_token [::String]
1242
1267
  # Optional. If present, then retrieve the next batch of results from the
1243
1268
  # preceding call to this method. `page_token` must be the value of
@@ -1248,7 +1273,7 @@ module Google
1248
1273
  # the results. The default order is ascending. Add " DESC" after the field
1249
1274
  # name to indicate descending order. Redundant space characters are ignored.
1250
1275
  # Example: "location DESC, name".
1251
- # Only singular primitive fields in the response are sortable:
1276
+ # Only the following fields in the response are sortable:
1252
1277
  #
1253
1278
  # * name
1254
1279
  # * assetType
@@ -1261,43 +1286,37 @@ module Google
1261
1286
  # * state
1262
1287
  # * parentFullResourceName
1263
1288
  # * parentAssetType
1264
- #
1265
- # All the other fields such as repeated fields (e.g., `networkTags`,
1266
- # `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
1267
- # `additionalAttributes`) are not supported.
1268
1289
  # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
1269
- # Optional. A comma-separated list of fields specifying which fields to be
1270
- # returned in ResourceSearchResult. Only '*' or combination of top level
1271
- # fields can be specified. Field names of both snake_case and camelCase are
1272
- # supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
1273
- #
1274
- # The read_mask paths must be valid field paths listed but not limited to
1275
- # (both snake_case and camelCase are supported):
1276
- #
1277
- # * name
1278
- # * assetType
1279
- # * project
1280
- # * displayName
1281
- # * description
1282
- # * location
1283
- # * tagKeys
1284
- # * tagValues
1285
- # * tagValueIds
1286
- # * labels
1287
- # * networkTags
1288
- # * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
1289
- # retrieve Cloud KMS key information.)
1290
- # * kmsKeys
1291
- # * createTime
1292
- # * updateTime
1293
- # * state
1294
- # * additionalAttributes
1295
- # * versionedResources
1296
- #
1297
- # If read_mask is not specified, all fields except versionedResources will
1298
- # be returned.
1299
- # If only '*' is specified, all fields including versionedResources will be
1300
- # returned.
1290
+ # Optional. A comma-separated list of fields that you want returned in the
1291
+ # results. The following fields are returned by default if not specified:
1292
+ #
1293
+ # * `name`
1294
+ # * `assetType`
1295
+ # * `project`
1296
+ # * `folders`
1297
+ # * `organization`
1298
+ # * `displayName`
1299
+ # * `description`
1300
+ # * `location`
1301
+ # * `labels`
1302
+ # * `tags`
1303
+ # * `effectiveTags`
1304
+ # * `networkTags`
1305
+ # * `kmsKeys`
1306
+ # * `createTime`
1307
+ # * `updateTime`
1308
+ # * `state`
1309
+ # * `additionalAttributes`
1310
+ # * `parentFullResourceName`
1311
+ # * `parentAssetType`
1312
+ #
1313
+ # Some fields of large size, such as `versionedResources`,
1314
+ # `attachedResources`, `effectiveTags` etc., are not returned by default, but
1315
+ # you can specify them in the `read_mask` parameter if you want to include
1316
+ # them. If `"*"` is specified, all [available
1317
+ # fields](https://cloud.google.com/asset-inventory/docs/reference/rest/v1/TopLevel/searchAllResources#resourcesearchresult)
1318
+ # are returned.
1319
+ # Examples: `"name,location"`, `"name,versionedResources"`, `"*"`.
1301
1320
  # Any invalid field path will trigger INVALID_ARGUMENT error.
1302
1321
  #
1303
1322
  # @yield [response, operation] Access the result along with the RPC operation
@@ -1448,10 +1467,10 @@ module Google
1448
1467
  # principal type "user".
1449
1468
  # @param page_size [::Integer]
1450
1469
  # Optional. The page size for search result pagination. Page size is capped
1451
- # at 500 even if a larger value is given. If set to zero, server will pick an
1452
- # appropriate default. Returned results may be fewer than requested. When
1453
- # this happens, there could be more results as long as `next_page_token` is
1454
- # returned.
1470
+ # at 500 even if a larger value is given. If set to zero or a negative value,
1471
+ # server will pick an appropriate default. Returned results may be fewer than
1472
+ # requested. When this happens, there could be more results as long as
1473
+ # `next_page_token` is returned.
1455
1474
  # @param page_token [::String]
1456
1475
  # Optional. If present, retrieve the next batch of results from the preceding
1457
1476
  # call to this method. `page_token` must be the value of `next_page_token`
@@ -1896,8 +1915,7 @@ module Google
1896
1915
 
1897
1916
  ##
1898
1917
  # Issue a job that queries assets using a SQL statement compatible with
1899
- # [BigQuery Standard
1900
- # SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1918
+ # [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
1901
1919
  #
1902
1920
  # If the query execution finishes within timeout and there's no pagination,
1903
1921
  # the full query results will be returned in the `QueryAssetsResponse`.
@@ -1906,9 +1924,8 @@ module Google
1906
1924
  # with the `job_reference` from the a previous `QueryAssets` call.
1907
1925
  #
1908
1926
  # Note, the query result has approximately 10 GB limitation enforced by
1909
- # BigQuery
1910
- # https://cloud.google.com/bigquery/docs/best-practices-performance-output,
1911
- # queries return larger results will result in errors.
1927
+ # [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output).
1928
+ # Queries return larger results will result in errors.
1912
1929
  #
1913
1930
  # @overload query_assets(request, options = nil)
1914
1931
  # Pass arguments to `query_assets` via a request object, either of type
@@ -1933,8 +1950,8 @@ module Google
1933
1950
  #
1934
1951
  # Only assets belonging to the `parent` will be returned.
1935
1952
  # @param statement [::String]
1936
- # Optional. A SQL statement that's compatible with [BigQuery Standard
1937
- # SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1953
+ # Optional. A SQL statement that's compatible with [BigQuery
1954
+ # SQL](https://cloud.google.com/bigquery/docs/introduction-sql).
1938
1955
  # @param job_reference [::String]
1939
1956
  # Optional. Reference to the query job, which is from the
1940
1957
  # `QueryAssetsResponse` of previous `QueryAssets` call.
@@ -3114,6 +3131,14 @@ module Google
3114
3131
  end
3115
3132
  end
3116
3133
 
3134
+ ##
3135
+ # Configuration for the channel pool
3136
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
3137
+ #
3138
+ def channel_pool
3139
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
3140
+ end
3141
+
3117
3142
  ##
3118
3143
  # Configuration RPC class for the AssetService API.
3119
3144
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #