@@ -193,9 +193,8 @@ service AssetService {
193193// Represents the metadata of the longrunning operation for the
194194// AnalyzeIamPolicyLongrunning rpc.
195195message AnalyzeIamPolicyLongrunningMetadata {
196- // The time the operation was created.
197- google.protobuf.Timestamp create_time = 1
198- [(google.api.field_behavior ) = OUTPUT_ONLY ];
196+ // Output only. The time the operation was created.
197+ google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
199198}
200199
201200// Export asset request.
@@ -244,6 +243,23 @@ message ExportAssetsRequest {
244243
245244 // Required. Output configuration indicating where the results will be output to.
246245 OutputConfig output_config = 5 [(google.api.field_behavior ) = REQUIRED ];
246+
247+ // A list of relationship types to export, for example:
248+ // `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
249+ // content_type=RELATIONSHIP.
250+ // * If specified:
251+ // it snapshots specified relationships. It returns an error if
252+ // any of the [relationship_types] doesn't belong to the supported
253+ // relationship types of the [asset_types] or if any of the [asset_types]
254+ // doesn't belong to the source types of the [relationship_types].
255+ // * Otherwise:
256+ // it snapshots the supported relationships for all [asset_types] or returns
257+ // an error if any of the [asset_types] has no relationship support.
258+ // An unspecified asset types field means all supported asset_types.
259+ // See [Introduction to Cloud Asset
260+ // Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
261+ // supported asset types and relationship types.
262+ repeated string relationship_types = 6 ;
247263}
248264
249265// The export asset response. This message is returned by the
@@ -316,6 +332,23 @@ message ListAssetsRequest {
316332 // unspecified for the first `ListAssetsRequest`. It is a continuation of a
317333 // prior `ListAssets` call, and the API should return the next page of assets.
318334 string page_token = 6 ;
335+
336+ // A list of relationship types to output, for example:
337+ // `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
338+ // content_type=RELATIONSHIP.
339+ // * If specified:
340+ // it snapshots specified relationships. It returns an error if
341+ // any of the [relationship_types] doesn't belong to the supported
342+ // relationship types of the [asset_types] or if any of the [asset_types]
343+ // doesn't belong to the source types of the [relationship_types].
344+ // * Otherwise:
345+ // it snapshots the supported relationships for all [asset_types] or returns
346+ // an error if any of the [asset_types] has no relationship support.
347+ // An unspecified asset types field means all supported asset_types.
348+ // See [Introduction to Cloud Asset
349+ // Inventory](https://cloud.google.com/asset-inventory/docs/overview)
350+ // for all supported asset types and relationship types.
351+ repeated string relationship_types = 7 ;
319352}
320353
321354// ListAssets response.
@@ -364,6 +397,24 @@ message BatchGetAssetsHistoryRequest {
364397 // returned. The returned results contain all temporal assets whose time
365398 // window overlap with read_time_window.
366399 TimeWindow read_time_window = 4 [(google.api.field_behavior ) = OPTIONAL ];
400+
401+ // Optional. A list of relationship types to output, for example:
402+ // `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
403+ // content_type=RELATIONSHIP.
404+ // * If specified:
405+ // it outputs specified relationships' history on the [asset_names]. It
406+ // returns an error if any of the [relationship_types] doesn't belong to the
407+ // supported relationship types of the [asset_names] or if any of the
408+ // [asset_names]'s types doesn't belong to the source types of the
409+ // [relationship_types].
410+ // * Otherwise:
411+ // it outputs the supported relationships' history on the [asset_names] or
412+ // returns an error if any of the [asset_names]'s types has no relationship
413+ // support.
414+ // See [Introduction to Cloud Asset
415+ // Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all
416+ // supported asset types and relationship types.
417+ repeated string relationship_types = 5 [(google.api.field_behavior ) = OPTIONAL ];
367418}
368419
369420// Batch get assets history response.
@@ -682,6 +733,24 @@ message Feed {
682733 // guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition)
683734 // for detailed instructions.
684735 google.type.Expr condition = 6 ;
736+
737+ // A list of relationship types to output, for example:
738+ // `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
739+ // content_type=RELATIONSHIP.
740+ // * If specified:
741+ // it outputs specified relationship updates on the [asset_names] or the
742+ // [asset_types]. It returns an error if any of the [relationship_types]
743+ // doesn't belong to the supported relationship types of the [asset_names] or
744+ // [asset_types], or any of the [asset_names] or the [asset_types] doesn't
745+ // belong to the source types of the [relationship_types].
746+ // * Otherwise:
747+ // it outputs the supported relationships of the types of [asset_names] and
748+ // [asset_types] or returns an error if any of the [asset_names] or the
749+ // [asset_types] has no replationship support.
750+ // See [Introduction to Cloud Asset
751+ // Inventory](https://cloud.google.com/asset-inventory/docs/overview)
752+ // for all supported asset types and relationship types.
753+ repeated string relationship_types = 7 ;
685754}
686755
687756// Search all resources request.
@@ -1353,4 +1422,7 @@ enum ContentType {
13531422
13541423 // The runtime OS Inventory information.
13551424 OS_INVENTORY = 6 ;
1425+
1426+ // The related resources.
1427+ RELATIONSHIP = 7 ;
13561428}
0 commit comments