Class AssetService.AssetServiceClient
Client for AssetService
Inheritance
Inherited Members
Namespace: Google.Cloud.Asset.V1Beta1
Assembly: Google.Cloud.Asset.V1Beta1.dll
Syntax
public class AssetServiceClient : ClientBase<AssetService.AssetServiceClient>
Constructors
AssetServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected AssetServiceClient()
AssetServiceClient(CallInvoker)
Creates a new client for AssetService that uses a custom CallInvoker.
Declaration
public AssetServiceClient(CallInvoker callInvoker)
Parameters
| Type | Name | Description |
|---|---|---|
| CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
AssetServiceClient(Channel)
Creates a new client for AssetService
Declaration
public AssetServiceClient(Channel channel)
Parameters
| Type | Name | Description |
|---|---|---|
| Channel | channel | The channel to use to make remote calls. |
AssetServiceClient(ClientBase.ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected AssetServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
BatchGetAssetsHistory(BatchGetAssetsHistoryRequest, CallOptions)
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.
Declaration
public virtual BatchGetAssetsHistoryResponse BatchGetAssetsHistory(BatchGetAssetsHistoryRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetAssetsHistoryRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| BatchGetAssetsHistoryResponse | The response received from the server. |
BatchGetAssetsHistory(BatchGetAssetsHistoryRequest, Metadata, Nullable<DateTime>, CancellationToken)
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.
Declaration
public virtual BatchGetAssetsHistoryResponse BatchGetAssetsHistory(BatchGetAssetsHistoryRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetAssetsHistoryRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| BatchGetAssetsHistoryResponse | The response received from the server. |
BatchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest, CallOptions)
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.
Declaration
public virtual AsyncUnaryCall<BatchGetAssetsHistoryResponse> BatchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetAssetsHistoryRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchGetAssetsHistoryResponse> | The call object. |
BatchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest, Metadata, Nullable<DateTime>, CancellationToken)
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.
Declaration
public virtual AsyncUnaryCall<BatchGetAssetsHistoryResponse> BatchGetAssetsHistoryAsync(BatchGetAssetsHistoryRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| BatchGetAssetsHistoryRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<BatchGetAssetsHistoryResponse> | The call object. |
CreateOperationsClient()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client.
Declaration
public virtual Operations.OperationsClient CreateOperationsClient()
Returns
| Type | Description |
|---|---|
| Operations.OperationsClient | A new Operations client for the same target as this client. |
ExportAssets(ExportAssetsRequest, CallOptions)
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][google.longrunning.Operation] API allowing you to keep track of the export.
Declaration
public virtual Operation ExportAssets(ExportAssetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportAssetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| Operation | The response received from the server. |
ExportAssets(ExportAssetsRequest, Metadata, Nullable<DateTime>, CancellationToken)
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][google.longrunning.Operation] API allowing you to keep track of the export.
Declaration
public virtual Operation ExportAssets(ExportAssetsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| ExportAssetsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| Operation | The response received from the server. |
ExportAssetsAsync(ExportAssetsRequest, CallOptions)
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][google.longrunning.Operation] API allowing you to keep track of the export.
Declaration
public virtual AsyncUnaryCall<Operation> ExportAssetsAsync(ExportAssetsRequest request, CallOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| ExportAssetsRequest | request | The request to send to the server. |
| CallOptions | options | The options for the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Operation> | The call object. |
ExportAssetsAsync(ExportAssetsRequest, Metadata, Nullable<DateTime>, CancellationToken)
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][google.longrunning.Operation] API allowing you to keep track of the export.
Declaration
public virtual AsyncUnaryCall<Operation> ExportAssetsAsync(ExportAssetsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| ExportAssetsRequest | request | The request to send to the server. |
| Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
| System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
| System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
| Type | Description |
|---|---|
| AsyncUnaryCall<Operation> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration.
Declaration
protected override AssetService.AssetServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ClientBase.ClientBaseConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| AssetService.AssetServiceClient |