public abstract class DataProductServiceClientReference documentation and code samples for the Cloud Dataplex v1 API class DataProductServiceClient.
DataProductService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dataplex.V1Assembly
Google.Cloud.Dataplex.V1.dll
Remarks
DataProductService provides APIs for managing data products and
the underlying data assets.
Properties
CreateDataAssetOperationsClient
public virtual OperationsClient CreateDataAssetOperationsClient { get; }The long-running operations client for CreateDataAsset.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateDataProductOperationsClient
public virtual OperationsClient CreateDataProductOperationsClient { get; }The long-running operations client for CreateDataProduct.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the DataProductService service, which is a host of "dataplex.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default DataProductService scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default DataProductService scopes are:
DeleteDataAssetOperationsClient
public virtual OperationsClient DeleteDataAssetOperationsClient { get; }The long-running operations client for DeleteDataAsset.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteDataProductOperationsClient
public virtual OperationsClient DeleteDataProductOperationsClient { get; }The long-running operations client for DeleteDataProduct.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual DataProductService.DataProductServiceClient GrpcClient { get; }The underlying gRPC DataProductService client
| Property Value | |
|---|---|
| Type | Description |
DataProductServiceDataProductServiceClient |
|
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }The IAMPolicyClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
IAMPolicyClient |
|
LocationsClient
public virtual LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
UpdateDataAssetOperationsClient
public virtual OperationsClient UpdateDataAssetOperationsClient { get; }The long-running operations client for UpdateDataAsset.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateDataProductOperationsClient
public virtual OperationsClient UpdateDataProductOperationsClient { get; }The long-running operations client for UpdateDataProduct.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
Create()
public static DataProductServiceClient Create()Synchronously creates a DataProductServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DataProductServiceClientBuilder .
| Returns | |
|---|---|
| Type | Description |
DataProductServiceClient |
The created DataProductServiceClient. |
CreateAsync(CancellationToken)
public static Task<DataProductServiceClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a DataProductServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use DataProductServiceClientBuilder .
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProductServiceClient |
The task representing the created DataProductServiceClient. |
CreateDataAsset(CreateDataAssetRequest, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> CreateDataAsset(CreateDataAssetRequest request, CallSettings callSettings = null)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateDataAssetRequest request = new gcdv::CreateDataAssetRequest
{
ParentAsDataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
DataAssetId = "",
DataAsset = new gcdv::DataAsset(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = dataProductServiceClient.CreateDataAsset(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceCreateDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAsset(DataProductName, DataAsset, string, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> CreateDataAsset(DataProductName parent, DataAsset dataAsset, string dataAssetId, CallSettings callSettings = null)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DataProductNameRequired. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
dataAsset |
DataAssetRequired. The data asset to create. |
dataAssetId |
stringOptional. The ID of the data asset to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataProductName parent = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
string dataAssetId = "";
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = dataProductServiceClient.CreateDataAsset(parent, dataAsset, dataAssetId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceCreateDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAsset(string, DataAsset, string, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> CreateDataAsset(string parent, DataAsset dataAsset, string dataAssetId, CallSettings callSettings = null)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
dataAsset |
DataAssetRequired. The data asset to create. |
dataAssetId |
stringOptional. The ID of the data asset to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
string dataAssetId = "";
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = dataProductServiceClient.CreateDataAsset(parent, dataAsset, dataAssetId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceCreateDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAssetAsync(CreateDataAssetRequest, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> CreateDataAssetAsync(CreateDataAssetRequest request, CallSettings callSettings = null)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateDataAssetRequest request = new gcdv::CreateDataAssetRequest
{
ParentAsDataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
DataAssetId = "",
DataAsset = new gcdv::DataAsset(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAssetAsync(CreateDataAssetRequest, CancellationToken)
public virtual Task<Operation<DataAsset, OperationMetadata>> CreateDataAssetAsync(CreateDataAssetRequest request, CancellationToken cancellationToken)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataAssetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateDataAssetRequest request = new gcdv::CreateDataAssetRequest
{
ParentAsDataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
DataAssetId = "",
DataAsset = new gcdv::DataAsset(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAssetAsync(DataProductName, DataAsset, string, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> CreateDataAssetAsync(DataProductName parent, DataAsset dataAsset, string dataAssetId, CallSettings callSettings = null)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DataProductNameRequired. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
dataAsset |
DataAssetRequired. The data asset to create. |
dataAssetId |
stringOptional. The ID of the data asset to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName parent = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
string dataAssetId = "";
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataAssetAsync(parent, dataAsset, dataAssetId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAssetAsync(DataProductName, DataAsset, string, CancellationToken)
public virtual Task<Operation<DataAsset, OperationMetadata>> CreateDataAssetAsync(DataProductName parent, DataAsset dataAsset, string dataAssetId, CancellationToken cancellationToken)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DataProductNameRequired. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
dataAsset |
DataAssetRequired. The data asset to create. |
dataAssetId |
stringOptional. The ID of the data asset to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName parent = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
string dataAssetId = "";
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataAssetAsync(parent, dataAsset, dataAssetId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAssetAsync(string, DataAsset, string, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> CreateDataAssetAsync(string parent, DataAsset dataAsset, string dataAssetId, CallSettings callSettings = null)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
dataAsset |
DataAssetRequired. The data asset to create. |
dataAssetId |
stringOptional. The ID of the data asset to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
string dataAssetId = "";
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataAssetAsync(parent, dataAsset, dataAssetId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataAssetAsync(string, DataAsset, string, CancellationToken)
public virtual Task<Operation<DataAsset, OperationMetadata>> CreateDataAssetAsync(string parent, DataAsset dataAsset, string dataAssetId, CancellationToken cancellationToken)Creates a data asset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this data asset will be created. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
dataAsset |
DataAssetRequired. The data asset to create. |
dataAssetId |
stringOptional. The ID of the data asset to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
string dataAssetId = "";
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataAssetAsync(parent, dataAsset, dataAssetId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
CreateDataProduct(LocationName, DataProduct, string, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> CreateDataProduct(LocationName parent, DataProduct dataProduct, string dataProductId, CallSettings callSettings = null)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this data product will be created. Format: projects/{project_id_or_number}/locations/{location_id} |
dataProduct |
DataProductRequired. The data product to create. |
dataProductId |
stringOptional. The ID of the data product to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
string dataProductId = "";
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = dataProductServiceClient.CreateDataProduct(parent, dataProduct, dataProductId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceCreateDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProduct(CreateDataProductRequest, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> CreateDataProduct(CreateDataProductRequest request, CallSettings callSettings = null)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateDataProductRequest request = new gcdv::CreateDataProductRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DataProductId = "",
DataProduct = new gcdv::DataProduct(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = dataProductServiceClient.CreateDataProduct(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceCreateDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProduct(string, DataProduct, string, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> CreateDataProduct(string parent, DataProduct dataProduct, string dataProductId, CallSettings callSettings = null)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this data product will be created. Format: projects/{project_id_or_number}/locations/{location_id} |
dataProduct |
DataProductRequired. The data product to create. |
dataProductId |
stringOptional. The ID of the data product to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
string dataProductId = "";
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = dataProductServiceClient.CreateDataProduct(parent, dataProduct, dataProductId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceCreateDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProductAsync(LocationName, DataProduct, string, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> CreateDataProductAsync(LocationName parent, DataProduct dataProduct, string dataProductId, CallSettings callSettings = null)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this data product will be created. Format: projects/{project_id_or_number}/locations/{location_id} |
dataProduct |
DataProductRequired. The data product to create. |
dataProductId |
stringOptional. The ID of the data product to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
string dataProductId = "";
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataProductAsync(parent, dataProduct, dataProductId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProductAsync(LocationName, DataProduct, string, CancellationToken)
public virtual Task<Operation<DataProduct, OperationMetadata>> CreateDataProductAsync(LocationName parent, DataProduct dataProduct, string dataProductId, CancellationToken cancellationToken)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent resource where this data product will be created. Format: projects/{project_id_or_number}/locations/{location_id} |
dataProduct |
DataProductRequired. The data product to create. |
dataProductId |
stringOptional. The ID of the data product to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
string dataProductId = "";
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataProductAsync(parent, dataProduct, dataProductId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProductAsync(CreateDataProductRequest, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> CreateDataProductAsync(CreateDataProductRequest request, CallSettings callSettings = null)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateDataProductRequest request = new gcdv::CreateDataProductRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DataProductId = "",
DataProduct = new gcdv::DataProduct(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataProductAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProductAsync(CreateDataProductRequest, CancellationToken)
public virtual Task<Operation<DataProduct, OperationMetadata>> CreateDataProductAsync(CreateDataProductRequest request, CancellationToken cancellationToken)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateDataProductRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateDataProductRequest request = new gcdv::CreateDataProductRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
DataProductId = "",
DataProduct = new gcdv::DataProduct(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataProductAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProductAsync(string, DataProduct, string, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> CreateDataProductAsync(string parent, DataProduct dataProduct, string dataProductId, CallSettings callSettings = null)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this data product will be created. Format: projects/{project_id_or_number}/locations/{location_id} |
dataProduct |
DataProductRequired. The data product to create. |
dataProductId |
stringOptional. The ID of the data product to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
string dataProductId = "";
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataProductAsync(parent, dataProduct, dataProductId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
CreateDataProductAsync(string, DataProduct, string, CancellationToken)
public virtual Task<Operation<DataProduct, OperationMetadata>> CreateDataProductAsync(string parent, DataProduct dataProduct, string dataProductId, CancellationToken cancellationToken)Creates a data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent resource where this data product will be created. Format: projects/{project_id_or_number}/locations/{location_id} |
dataProduct |
DataProductRequired. The data product to create. |
dataProductId |
stringOptional. The ID of the data product to create. The ID must conform to RFC-1034 and contain only lower-case letters (a-z),
numbers (0-9), or hyphens, with the first character a letter, the last a
letter or a number, and a 63 character maximum. Characters outside of
ASCII are not permitted.
Valid format regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
string dataProductId = "";
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.CreateDataProductAsync(parent, dataProduct, dataProductId);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceCreateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
DeleteDataAsset(DataAssetName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDataAsset(DataAssetName name, CallSettings callSettings = null)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
DataAssetNameRequired. The name of the data asset to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataAssetName name = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = dataProductServiceClient.DeleteDataAsset(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceDeleteDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAsset(DeleteDataAssetRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDataAsset(DeleteDataAssetRequest request, CallSettings callSettings = null)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteDataAssetRequest request = new gcdv::DeleteDataAssetRequest
{
DataAssetName = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]"),
Etag = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = dataProductServiceClient.DeleteDataAsset(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceDeleteDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAsset(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDataAsset(string name, CallSettings callSettings = null)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data asset to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]/dataAssets/[DATA_ASSET]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = dataProductServiceClient.DeleteDataAsset(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceDeleteDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAssetAsync(DataAssetName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAssetAsync(DataAssetName name, CallSettings callSettings = null)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
DataAssetNameRequired. The name of the data asset to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataAssetName name = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataAssetAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAssetAsync(DataAssetName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAssetAsync(DataAssetName name, CancellationToken cancellationToken)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
DataAssetNameRequired. The name of the data asset to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataAssetName name = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataAssetAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAssetAsync(DeleteDataAssetRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAssetAsync(DeleteDataAssetRequest request, CallSettings callSettings = null)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteDataAssetRequest request = new gcdv::DeleteDataAssetRequest
{
DataAssetName = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]"),
Etag = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAssetAsync(DeleteDataAssetRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAssetAsync(DeleteDataAssetRequest request, CancellationToken cancellationToken)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataAssetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteDataAssetRequest request = new gcdv::DeleteDataAssetRequest
{
DataAssetName = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]"),
Etag = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAssetAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAssetAsync(string name, CallSettings callSettings = null)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data asset to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]/dataAssets/[DATA_ASSET]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataAssetAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataAssetAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataAssetAsync(string name, CancellationToken cancellationToken)Deletes a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data asset to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]/dataAssets/[DATA_ASSET]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataAssetAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProduct(DataProductName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDataProduct(DataProductName name, CallSettings callSettings = null)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
name |
DataProductNameRequired. The name of the data product to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataProductName name = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = dataProductServiceClient.DeleteDataProduct(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceDeleteDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProduct(DeleteDataProductRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDataProduct(DeleteDataProductRequest request, CallSettings callSettings = null)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteDataProductRequest request = new gcdv::DeleteDataProductRequest
{
DataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
Etag = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = dataProductServiceClient.DeleteDataProduct(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceDeleteDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProduct(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteDataProduct(string name, CallSettings callSettings = null)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data product to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = dataProductServiceClient.DeleteDataProduct(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceDeleteDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProductAsync(DataProductName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataProductAsync(DataProductName name, CallSettings callSettings = null)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
name |
DataProductNameRequired. The name of the data product to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName name = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataProductAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProductAsync(DataProductName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataProductAsync(DataProductName name, CancellationToken cancellationToken)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
name |
DataProductNameRequired. The name of the data product to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName name = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataProductAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProductAsync(DeleteDataProductRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataProductAsync(DeleteDataProductRequest request, CallSettings callSettings = null)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteDataProductRequest request = new gcdv::DeleteDataProductRequest
{
DataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
Etag = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataProductAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProductAsync(DeleteDataProductRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataProductAsync(DeleteDataProductRequest request, CancellationToken cancellationToken)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteDataProductRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteDataProductRequest request = new gcdv::DeleteDataProductRequest
{
DataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
Etag = "",
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataProductAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProductAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataProductAsync(string name, CallSettings callSettings = null)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data product to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataProductAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteDataProductAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteDataProductAsync(string name, CancellationToken cancellationToken)Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data product to delete. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await dataProductServiceClient.DeleteDataProductAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceDeleteDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
GetDataAsset(DataAssetName, CallSettings)
public virtual DataAsset GetDataAsset(DataAssetName name, CallSettings callSettings = null)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
DataAssetNameRequired. The name of the data asset to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataAsset |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataAssetName name = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]");
// Make the request
gcdv::DataAsset response = dataProductServiceClient.GetDataAsset(name);
GetDataAsset(GetDataAssetRequest, CallSettings)
public virtual DataAsset GetDataAsset(GetDataAssetRequest request, CallSettings callSettings = null)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataAsset |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::GetDataAssetRequest request = new gcdv::GetDataAssetRequest
{
DataAssetName = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]"),
};
// Make the request
gcdv::DataAsset response = dataProductServiceClient.GetDataAsset(request);
GetDataAsset(string, CallSettings)
public virtual DataAsset GetDataAsset(string name, CallSettings callSettings = null)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data asset to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataAsset |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]/dataAssets/[DATA_ASSET]";
// Make the request
gcdv::DataAsset response = dataProductServiceClient.GetDataAsset(name);
GetDataAssetAsync(DataAssetName, CallSettings)
public virtual Task<DataAsset> GetDataAssetAsync(DataAssetName name, CallSettings callSettings = null)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
DataAssetNameRequired. The name of the data asset to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataAsset |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataAssetName name = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]");
// Make the request
gcdv::DataAsset response = await dataProductServiceClient.GetDataAssetAsync(name);
GetDataAssetAsync(DataAssetName, CancellationToken)
public virtual Task<DataAsset> GetDataAssetAsync(DataAssetName name, CancellationToken cancellationToken)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
DataAssetNameRequired. The name of the data asset to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataAsset |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataAssetName name = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]");
// Make the request
gcdv::DataAsset response = await dataProductServiceClient.GetDataAssetAsync(name);
GetDataAssetAsync(GetDataAssetRequest, CallSettings)
public virtual Task<DataAsset> GetDataAssetAsync(GetDataAssetRequest request, CallSettings callSettings = null)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataAsset |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetDataAssetRequest request = new gcdv::GetDataAssetRequest
{
DataAssetName = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]"),
};
// Make the request
gcdv::DataAsset response = await dataProductServiceClient.GetDataAssetAsync(request);
GetDataAssetAsync(GetDataAssetRequest, CancellationToken)
public virtual Task<DataAsset> GetDataAssetAsync(GetDataAssetRequest request, CancellationToken cancellationToken)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataAssetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataAsset |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetDataAssetRequest request = new gcdv::GetDataAssetRequest
{
DataAssetName = gcdv::DataAssetName.FromProjectLocationDataProductDataAsset("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]", "[DATA_ASSET]"),
};
// Make the request
gcdv::DataAsset response = await dataProductServiceClient.GetDataAssetAsync(request);
GetDataAssetAsync(string, CallSettings)
public virtual Task<DataAsset> GetDataAssetAsync(string name, CallSettings callSettings = null)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data asset to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataAsset |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]/dataAssets/[DATA_ASSET]";
// Make the request
gcdv::DataAsset response = await dataProductServiceClient.GetDataAssetAsync(name);
GetDataAssetAsync(string, CancellationToken)
public virtual Task<DataAsset> GetDataAssetAsync(string name, CancellationToken cancellationToken)Gets a data asset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data asset to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataAsset |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]/dataAssets/[DATA_ASSET]";
// Make the request
gcdv::DataAsset response = await dataProductServiceClient.GetDataAssetAsync(name);
GetDataProduct(DataProductName, CallSettings)
public virtual DataProduct GetDataProduct(DataProductName name, CallSettings callSettings = null)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
name |
DataProductNameRequired. The name of the data product to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataProduct |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataProductName name = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
gcdv::DataProduct response = dataProductServiceClient.GetDataProduct(name);
GetDataProduct(GetDataProductRequest, CallSettings)
public virtual DataProduct GetDataProduct(GetDataProductRequest request, CallSettings callSettings = null)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataProduct |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::GetDataProductRequest request = new gcdv::GetDataProductRequest
{
DataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
};
// Make the request
gcdv::DataProduct response = dataProductServiceClient.GetDataProduct(request);
GetDataProduct(string, CallSettings)
public virtual DataProduct GetDataProduct(string name, CallSettings callSettings = null)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data product to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
DataProduct |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
gcdv::DataProduct response = dataProductServiceClient.GetDataProduct(name);
GetDataProductAsync(DataProductName, CallSettings)
public virtual Task<DataProduct> GetDataProductAsync(DataProductName name, CallSettings callSettings = null)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
name |
DataProductNameRequired. The name of the data product to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProduct |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName name = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
gcdv::DataProduct response = await dataProductServiceClient.GetDataProductAsync(name);
GetDataProductAsync(DataProductName, CancellationToken)
public virtual Task<DataProduct> GetDataProductAsync(DataProductName name, CancellationToken cancellationToken)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
name |
DataProductNameRequired. The name of the data product to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProduct |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName name = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
gcdv::DataProduct response = await dataProductServiceClient.GetDataProductAsync(name);
GetDataProductAsync(GetDataProductRequest, CallSettings)
public virtual Task<DataProduct> GetDataProductAsync(GetDataProductRequest request, CallSettings callSettings = null)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProduct |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetDataProductRequest request = new gcdv::GetDataProductRequest
{
DataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
};
// Make the request
gcdv::DataProduct response = await dataProductServiceClient.GetDataProductAsync(request);
GetDataProductAsync(GetDataProductRequest, CancellationToken)
public virtual Task<DataProduct> GetDataProductAsync(GetDataProductRequest request, CancellationToken cancellationToken)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDataProductRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProduct |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetDataProductRequest request = new gcdv::GetDataProductRequest
{
DataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
};
// Make the request
gcdv::DataProduct response = await dataProductServiceClient.GetDataProductAsync(request);
GetDataProductAsync(string, CallSettings)
public virtual Task<DataProduct> GetDataProductAsync(string name, CallSettings callSettings = null)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data product to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProduct |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
gcdv::DataProduct response = await dataProductServiceClient.GetDataProductAsync(name);
GetDataProductAsync(string, CancellationToken)
public virtual Task<DataProduct> GetDataProductAsync(string name, CancellationToken cancellationToken)Gets a data product.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The name of the data product to retrieve. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataProduct |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
gcdv::DataProduct response = await dataProductServiceClient.GetDataProductAsync(name);
ListDataAssets(DataProductName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDataAssetsResponse, DataAsset> ListDataAssets(DataProductName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data assets for a given data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
DataProductNameRequired. The parent, which has this collection of data assets. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataAssetsResponseDataAsset |
A pageable sequence of DataAsset resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataProductName parent = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
PagedEnumerable<gcdv::ListDataAssetsResponse, gcdv::DataAsset> response = dataProductServiceClient.ListDataAssets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::DataAsset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListDataAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataAsset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataAsset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataAsset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataAssets(ListDataAssetsRequest, CallSettings)
public virtual PagedEnumerable<ListDataAssetsResponse, DataAsset> ListDataAssets(ListDataAssetsRequest request, CallSettings callSettings = null)Lists data assets for a given data product.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDataAssetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataAssetsResponseDataAsset |
A pageable sequence of DataAsset resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::ListDataAssetsRequest request = new gcdv::ListDataAssetsRequest
{
ParentAsDataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListDataAssetsResponse, gcdv::DataAsset> response = dataProductServiceClient.ListDataAssets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::DataAsset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListDataAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataAsset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataAsset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataAsset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataAssets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDataAssetsResponse, DataAsset> ListDataAssets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data assets for a given data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which has this collection of data assets. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataAssetsResponseDataAsset |
A pageable sequence of DataAsset resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
PagedEnumerable<gcdv::ListDataAssetsResponse, gcdv::DataAsset> response = dataProductServiceClient.ListDataAssets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::DataAsset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListDataAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataAsset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataAsset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataAsset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataAssetsAsync(DataProductName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDataAssetsResponse, DataAsset> ListDataAssetsAsync(DataProductName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data assets for a given data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
DataProductNameRequired. The parent, which has this collection of data assets. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataAssetsResponseDataAsset |
A pageable asynchronous sequence of DataAsset resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProductName parent = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]");
// Make the request
PagedAsyncEnumerable<gcdv::ListDataAssetsResponse, gcdv::DataAsset> response = dataProductServiceClient.ListDataAssetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::DataAsset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (gcdv::ListDataAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataAsset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataAsset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataAsset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataAssetsAsync(ListDataAssetsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDataAssetsResponse, DataAsset> ListDataAssetsAsync(ListDataAssetsRequest request, CallSettings callSettings = null)Lists data assets for a given data product.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDataAssetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataAssetsResponseDataAsset |
A pageable asynchronous sequence of DataAsset resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListDataAssetsRequest request = new gcdv::ListDataAssetsRequest
{
ParentAsDataProductName = gcdv::DataProductName.FromProjectLocationDataProduct("[PROJECT]", "[LOCATION]", "[DATA_PRODUCT]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListDataAssetsResponse, gcdv::DataAsset> response = dataProductServiceClient.ListDataAssetsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::DataAsset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (gcdv::ListDataAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataAsset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataAsset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataAsset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataAssetsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDataAssetsResponse, DataAsset> ListDataAssetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data assets for a given data product.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which has this collection of data assets. Format: projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataAssetsResponseDataAsset |
A pageable asynchronous sequence of DataAsset resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/dataProducts/[DATA_PRODUCT]";
// Make the request
PagedAsyncEnumerable<gcdv::ListDataAssetsResponse, gcdv::DataAsset> response = dataProductServiceClient.ListDataAssetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::DataAsset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (gcdv::ListDataAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataAsset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataAsset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataAsset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataProducts(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDataProductsResponse, DataProduct> ListDataProducts(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data products for a given project.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which has this collection of data products. Format: Supports listing across all locations with the wildcard |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataProductsResponseDataProduct |
A pageable sequence of DataProduct resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<gcdv::ListDataProductsResponse, gcdv::DataProduct> response = dataProductServiceClient.ListDataProducts(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::DataProduct item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListDataProductsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataProduct item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataProduct> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataProduct item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataProducts(ListDataProductsRequest, CallSettings)
public virtual PagedEnumerable<ListDataProductsResponse, DataProduct> ListDataProducts(ListDataProductsRequest request, CallSettings callSettings = null)Lists data products for a given project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDataProductsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataProductsResponseDataProduct |
A pageable sequence of DataProduct resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::ListDataProductsRequest request = new gcdv::ListDataProductsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcdv::ListDataProductsResponse, gcdv::DataProduct> response = dataProductServiceClient.ListDataProducts(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::DataProduct item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListDataProductsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataProduct item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataProduct> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataProduct item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataProducts(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDataProductsResponse, DataProduct> ListDataProducts(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data products for a given project.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which has this collection of data products. Format: Supports listing across all locations with the wildcard |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDataProductsResponseDataProduct |
A pageable sequence of DataProduct resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcdv::ListDataProductsResponse, gcdv::DataProduct> response = dataProductServiceClient.ListDataProducts(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcdv::DataProduct item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (gcdv::ListDataProductsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataProduct item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataProduct> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataProduct item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataProductsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDataProductsResponse, DataProduct> ListDataProductsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data products for a given project.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which has this collection of data products. Format: Supports listing across all locations with the wildcard |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataProductsResponseDataProduct |
A pageable asynchronous sequence of DataProduct resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcdv::ListDataProductsResponse, gcdv::DataProduct> response = dataProductServiceClient.ListDataProductsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::DataProduct item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (gcdv::ListDataProductsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataProduct item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataProduct> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataProduct item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataProductsAsync(ListDataProductsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDataProductsResponse, DataProduct> ListDataProductsAsync(ListDataProductsRequest request, CallSettings callSettings = null)Lists data products for a given project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDataProductsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataProductsResponseDataProduct |
A pageable asynchronous sequence of DataProduct resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::ListDataProductsRequest request = new gcdv::ListDataProductsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcdv::ListDataProductsResponse, gcdv::DataProduct> response = dataProductServiceClient.ListDataProductsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::DataProduct item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (gcdv::ListDataProductsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataProduct item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataProduct> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataProduct item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDataProductsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDataProductsResponse, DataProduct> ListDataProductsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists data products for a given project.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which has this collection of data products. Format: Supports listing across all locations with the wildcard |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDataProductsResponseDataProduct |
A pageable asynchronous sequence of DataProduct resources. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcdv::ListDataProductsResponse, gcdv::DataProduct> response = dataProductServiceClient.ListDataProductsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (gcdv::DataProduct item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (gcdv::ListDataProductsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcdv::DataProduct item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<gcdv::DataProduct> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (gcdv::DataProduct item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceCreateDataAsset(string, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> PollOnceCreateDataAsset(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateDataAsset.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The result of polling the operation. |
PollOnceCreateDataAssetAsync(string, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> PollOnceCreateDataAssetAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateDataAsset.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateDataProduct(string, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> PollOnceCreateDataProduct(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateDataProduct
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The result of polling the operation. |
PollOnceCreateDataProductAsync(string, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> PollOnceCreateDataProductAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateDataProduct.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteDataAsset(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDataAsset(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteDataAsset.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteDataAssetAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteDataAssetAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteDataAsset.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteDataProduct(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteDataProduct(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteDataProduct
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteDataProductAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteDataProductAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteDataProduct.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateDataAsset(string, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> PollOnceUpdateDataAsset(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateDataAsset.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The result of polling the operation. |
PollOnceUpdateDataAssetAsync(string, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> PollOnceUpdateDataAssetAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateDataAsset.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateDataProduct(string, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> PollOnceUpdateDataProduct(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateDataProduct
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The result of polling the operation. |
PollOnceUpdateDataProductAsync(string, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> PollOnceUpdateDataProductAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateDataProduct.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateDataAsset(DataAsset, FieldMask, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> UpdateDataAsset(DataAsset dataAsset, FieldMask updateMask, CallSettings callSettings = null)Updates a data asset.
| Parameters | |
|---|---|
| Name | Description |
dataAsset |
DataAssetRequired. The data asset to update.
The data asset's |
updateMask |
FieldMaskOptional. The list of fields to update. If this is empty or not set, then all the fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = dataProductServiceClient.UpdateDataAsset(dataAsset, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceUpdateDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
UpdateDataAsset(UpdateDataAssetRequest, CallSettings)
public virtual Operation<DataAsset, OperationMetadata> UpdateDataAsset(UpdateDataAssetRequest request, CallSettings callSettings = null)Updates a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataAssetOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateDataAssetRequest request = new gcdv::UpdateDataAssetRequest
{
DataAsset = new gcdv::DataAsset(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = dataProductServiceClient.UpdateDataAsset(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceUpdateDataAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
UpdateDataAssetAsync(DataAsset, FieldMask, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> UpdateDataAssetAsync(DataAsset dataAsset, FieldMask updateMask, CallSettings callSettings = null)Updates a data asset.
| Parameters | |
|---|---|
| Name | Description |
dataAsset |
DataAssetRequired. The data asset to update.
The data asset's |
updateMask |
FieldMaskOptional. The list of fields to update. If this is empty or not set, then all the fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataAssetAsync(dataAsset, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
UpdateDataAssetAsync(DataAsset, FieldMask, CancellationToken)
public virtual Task<Operation<DataAsset, OperationMetadata>> UpdateDataAssetAsync(DataAsset dataAsset, FieldMask updateMask, CancellationToken cancellationToken)Updates a data asset.
| Parameters | |
|---|---|
| Name | Description |
dataAsset |
DataAssetRequired. The data asset to update.
The data asset's |
updateMask |
FieldMaskOptional. The list of fields to update. If this is empty or not set, then all the fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataAsset dataAsset = new gcdv::DataAsset();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataAssetAsync(dataAsset, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
UpdateDataAssetAsync(UpdateDataAssetRequest, CallSettings)
public virtual Task<Operation<DataAsset, OperationMetadata>> UpdateDataAssetAsync(UpdateDataAssetRequest request, CallSettings callSettings = null)Updates a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataAssetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateDataAssetRequest request = new gcdv::UpdateDataAssetRequest
{
DataAsset = new gcdv::DataAsset(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
UpdateDataAssetAsync(UpdateDataAssetRequest, CancellationToken)
public virtual Task<Operation<DataAsset, OperationMetadata>> UpdateDataAssetAsync(UpdateDataAssetRequest request, CancellationToken cancellationToken)Updates a data asset.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataAssetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataAssetOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateDataAssetRequest request = new gcdv::UpdateDataAssetRequest
{
DataAsset = new gcdv::DataAsset(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataAsset, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataAsset, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataAsset result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataAsset, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataAsset retrievedResult = retrievedResponse.Result;
}
UpdateDataProduct(DataProduct, FieldMask, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> UpdateDataProduct(DataProduct dataProduct, FieldMask updateMask, CallSettings callSettings = null)Updates a data product.
| Parameters | |
|---|---|
| Name | Description |
dataProduct |
DataProductRequired. The data product to update.
The data product's |
updateMask |
FieldMaskOptional. The list of fields to update. If this is empty or not set, then all the fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = dataProductServiceClient.UpdateDataProduct(dataProduct, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceUpdateDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
UpdateDataProduct(UpdateDataProductRequest, CallSettings)
public virtual Operation<DataProduct, OperationMetadata> UpdateDataProduct(UpdateDataProductRequest request, CallSettings callSettings = null)Updates a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationDataProductOperationMetadata |
The RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = gcdv::DataProductServiceClient.Create();
// Initialize request argument(s)
gcdv::UpdateDataProductRequest request = new gcdv::UpdateDataProductRequest
{
DataProduct = new gcdv::DataProduct(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = dataProductServiceClient.UpdateDataProduct(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = dataProductServiceClient.PollOnceUpdateDataProduct(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
UpdateDataProductAsync(DataProduct, FieldMask, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> UpdateDataProductAsync(DataProduct dataProduct, FieldMask updateMask, CallSettings callSettings = null)Updates a data product.
| Parameters | |
|---|---|
| Name | Description |
dataProduct |
DataProductRequired. The data product to update.
The data product's |
updateMask |
FieldMaskOptional. The list of fields to update. If this is empty or not set, then all the fields will be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataProductAsync(dataProduct, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
UpdateDataProductAsync(DataProduct, FieldMask, CancellationToken)
public virtual Task<Operation<DataProduct, OperationMetadata>> UpdateDataProductAsync(DataProduct dataProduct, FieldMask updateMask, CancellationToken cancellationToken)Updates a data product.
| Parameters | |
|---|---|
| Name | Description |
dataProduct |
DataProductRequired. The data product to update.
The data product's |
updateMask |
FieldMaskOptional. The list of fields to update. If this is empty or not set, then all the fields will be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DataProduct dataProduct = new gcdv::DataProduct();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataProductAsync(dataProduct, updateMask);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
UpdateDataProductAsync(UpdateDataProductRequest, CallSettings)
public virtual Task<Operation<DataProduct, OperationMetadata>> UpdateDataProductAsync(UpdateDataProductRequest request, CallSettings callSettings = null)Updates a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataProductRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateDataProductRequest request = new gcdv::UpdateDataProductRequest
{
DataProduct = new gcdv::DataProduct(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataProductAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}
UpdateDataProductAsync(UpdateDataProductRequest, CancellationToken)
public virtual Task<Operation<DataProduct, OperationMetadata>> UpdateDataProductAsync(UpdateDataProductRequest request, CancellationToken cancellationToken)Updates a data product.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateDataProductRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationDataProductOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::DataProductServiceClient dataProductServiceClient = await gcdv::DataProductServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::UpdateDataProductRequest request = new gcdv::UpdateDataProductRequest
{
DataProduct = new gcdv::DataProduct(),
UpdateMask = new FieldMask(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::DataProduct, gcdv::OperationMetadata> response = await dataProductServiceClient.UpdateDataProductAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::DataProduct, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::DataProduct result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcdv::DataProduct, gcdv::OperationMetadata> retrievedResponse = await dataProductServiceClient.PollOnceUpdateDataProductAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::DataProduct retrievedResult = retrievedResponse.Result;
}