Skip to content

Commit

Permalink
feat(cloudasset): update the api
Browse files Browse the repository at this point in the history
#### cloudasset:v1

The following keys were added:
- resources.assets.methods.list.parameters.relationshipTypes (Total Keys: 3)
- resources.v1.methods.batchGetAssetsHistory.parameters.relationshipTypes (Total Keys: 3)
- schemas.AnalyzeIamPolicyLongrunningMetadata (Total Keys: 5)
- schemas.Asset.properties.relatedAssets.$ref (Total Keys: 1)
- schemas.ExportAssetsRequest.properties.relationshipTypes (Total Keys: 2)
- schemas.Feed.properties.relationshipTypes (Total Keys: 2)
- schemas.Inventory.properties.name (Total Keys: 2)
- schemas.Inventory.properties.updateTime (Total Keys: 3)
- schemas.RelatedAsset (Total Keys: 11)
- schemas.RelationshipAttributes (Total Keys: 6)

#### cloudasset:v1beta1

The following keys were added:
- schemas.AnalyzeIamPolicyLongrunningMetadata (Total Keys: 5)

#### cloudasset:v1p1beta1

The following keys were added:
- schemas.AnalyzeIamPolicyLongrunningMetadata (Total Keys: 5)

#### cloudasset:v1p4beta1

The following keys were added:
- schemas.AnalyzeIamPolicyLongrunningMetadata (Total Keys: 5)

#### cloudasset:v1p5beta1

The following keys were added:
- schemas.AnalyzeIamPolicyLongrunningMetadata (Total Keys: 5)

#### cloudasset:v1p7beta1

The following keys were added:
- schemas.AnalyzeIamPolicyLongrunningMetadata (Total Keys: 5)
  • Loading branch information
