google-cloud-asset-v1 0.21.0 → 0.22.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: 3707e5c254ca43502c0169aaf0948734bc5d801fdb0754abbec34f17787cb5c3
4
- data.tar.gz: 7e404e7cbcdb10c94c7f62321eaf88fcee4745fbbc330a345861d94126e76241
3
+ metadata.gz: 467089a70394df9d2b51c96517ac2e74fdfe5bf190a20e2be77324f8d333da59
4
+ data.tar.gz: 71138d1acbbe2eb86dfac018c2b2147d50233fbdd02954371385939974996fdc
5
5
  SHA512:
6
- metadata.gz: f486ec177ea1c1557db69e775bb0ba8cca6f0a0e01a5ceba28b9920fd362a6c040c4c741ec08bd41ddfef3e2cac7e99a61e40d0efffaec531eb0225bf0237557
7
- data.tar.gz: c6c6c1144eec85735c6345698175eb499677dea87549207d55c5075202067853b6f60b4031950f3911b17f1e9a98ec791c9d35c8f8bafd9160d8822c940b56a7
6
+ metadata.gz: 13889c03ca6e36ca5e6951b32406eccd4f8552d2b75ab59d8615c6c3a3856d4c789adff6076d24b84b9823fd184d46daa9b32ce62ed8310ff93f4a161f8d9620
7
+ data.tar.gz: 3cd37370607f8c9d4942b2042e3a0033b55528b3a5b1be3bacaba3f6bb3d220e204e70b035c7dfbb7e312a796b038fe1dda36b87fd65bc99fc81940a8cb294a2
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
@@ -117,6 +117,25 @@ module Google
117
117
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
118
118
  }
119
119
 
120
+ default_config.rpcs.create_saved_query.timeout = 60.0
121
+
122
+ default_config.rpcs.get_saved_query.timeout = 60.0
123
+ default_config.rpcs.get_saved_query.retry_policy = {
124
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
125
+ }
126
+
127
+ default_config.rpcs.list_saved_queries.timeout = 60.0
128
+ default_config.rpcs.list_saved_queries.retry_policy = {
129
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
130
+ }
131
+
132
+ default_config.rpcs.update_saved_query.timeout = 60.0
133
+
134
+ default_config.rpcs.delete_saved_query.timeout = 60.0
135
+ default_config.rpcs.delete_saved_query.retry_policy = {
136
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
137
+ }
138
+
120
139
  default_config.rpcs.batch_get_effective_iam_policies.timeout = 300.0
