google_api_cloud_asset v0.2.0 GoogleApi.CloudAsset.V1.Api.V1 View Source
API calls for all endpoints tagged V1
.
Link to this section Summary
Functions
Batch gets the update history of assets that overlap a time window. For RESOURCE content, this API outputs history with asset in both non-delete or deleted status. 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. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
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.
Link to this section Functions
cloudasset_batch_get_assets_history(connection, v1_id, v1_id1, optional_params \\ [], opts \\ [])
View Sourcecloudasset_batch_get_assets_history( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudAsset.V1.Model.BatchGetAssetsHistoryResponse.t()} | {:error, Tesla.Env.t()}
Batch gets the update history of assets that overlap a time window. For RESOURCE content, this API outputs history with asset in both non-delete or deleted status. 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. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
Parameters
connection
(type:GoogleApi.CloudAsset.V1.Connection.t
) - Connection to serverv1_id
(type:String.t
) - Part ofparent
. 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").v1_id1
(type:String.t
) - Part ofparent
. See documentation ofv1Id
.optional_params
(type:keyword()
) - Optional parameters:"$.xgafv"
(type:String.t
) - V1 error format.:access_token
(type:String.t
) - OAuth access token.:alt
(type:String.t
) - Data format for response.:callback
(type:String.t
) - JSONP:fields
(type:String.t
) - Selector specifying which fields to include in a partial response.:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user.:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks.:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart").:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").:assetNames
(type:list(String.t)
) - A list of the full names of the assets. For example://compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
. See Resource Names and Resource Name Format for more info.The request becomes a no-op if the asset name list is empty, and the max size of the asset name list is 100 in one request.
:contentType
(type:String.t
) - Optional. The content type.:"readTimeWindow.endTime"
(type:DateTime.t
) - End time of the time window (inclusive). Current timestamp if not specified.:"readTimeWindow.startTime"
(type:DateTime.t
) - Start time of the time window (exclusive).
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.CloudAsset.V1.Model.BatchGetAssetsHistoryResponse{}}
on success{:error, info}
on failure
cloudasset_export_assets(connection, v1_id, v1_id1, optional_params \\ [], opts \\ [])
View Sourcecloudasset_export_assets( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.CloudAsset.V1.Model.Operation.t()} | {:error, Tesla.Env.t()}
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.
Parameters
connection
(type:GoogleApi.CloudAsset.V1.Connection.t
) - Connection to serverv1_id
(type:String.t
) - Part ofparent
. 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"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123").v1_id1
(type:String.t
) - Part ofparent
. See documentation ofv1Id
.optional_params
(type:keyword()
) - Optional parameters:"$.xgafv"
(type:String.t
) - V1 error format.:access_token
(type:String.t
) - OAuth access token.:alt
(type:String.t
) - Data format for response.:callback
(type:String.t
) - JSONP:fields
(type:String.t
) - Selector specifying which fields to include in a partial response.:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user.:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks.:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart").:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").:body
(type:GoogleApi.CloudAsset.V1.Model.ExportAssetsRequest.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.CloudAsset.V1.Model.Operation{}}
on success{:error, info}
on failure