yoshi-automation committed Aug 10, 2021
1 parent d46fee2 commit 792aa55
Show file tree
Hide file tree
Showing 9 changed files with 294 additions and 22 deletions.
27 changes: 24 additions & 3 deletions docs/dyn/cloudasset_v1.assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2>Instance Methods</h2>
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#list">list(parent, assetTypes=None, contentType=None, pageSize=None, pageToken=None, readTime=None, x__xgafv=None)</a></code></p>
<code><a href="#list">list(parent, assetTypes=None, contentType=None, pageSize=None, pageToken=None, readTime=None, relationshipTypes=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists assets with time and resource types and returns paged results in response.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
Expand All @@ -90,7 +90,7 @@ <h3>Method Details</h3>
</div>

<div class="method">
<code class="details" id="list">list(parent, assetTypes=None, contentType=None, pageSize=None, pageToken=None, readTime=None, x__xgafv=None)</code>
<code class="details" id="list">list(parent, assetTypes=None, contentType=None, pageSize=None, pageToken=None, readTime=None, relationshipTypes=None, x__xgafv=None)</code>
<pre>Lists assets with time and resource types and returns paged results in response.

Args:
Expand All @@ -104,9 +104,11 @@ <h3>Method Details</h3>
ORG_POLICY - The Cloud Organization Policy set on an asset.
ACCESS_POLICY - The Cloud Access context manager Policy set on an asset.
OS_INVENTORY - The runtime OS Inventory information.
RELATIONSHIP - The related resources.
pageSize: integer, The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.
pageToken: string, The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`. It is a continuation of a prior `ListAssets` call, and the API should return the next page of assets.
readTime: string, Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
relationshipTypes: string, A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types. (repeated)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
Expand Down Expand Up @@ -235,7 +237,7 @@ <h3>Method Details</h3>
&quot;version&quot;: 42, # Version of the `Policy`. Default version is 0;
},
],
&quot;osInventory&quot;: { # The inventory details of a VM. # A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
&quot;osInventory&quot;: { # This API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time. You can use this API resource to determine the inventory data of your VM. For more information, see [Information provided by OS inventory management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected). # A representation of runtime OS Inventory information. See [this topic](https://cloud.google.com/compute/docs/instances/os-inventory-management) for more information.
&quot;items&quot;: { # Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.
&quot;a_key&quot;: { # A single piece of inventory on a VM.
&quot;availablePackage&quot;: { # Software package information of the operating system. # Software package available to be installed on the VM instance.
Expand Down Expand Up @@ -363,6 +365,7 @@ <h3>Method Details</h3>
&quot;updateTime&quot;: &quot;A String&quot;, # When this inventory item was last modified.
},
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The `Inventory` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`
&quot;osInfo&quot;: { # Operating system information for the VM. # Base level operating system information for the VM.
&quot;architecture&quot;: &quot;A String&quot;, # The system architecture of the operating system.
&quot;hostname&quot;: &quot;A String&quot;, # The VM hostname.
Expand All @@ -373,6 +376,24 @@ <h3>Method Details</h3>
&quot;shortName&quot;: &quot;A String&quot;, # The operating system short name. For example, &#x27;windows&#x27; or &#x27;debian&#x27;.
&quot;version&quot;: &quot;A String&quot;, # The version of the operating system.
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last reported inventory for the VM.
},
&quot;relatedAssets&quot;: { # The detailed related assets with the `relationship_type`. # The related assets of the asset of one relationship type. One asset only represents one type of relationship.
&quot;assets&quot;: [ # The peer resources of the relationship.
{ # An asset identify 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.
&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;]`
&quot;A String&quot;,
],
&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.
&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.
},
],
&quot;relationshipAttributes&quot;: { # The relationship attributes which include `type`, `source_resource_type`, `target_resource_type` and `action`. # The detailed relationship attributes.
&quot;action&quot;: &quot;A String&quot;, # The detail of the relationship, e.g. `contains`, `attaches`
&quot;sourceResourceType&quot;: &quot;A String&quot;, # The source asset type. Example: `compute.googleapis.com/Instance`
&quot;targetResourceType&quot;: &quot;A String&quot;, # The target asset type. Example: `compute.googleapis.com/Disk`
&quot;type&quot;: &quot;A String&quot;, # The unique identifier of the relationship type. Example: `INSTANCE_TO_INSTANCEGROUP`
},
},
&quot;resource&quot;: { # A representation of a Google Cloud resource. # A representation of the resource.
&quot;data&quot;: { # The content of the resource, in which some sensitive fields are removed and may not be present.
Expand Down
18 changes: 18 additions & 0 deletions docs/dyn/cloudasset_v1.feeds.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ <h3>Method Details</h3>
},
},
&quot;name&quot;: &quot;A String&quot;, # Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
&quot;relationshipTypes&quot;: [ # A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
&quot;A String&quot;,
],
},
&quot;feedId&quot;: &quot;A String&quot;, # Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.
}
Expand Down Expand Up @@ -160,6 +163,9 @@ <h3>Method Details</h3>
},
},
&quot;name&quot;: &quot;A String&quot;, # Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
&quot;relationshipTypes&quot;: [ # A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
&quot;A String&quot;,
],
}</pre>
</div>

Expand Down Expand Up @@ -215,6 +221,9 @@ <h3>Method Details</h3>
},
},
&quot;name&quot;: &quot;A String&quot;, # Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
&quot;relationshipTypes&quot;: [ # A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
&quot;A String&quot;,
],
}</pre>
</div>

Expand Down Expand Up @@ -254,6 +263,9 @@ <h3>Method Details</h3>
},
},
&quot;name&quot;: &quot;A String&quot;, # Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
&quot;relationshipTypes&quot;: [ # A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
&quot;A String&quot;,
],
},
],
}</pre>
Expand Down Expand Up @@ -289,6 +301,9 @@ <h3>Method Details</h3>
},
},
&quot;name&quot;: &quot;A String&quot;, # Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
&quot;relationshipTypes&quot;: [ # A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
&quot;A String&quot;,
],
},
&quot;updateMask&quot;: &quot;A String&quot;, # Required. Only updates the `feed` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server.
}
Expand Down Expand Up @@ -321,6 +336,9 @@ <h3>Method Details</h3>
},
},
&quot;name&quot;: &quot;A String&quot;, # Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
&quot;relationshipTypes&quot;: [ # A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn&#x27;t belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn&#x27;t belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
&quot;A String&quot;,
],
}</pre>
</div>

Expand Down
Loading

0 comments on commit 792aa55

Please sign in to comment.