Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudAsset.v1beta1
Assembly: Google.Apis.CloudAsset.v1beta1.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.OperationsResource |
Methods
BatchGetAssetsHistory(string)
Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
Declaration
public virtual ProjectsResource.BatchGetAssetsHistoryRequest BatchGetAssetsHistory(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345"). |
Returns
Type | Description |
---|---|
ProjectsResource.BatchGetAssetsHistoryRequest |
ExportAssets(ExportAssetsRequest, string)
Exports assets with time and resource types to a given Cloud Storage location. The output format is newline-delimited JSON. This API implements the google.longrunning.Operation API allowing you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.
Declaration
public virtual ProjectsResource.ExportAssetsRequest ExportAssets(ExportAssetsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
ExportAssetsRequest | body | The body of the request. |
string | parent | Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id"), a project number (such as "projects/12345"), or a folder number (such as "folders/123"). |
Returns
Type | Description |
---|---|
ProjectsResource.ExportAssetsRequest |