Skip to content

Commit 053dd5b

Browse files
feat(cloudasset): update the api
#### cloudasset:v1 The following keys were added: - schemas.Asset.properties.relatedAsset (Total Keys: 2) - schemas.RelatedAsset (Total Keys: 12) - schemas.RelationshipAttributes (Total Keys: 6)
1 parent c025232 commit 053dd5b

File tree

8 files changed

+159
-6
lines changed

8 files changed

+159
-6
lines changed

docs/dyn/cloudasset_v1.assets.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,32 @@ <h3>Method Details</h3>
403403
},
404404
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last reported inventory for the VM.
405405
},
406+
&quot;relatedAsset&quot;: { # An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information. # One related asset of the current asset.
407+
&quot;ancestors&quot;: [ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `[&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]`
408+
&quot;A String&quot;,
409+
],
410+
&quot;asset&quot;: &quot;A String&quot;, # The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
411+
&quot;assetType&quot;: &quot;A String&quot;, # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
412+
&quot;relationshipType&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
413+
},
414+
&quot;relatedAssets&quot;: { # DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The detailed related assets with the `relationship_type`. # DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
415+
&quot;assets&quot;: [ # The peer resources of the relationship.
416+
{ # An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
417+
&quot;ancestors&quot;: [ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `[&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]`
418+
&quot;A String&quot;,
419+
],
420+
&quot;asset&quot;: &quot;A String&quot;, # The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
421+
&quot;assetType&quot;: &quot;A String&quot;, # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
422+
&quot;relationshipType&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
423+
},
424+
],
425+
&quot;relationshipAttributes&quot;: { # DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The relationship attributes which include `type`, `source_resource_type`, `target_resource_type` and `action`. # The detailed relationship attributes.
426+
&quot;action&quot;: &quot;A String&quot;, # The detail of the relationship, e.g. `contains`, `attaches`
427+
&quot;sourceResourceType&quot;: &quot;A String&quot;, # The source asset type. Example: `compute.googleapis.com/Instance`
428+
&quot;targetResourceType&quot;: &quot;A String&quot;, # The target asset type. Example: `compute.googleapis.com/Disk`
429+
&quot;type&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
430+
},
431+
},
406432
&quot;resource&quot;: { # A representation of a Google Cloud resource. # A representation of the resource.
407433
&quot;data&quot;: { # The content of the resource, in which some sensitive fields are removed and may not be present.
408434
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.

docs/dyn/cloudasset_v1.v1.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,32 @@ <h3>Method Details</h3>
792792
},
793793
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last reported inventory for the VM.
794794
},
795+
&quot;relatedAsset&quot;: { # An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information. # One related asset of the current asset.
796+
&quot;ancestors&quot;: [ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `[&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]`
797+
&quot;A String&quot;,
798+
],
799+
&quot;asset&quot;: &quot;A String&quot;, # The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
800+
&quot;assetType&quot;: &quot;A String&quot;, # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
801+
&quot;relationshipType&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
802+
},
803+
&quot;relatedAssets&quot;: { # DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The detailed related assets with the `relationship_type`. # DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
804+
&quot;assets&quot;: [ # The peer resources of the relationship.
805+
{ # An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
806+
&quot;ancestors&quot;: [ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `[&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]`
807+
&quot;A String&quot;,
808+
],
809+
&quot;asset&quot;: &quot;A String&quot;, # The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
810+
&quot;assetType&quot;: &quot;A String&quot;, # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
811+
&quot;relationshipType&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
812+
},
813+
],
814+
&quot;relationshipAttributes&quot;: { # DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The relationship attributes which include `type`, `source_resource_type`, `target_resource_type` and `action`. # The detailed relationship attributes.
815+
&quot;action&quot;: &quot;A String&quot;, # The detail of the relationship, e.g. `contains`, `attaches`
816+
&quot;sourceResourceType&quot;: &quot;A String&quot;, # The source asset type. Example: `compute.googleapis.com/Instance`
817+
&quot;targetResourceType&quot;: &quot;A String&quot;, # The target asset type. Example: `compute.googleapis.com/Disk`
818+
&quot;type&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
819+
},
820+
},
795821
&quot;resource&quot;: { # A representation of a Google Cloud resource. # A representation of the resource.
796822
&quot;data&quot;: { # The content of the resource, in which some sensitive fields are removed and may not be present.
797823
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.
@@ -1247,6 +1273,32 @@ <h3>Method Details</h3>
12471273
},
12481274
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last reported inventory for the VM.
12491275
},
1276+
&quot;relatedAsset&quot;: { # An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information. # One related asset of the current asset.
1277+
&quot;ancestors&quot;: [ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `[&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]`
1278+
&quot;A String&quot;,
1279+
],
1280+
&quot;asset&quot;: &quot;A String&quot;, # The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
1281+
&quot;assetType&quot;: &quot;A String&quot;, # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
1282+
&quot;relationshipType&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
1283+
},
1284+
&quot;relatedAssets&quot;: { # DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The detailed related assets with the `relationship_type`. # DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
1285+
&quot;assets&quot;: [ # The peer resources of the relationship.
1286+
{ # An asset identifier in Google Cloud which contains its name, type and ancestors. An asset can be any resource in the Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
1287+
&quot;ancestors&quot;: [ # The ancestors of an asset in Google Cloud [resource hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy), represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. Example: `[&quot;projects/123456789&quot;, &quot;folders/5432&quot;, &quot;organizations/1234&quot;]`
1288+
&quot;A String&quot;,
1289+
],
1290+
&quot;asset&quot;: &quot;A String&quot;, # The full name of the asset. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1` See [Resource names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
1291+
&quot;assetType&quot;: &quot;A String&quot;, # The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for more information.
1292+
&quot;relationshipType&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
1293+
},
1294+
],
1295+
&quot;relationshipAttributes&quot;: { # DEPRECATED. This message only presents for the purpose of backward-compatibility. The server will never populate this message in responses. The relationship attributes which include `type`, `source_resource_type`, `target_resource_type` and `action`. # The detailed relationship attributes.
1296+
&quot;action&quot;: &quot;A String&quot;, # The detail of the relationship, e.g. `contains`, `attaches`
1297+
&quot;sourceResourceType&quot;: &quot;A String&quot;, # The source asset type. Example: `compute.googleapis.com/Instance`
1298+
&quot;targetResourceType&quot;: &quot;A String&quot;, # The target asset type. Example: `compute.googleapis.com/Disk`
1299+
&quot;type&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
1300+
},
1301+
},
12501302
&quot;resource&quot;: { # A representation of a Google Cloud resource. # A representation of the resource.
12511303
&quot;data&quot;: { # The content of the resource, in which some sensitive fields are removed and may not be present.
12521304
&quot;a_key&quot;: &quot;&quot;, # Properties of the object.

0 commit comments

Comments
 (0)