121
140
  default_config.rpcs.batch_get_effective_iam_policies.retry_policy = {
122
141
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
@@ -219,14 +238,13 @@ module Google
219
238
  # Exports assets with time and resource types to a given Cloud Storage
220
239
  # location/BigQuery table. For Cloud Storage location destinations, the
221
240
  # output format is newline-delimited JSON. Each line represents a
222
- # {::Google::Cloud::Asset::V1::Asset google.cloud.asset.v1.Asset} in the JSON
223
- # format; for BigQuery table destinations, the output table stores the fields
224
- # in asset Protobuf as columns. This API implements the
225
- # {::Google::Longrunning::Operation google.longrunning.Operation} API, which
226
- # allows you to keep track of the export. We recommend intervals of at least
227
- # 2 seconds with exponential retry to poll the export operation result. For
228
- # regular-size resource parent, the export operation usually finishes within
229
- # 5 minutes.
241
+ # {::Google::Cloud::Asset::V1::Asset google.cloud.asset.v1.Asset} in the JSON format; for BigQuery table
242
+ # destinations, the output table stores the fields in asset Protobuf as
243
+ # columns. This API implements the {::Google::Longrunning::Operation google.longrunning.Operation} API,
244
+ # which allows you to keep track of the export. We recommend intervals of at
245
+ # least 2 seconds with exponential retry to poll the export operation result.
246
+ # For regular-size resource parent, the export operation usually finishes
247
+ # within 5 minutes.
230
248
  #
231
249
  # @overload export_assets(request, options = nil)
232
250
  # Pass arguments to `export_assets` via a request object, either of type
@@ -277,8 +295,7 @@ module Google
277
295
  # Asset content type. If not specified, no content but the asset name will be
278
296
  # returned.
279
297
  # @param output_config [::Google::Cloud::Asset::V1::OutputConfig, ::Hash]
280
- # Required. Output configuration indicating where the results will be output
281
- # to.
298
+ # Required. Output configuration indicating where the results will be output to.
282
299
  # @param relationship_types [::Array<::String>]
283
300
  # A list of relationship types to export, for example:
284
301
  # `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
@@ -388,11 +405,11 @@ module Google
388
405
  # the default parameter values, pass an empty Hash as a request object (see above).
389
406
  #
390
407
  # @param parent [::String]
391
- # Required. Name of the organization, folder, or project the assets belong
392
- # to. Format: "organizations/[organization-number]" (such as
393
- # "organizations/123"), "projects/[project-id]" (such as
394
- # "projects/my-project-id"), "projects/[project-number]" (such as
395
- # "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
408
+ # Required. Name of the organization, folder, or project the assets belong to. Format:
409
+ # "organizations/[organization-number]" (such as "organizations/123"),
410
+ # "projects/[project-id]" (such as "projects/my-project-id"),
411
+ # "projects/[project-number]" (such as "projects/12345"), or
412
+ # "folders/[folder-number]" (such as "folders/12345").
396
413
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
397
414
  # Timestamp to take an asset snapshot. This can only be set to a timestamp
398
415
  # between the current time and the current time minus 35 days (inclusive).
@@ -673,8 +690,9 @@ module Google
673
690
  # Required. This is the client-assigned asset feed identifier and it needs to
674
691
  # be unique under a specific parent project/folder/organization.
675
692
  # @param feed [::Google::Cloud::Asset::V1::Feed, ::Hash]
676
- # Required. The feed details. The field `name` must be empty and it will be
677
- # generated in the format of: projects/project_number/feeds/feed_id
693
+ # Required. The feed details. The field `name` must be empty and it will be generated
694
+ # in the format of:
695
+ # projects/project_number/feeds/feed_id
678
696
  # folders/folder_number/feeds/feed_id
679
697
  # organizations/organization_number/feeds/feed_id
680
698
  #
@@ -936,8 +954,8 @@ module Google
936
954
  # the default parameter values, pass an empty Hash as a request object (see above).
937
955
  #
938
956
  # @param feed [::Google::Cloud::Asset::V1::Feed, ::Hash]
939
- # Required. The new values of feed details. It must match an existing feed
940
- # and the field `name` must be in the format of:
957
+ # Required. The new values of feed details. It must match an existing feed and the
958
+ # field `name` must be in the format of:
941
959
  # projects/project_number/feeds/feed_id or
942
960
  # folders/folder_number/feeds/feed_id or
943
961
  # organizations/organization_number/feeds/feed_id.
@@ -1120,9 +1138,8 @@ module Google
1120
1138
  # the default parameter values, pass an empty Hash as a request object (see above).
1121
1139
  #
1122
1140
  # @param scope [::String]
1123
- # Required. A scope can be a project, a folder, or an organization. The
1124
- # search is limited to the resources within the `scope`. The caller must be
1125
- # granted the
1141
+ # Required. A scope can be a project, a folder, or an organization. The search is
1142
+ # limited to the resources within the `scope`. The caller must be granted the
1126
1143
  # [`cloudasset.assets.searchAllResources`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
1127
1144
  # permission on the desired scope.
1128
1145
  #
@@ -1154,7 +1171,11 @@ module Google
1154
1171
  # and its value is "prod".
1155
1172
  # * `labels.env:*` to find Cloud resources that have a label "env".
1156
1173
  # * `kmsKey:key` to find Cloud resources encrypted with a customer-managed
1157
- # encryption key whose name contains the word "key".
1174
+ # encryption key whose name contains "key" as a word. This field is
1175
+ # deprecated. Please use the `kmsKeys` field to retrieve KMS key
1176
+ # information.
1177
+ # * `kmsKeys:key` to find Cloud resources encrypted with customer-managed
1178
+ # encryption keys whose name contains the word "key".
1158
1179
  # * `relationships:instance-group-1` to find Cloud resources that have
1159
1180
  # relationships with "instance-group-1" in the related resource name.
1160
1181
  # * `relationships:INSTANCE_TO_INSTANCEGROUP` to find compute instances that
@@ -1182,8 +1203,8 @@ module Google
1182
1203
  # fields and are also located in the "us-west1" region or the "global"
1183
1204
  # location.
1184
1205
  # @param asset_types [::Array<::String>]
1185
- # Optional. A list of asset types that this request searches for. If empty,
1186
- # it will search all the [searchable asset
1206
+ # Optional. A list of asset types that this request searches for. If empty, it will
1207
+ # search all the [searchable asset
1187
1208
  # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
1188
1209
  #
1189
1210
  # Regular expressions are also supported. For example:
@@ -1197,20 +1218,19 @@ module Google
1197
1218
  # regular expression syntax. If the regular expression does not match any
1198
1219
  # supported asset type, an INVALID_ARGUMENT error will be returned.
1199
1220
  # @param page_size [::Integer]
1200
- # Optional. The page size for search result pagination. Page size is capped
1201
- # at 500 even if a larger value is given. If set to zero, server will pick an
1202
- # appropriate default. Returned results may be fewer than requested. When
1203
- # this happens, there could be more results as long as `next_page_token` is
1204
- # returned.
1221
+ # Optional. The page size for search result pagination. Page size is capped at 500 even
1222
+ # if a larger value is given. If set to zero, server will pick an appropriate
1223
+ # default. Returned results may be fewer than requested. When this happens,
1224
+ # there could be more results as long as `next_page_token` is returned.
1205
1225
  # @param page_token [::String]
1206
- # Optional. If present, then retrieve the next batch of results from the
1207
- # preceding call to this method. `page_token` must be the value of
1208
- # `next_page_token` from the previous response. The values of all other
1209
- # method parameters, must be identical to those in the previous call.
1226
+ # Optional. If present, then retrieve the next batch of results from the preceding call
1227
+ # to this method. `page_token` must be the value of `next_page_token` from
1228
+ # the previous response. The values of all other method parameters, must be
1229
+ # identical to those in the previous call.
1210
1230
  # @param order_by [::String]
1211
- # Optional. A comma-separated list of fields specifying the sorting order of
1212
- # the results. The default order is ascending. Add " DESC" after the field
1213
- # name to indicate descending order. Redundant space characters are ignored.
1231
+ # Optional. A comma-separated list of fields specifying the sorting order of the
1232
+ # results. The default order is ascending. Add " DESC" after the field name
1233
+ # to indicate descending order. Redundant space characters are ignored.
1214
1234
  # Example: "location DESC, name".
1215
1235
  # Only singular primitive fields in the response are sortable:
1216
1236
  #
@@ -1220,21 +1240,20 @@ module Google
1220
1240
  # * displayName
1221
1241
  # * description
1222
1242
  # * location
1223
- # * kmsKey
1224
1243
  # * createTime
1225
1244
  # * updateTime
1226
1245
  # * state
1227
1246
  # * parentFullResourceName
1228
1247
  # * parentAssetType
1229
1248
  #
1230
- # All the other fields such as repeated fields (e.g., `networkTags`), map
1231
- # fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
1232
- # are not supported.
1249
+ # All the other fields such as repeated fields (e.g., `networkTags`,
1250
+ # `kmsKeys`), map fields (e.g., `labels`) and struct fields (e.g.,
1251
+ # `additionalAttributes`) are not supported.
1233
1252
  # @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
1234
- # Optional. A comma-separated list of fields specifying which fields to be
1235
- # returned in ResourceSearchResult. Only '*' or combination of top level
1236
- # fields can be specified. Field names of both snake_case and camelCase are
1237
- # supported. Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
1253
+ # Optional. A comma-separated list of fields specifying which fields to be returned in
1254
+ # ResourceSearchResult. Only '*' or combination of top level fields can be
1255
+ # specified. Field names of both snake_case and camelCase are supported.
1256
+ # Examples: `"*"`, `"name,location"`, `"name,versionedResources"`.
1238
1257
  #
1239
1258
  # The read_mask paths must be valid field paths listed but not limited to
1240
1259
  # (both snake_case and camelCase are supported):
@@ -1250,7 +1269,9 @@ module Google
1250
1269
  # * tagValueIds
1251
1270
  # * labels
1252
1271
  # * networkTags
1253
- # * kmsKey
1272
+ # * kmsKey (This field is deprecated. Please use the `kmsKeys` field to
1273
+ # retrieve KMS key information.)
1274
+ # * kmsKeys
1254
1275
  # * createTime
1255
1276
  # * updateTime
1256
1277
  # * state
@@ -1356,9 +1377,9 @@ module Google
1356
1377
  # the default parameter values, pass an empty Hash as a request object (see above).
1357
1378
  #
1358
1379
  # @param scope [::String]
1359
- # Required. A scope can be a project, a folder, or an organization. The
1360
- # search is limited to the IAM policies within the `scope`. The caller must
1361
- # be granted the
1380
+ # Required. A scope can be a project, a folder, or an organization. The search is
1381
+ # limited to the IAM policies within the `scope`. The caller must be granted
1382
+ # the
1362
1383
  # [`cloudasset.assets.searchAllIamPolicies`](https://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
1363
1384
  # permission on the desired scope.
1364
1385
  #
@@ -1412,20 +1433,18 @@ module Google
1412
1433
  # * `memberTypes:user` to find IAM policy bindings that contain the
1413
1434
  # principal type "user".
1414
1435
  # @param page_size [::Integer]
1415
- # Optional. The page size for search result pagination. Page size is capped
1416
- # at 500 even if a larger value is given. If set to zero, server will pick an
1417
- # appropriate default. Returned results may be fewer than requested. When
1418
- # this happens, there could be more results as long as `next_page_token` is
1419
- # returned.
1436
+ # Optional. The page size for search result pagination. Page size is capped at 500 even
1437
+ # if a larger value is given. If set to zero, server will pick an appropriate
1438
+ # default. Returned results may be fewer than requested. When this happens,
1439
+ # there could be more results as long as `next_page_token` is returned.
1420
1440
  # @param page_token [::String]
1421
- # Optional. If present, retrieve the next batch of results from the preceding
1422
- # call to this method. `page_token` must be the value of `next_page_token`
1423
- # from the previous response. The values of all other method parameters must
1424
- # be identical to those in the previous call.
1441
+ # Optional. If present, retrieve the next batch of results from the preceding call to
1442
+ # this method. `page_token` must be the value of `next_page_token` from the
1443
+ # previous response. The values of all other method parameters must be
1444
+ # identical to those in the previous call.
1425
1445
  # @param asset_types [::Array<::String>]
1426
- # Optional. A list of asset types that the IAM policies are attached to. If
1427
- # empty, it will search the IAM policies that are attached to all the
1428
- # [searchable asset
1446
+ # Optional. A list of asset types that the IAM policies are attached to. If empty, it
1447
+ # will search the IAM policies that are attached to all the [searchable asset
1429
1448
  # types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
1430
1449
  #
1431
1450
  # Regular expressions are also supported. For example:
@@ -1441,9 +1460,9 @@ module Google
1441
1460
  # regular expression syntax. If the regular expression does not match any
1442
1461
  # supported asset type, an INVALID_ARGUMENT error will be returned.
1443
1462
  # @param order_by [::String]
1444
- # Optional. A comma-separated list of fields specifying the sorting order of
1445
- # the results. The default order is ascending. Add " DESC" after the field
1446
- # name to indicate descending order. Redundant space characters are ignored.
1463
+ # Optional. A comma-separated list of fields specifying the sorting order of the
1464
+ # results. The default order is ascending. Add " DESC" after the field name
1465
+ # to indicate descending order. Redundant space characters are ignored.
1447
1466
  # Example: "assetType DESC, resource".
1448
1467
  # Only singular primitive fields in the response are sortable:
1449
1468
  # * resource
@@ -1562,8 +1581,7 @@ module Google
1562
1581
  # 0 or empty string, etc., because we use proto3, which doesn't support field
1563
1582
  # presence yet.
1564
1583
  # @param execution_timeout [::Google::Protobuf::Duration, ::Hash]
1565
- # Optional. Amount of time executable has to complete. See JSON
1566
- # representation of
1584
+ # Optional. Amount of time executable has to complete. See JSON representation of
1567
1585
  # [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
1568
1586
  #
1569
1587
  # If this field is set with a value less than the RPC deadline, and the
@@ -1643,12 +1661,11 @@ module Google
1643
1661
  # accesses on which resources, and writes the analysis results to a Google
1644
1662
  # Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
1645
1663
  # output format is the JSON format that represents a
1646
- # {::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse AnalyzeIamPolicyResponse}.
1647
- # This method implements the
1648
- # {::Google::Longrunning::Operation google.longrunning.Operation}, which allows
1649
- # you to track the operation status. We recommend intervals of at least 2
1650
- # seconds with exponential backoff retry to poll the operation result. The
1651
- # metadata contains the metadata for the long-running operation.
1664
+ # {::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse AnalyzeIamPolicyResponse}. This method implements the
1665
+ # {::Google::Longrunning::Operation google.longrunning.Operation}, which allows you to track the operation
1666
+ # status. We recommend intervals of at least 2 seconds with exponential
1667
+ # backoff retry to poll the operation result. The metadata contains the
1668
+ # metadata for the long-running operation.
1652
1669
  #
1653
1670
  # @overload analyze_iam_policy_longrunning(request, options = nil)
1654
1671
  # Pass arguments to `analyze_iam_policy_longrunning` via a request object, either of type
@@ -1685,8 +1702,7 @@ module Google
1685
1702
  # 0 or empty string, etc., because we use proto3, which doesn't support field
1686
1703
  # presence yet.
1687
1704
  # @param output_config [::Google::Cloud::Asset::V1::IamPolicyAnalysisOutputConfig, ::Hash]
1688
- # Required. Output configuration indicating where the results will be output
1689
- # to.
1705
+ # Required. Output configuration indicating where the results will be output to.
1690
1706
  #
1691
1707
  # @yield [response, operation] Access the result along with the RPC operation
1692
1708
  # @yieldparam response [::Gapic::Operation]
@@ -1903,11 +1919,11 @@ module Google
1903
1919
  # Optional. A SQL statement that's compatible with [BigQuery Standard
1904
1920
  # SQL](http://cloud/bigquery/docs/reference/standard-sql/enabling-standard-sql).
1905
1921
  # @param job_reference [::String]
1906
- # Optional. Reference to the query job, which is from the
1907
- # `QueryAssetsResponse` of previous `QueryAssets` call.
1922
+ # Optional. Reference to the query job, which is from the `QueryAssetsResponse` of
1923
+ # previous `QueryAssets` call.
1908
1924
  # @param page_size [::Integer]
1909
- # Optional. The maximum number of rows to return in the results. Responses
1910
- # are limited to 10 MB and 1000 rows.
1925
+ # Optional. The maximum number of rows to return in the results. Responses are limited
1926
+ # to 10 MB and 1000 rows.
1911
1927
  #
1912
1928
  # By default, the maximum row count is 1000. When the byte or row count limit
1913
1929
  # is reached, the rest of the query results will be paginated.
@@ -1918,11 +1934,10 @@ module Google
1918
1934
  #
1919
1935
  # The field will be ignored when [output_config] is specified.
1920
1936
  # @param timeout [::Google::Protobuf::Duration, ::Hash]
1921
- # Optional. Specifies the maximum amount of time that the client is willing
1922
- # to wait for the query to complete. By default, this limit is 5 min for the
1923
- # first query, and 1 minute for the following queries. If the query is
1924
- # complete, the `done` field in the `QueryAssetsResponse` is true, otherwise
1925
- # false.
1937
+ # Optional. Specifies the maximum amount of time that the client is willing to wait
1938
+ # for the query to complete. By default, this limit is 5 min for the first
1939
+ # query, and 1 minute for the following queries. If the query is complete,
1940
+ # the `done` field in the `QueryAssetsResponse` is true, otherwise false.
1926
1941
  #
1927
1942
  # Like BigQuery [jobs.query
1928
1943
  # API](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest)
@@ -1932,12 +1947,11 @@ module Google
1932
1947
  #
1933
1948
  # The field will be ignored when [output_config] is specified.
1934
1949
  # @param read_time_window [::Google::Cloud::Asset::V1::TimeWindow, ::Hash]
1935
- # Optional. [start_time] is required. [start_time] must be less than
1936
- # [end_time] Defaults [end_time] to now if [start_time] is set and
1937
- # [end_time] isn't. Maximum permitted time range is 7 days.
1950
+ # Optional. [start_time] is required. [start_time] must be less than [end_time]
1951
+ # Defaults [end_time] to now if [start_time] is set and [end_time] isn't.
1952
+ # Maximum permitted time range is 7 days.
1938
1953
  # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1939
- # Optional. Queries cloud assets as they appeared at the specified point in
1940
- # time.
1954
+ # Optional. Queries cloud assets as they appeared at the specified point in time.
1941
1955
  # @param output_config [::Google::Cloud::Asset::V1::QueryAssetsOutputConfig, ::Hash]
1942
1956
  # Optional. Destination where the query results will be saved.
1943
1957
  #
@@ -2032,18 +2046,18 @@ module Google
2032
2046
  # the default parameter values, pass an empty Hash as a request object (see above).
2033
2047
  #
2034
2048
  # @param parent [::String]
2035
- # Required. The name of the project/folder/organization where this
2036
- # saved_query should be created in. It can only be an organization number
2037
- # (such as "organizations/123"), a folder number (such as "folders/123"), a
2038
- # project ID (such as "projects/my-project-id")", or a project number (such
2039
- # as "projects/12345").
2049
+ # Required. The name of the project/folder/organization where this saved_query
2050
+ # should be created in. It can only be an organization number (such as
2051
+ # "organizations/123"), a folder number (such as "folders/123"), a project ID
2052
+ # (such as "projects/my-project-id")", or a project number (such as
2053
+ # "projects/12345").
2040
2054
  # @param saved_query [::Google::Cloud::Asset::V1::SavedQuery, ::Hash]
2041
- # Required. The saved_query details. The `name` field must be empty as it
2042
- # will be generated based on the parent and saved_query_id.
2055
+ # Required. The saved_query details. The `name` field must be empty as it will be
2056
+ # generated based on the parent and saved_query_id.
2043
2057
  # @param saved_query_id [::String]
2044
- # Required. The ID to use for the saved query, which must be unique in the
2045
- # specified parent. It will become the final component of the saved query's
2046
- # resource name.
2058
+ # Required. The ID to use for the saved query, which must be unique in the specified
2059
+ # parent. It will become the final component of the saved query's resource
2060
+ # name.
2047
2061
  #
2048
2062
  # This value should be 4-63 characters, and valid characters
2049
2063
  # are /[a-z][0-9]-/.
@@ -2223,8 +2237,8 @@ module Google
2223
2237
  # the default parameter values, pass an empty Hash as a request object (see above).
2224
2238
  #
2225
2239
  # @param parent [::String]
2226
- # Required. The parent project/folder/organization whose savedQueries are to
2227
- # be listed. It can only be using project/folder/organization number (such as
2240
+ # Required. The parent project/folder/organization whose savedQueries are to be
2241
+ # listed. It can only be using project/folder/organization number (such as
2228
2242
  # "folders/12345")", or a project ID (such as "projects/my-project-id").
2229
2243
  # @param filter [::String]
2230
2244
  # Optional. The expression to filter resources.
@@ -2235,9 +2249,8 @@ module Google
2235
2249
  #
2236
2250
  # See https://google.aip.dev/160 for more information on the grammar.
2237
2251
  # @param page_size [::Integer]
2238
- # Optional. The maximum number of saved queries to return per page. The
2239
- # service may return fewer than this value. If unspecified, at most 50 will
2240
- # be returned.
2252
+ # Optional. The maximum number of saved queries to return per page. The service may
2253
+ # return fewer than this value. If unspecified, at most 50 will be returned.
2241
2254
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
2242
2255
  # @param page_token [::String]
2243
2256
  # Optional. A page token, received from a previous `ListSavedQueries` call.
@@ -2430,8 +2443,7 @@ module Google
2430
2443
  # the default parameter values, pass an empty Hash as a request object (see above).
2431
2444
  #
2432
2445
  # @param name [::String]
2433
- # Required. The name of the saved query to delete. It must be in the format
2434
- # of:
2446
+ # Required. The name of the saved query to delete. It must be in the format of:
2435
2447
  #
2436
2448
  # * projects/project_number/savedQueries/saved_query_id
2437
2449
  # * folders/folder_number/savedQueries/saved_query_id
@@ -36,14 +36,13 @@ module Google
36
36
  # Exports assets with time and resource types to a given Cloud Storage
37
37
  # location/BigQuery table. For Cloud Storage location destinations, the
38
38
  # output format is newline-delimited JSON. Each line represents a
39
- # [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
40
- # format; for BigQuery table destinations, the output table stores the fields
41
- # in asset Protobuf as columns. This API implements the
42
- # [google.longrunning.Operation][google.longrunning.Operation] API, which
43
- # allows you to keep track of the export. We recommend intervals of at least
44
- # 2 seconds with exponential retry to poll the export operation result. For
45
- # regular-size resource parent, the export operation usually finishes within
46
- # 5 minutes.
39
+ # [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
40
+ # destinations, the output table stores the fields in asset Protobuf as
41
+ # columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API,
42
+ # which allows you to keep track of the export. We recommend intervals of at
43
+ # least 2 seconds with exponential retry to poll the export operation result.
44
+ # For regular-size resource parent, the export operation usually finishes
45
+ # within 5 minutes.
47
46
  rpc :ExportAssets, ::Google::Cloud::Asset::V1::ExportAssetsRequest, ::Google::Longrunning::Operation
48
47
  # Lists assets with time and resource types and returns paged results in
49
48
  # response.
@@ -84,12 +83,11 @@ module Google
84
83
  # accesses on which resources, and writes the analysis results to a Google
85
84
  # Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
86
85
  # output format is the JSON format that represents a
87
- # [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
88
- # This method implements the
89
- # [google.longrunning.Operation][google.longrunning.Operation], which allows
90
- # you to track the operation status. We recommend intervals of at least 2
91
- # seconds with exponential backoff retry to poll the operation result. The
92
- # metadata contains the metadata for the long-running operation.
86
+ # [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
87
+ # [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
88
+ # status. We recommend intervals of at least 2 seconds with exponential
89
+ # backoff retry to poll the operation result. The metadata contains the
90
+ # metadata for the long-running operation.
93
91
  rpc :AnalyzeIamPolicyLongrunning, ::Google::Cloud::Asset::V1::AnalyzeIamPolicyLongrunningRequest, ::Google::Longrunning::Operation
94
92
  # Analyze moving a resource to a specified destination without kicking off
95
93
  # the actual move. The analysis is best effort depending on the user's
@@ -89,6 +89,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
89
89
  map :labels, :string, :string, 7
90
90
  repeated :network_tags, :string, 8
91
91
  optional :kms_key, :string, 10
92
+ repeated :kms_keys, :string, 28
92
93
  optional :create_time, :message, 11, "google.protobuf.Timestamp"
93
94
  optional :update_time, :message, 12, "google.protobuf.Timestamp"
94
95
  optional :state, :string, 13
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1
24
- VERSION = "0.21.0"
24
+ VERSION = "0.22.0"
25
25
  end
26
26
  end
27
27
  end
@@ -3,9 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
- require 'google/protobuf/empty_pb'
7
6
  require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
9
7
 
10
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
9
  add_file("google/cloud/orgpolicy/v1/orgpolicy.proto", :syntax => :proto3) do