public abstract class CatalogServiceClient
Reference documentation and code samples for the Cloud Dataplex v1 API class CatalogServiceClient.
CatalogService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dataplex.V1Assembly
Google.Cloud.Dataplex.V1.dll
Remarks
The primary resources offered by this service are EntryGroups, EntryTypes, AspectTypes, and Entries. They collectively let data administrators organize, manage, secure, and catalog data located across cloud projects in their organization in a variety of storage systems, including Cloud Storage and BigQuery.
Properties
CreateAspectTypeOperationsClient
public virtual OperationsClient CreateAspectTypeOperationsClient { get; }
The long-running operations client for CreateAspectType
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateEntryGroupOperationsClient
public virtual OperationsClient CreateEntryGroupOperationsClient { get; }
The long-running operations client for CreateEntryGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateEntryTypeOperationsClient
public virtual OperationsClient CreateEntryTypeOperationsClient { get; }
The long-running operations client for CreateEntryType
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateMetadataJobOperationsClient
public virtual OperationsClient CreateMetadataJobOperationsClient { get; }
The long-running operations client for CreateMetadataJob
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the CatalogService 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 CatalogService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default CatalogService scopes are:
DeleteAspectTypeOperationsClient
public virtual OperationsClient DeleteAspectTypeOperationsClient { get; }
The long-running operations client for DeleteAspectType
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteEntryGroupOperationsClient
public virtual OperationsClient DeleteEntryGroupOperationsClient { get; }
The long-running operations client for DeleteEntryGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteEntryTypeOperationsClient
public virtual OperationsClient DeleteEntryTypeOperationsClient { get; }
The long-running operations client for DeleteEntryType
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual CatalogService.CatalogServiceClient GrpcClient { get; }
The underlying gRPC CatalogService client
Property Value | |
---|---|
Type | Description |
CatalogServiceCatalogServiceClient |
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 |
UpdateAspectTypeOperationsClient
public virtual OperationsClient UpdateAspectTypeOperationsClient { get; }
The long-running operations client for UpdateAspectType
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateEntryGroupOperationsClient
public virtual OperationsClient UpdateEntryGroupOperationsClient { get; }
The long-running operations client for UpdateEntryGroup
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateEntryTypeOperationsClient
public virtual OperationsClient UpdateEntryTypeOperationsClient { get; }
The long-running operations client for UpdateEntryType
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CancelMetadataJob(CancelMetadataJobRequest, CallSettings)
public virtual void CancelMetadataJob(CancelMetadataJobRequest request, CallSettings callSettings = null)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
request |
CancelMetadataJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::CancelMetadataJobRequest request = new gcdv::CancelMetadataJobRequest
{
MetadataJobName = gcdv::MetadataJobName.FromProjectLocationMetadataJob("[PROJECT]", "[LOCATION]", "[METADATAJOB]"),
};
// Make the request
catalogServiceClient.CancelMetadataJob(request);
CancelMetadataJob(MetadataJobName, CallSettings)
public virtual void CancelMetadataJob(MetadataJobName name, CallSettings callSettings = null)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
name |
MetadataJobName Required. The resource name of the job, in the format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::MetadataJobName name = gcdv::MetadataJobName.FromProjectLocationMetadataJob("[PROJECT]", "[LOCATION]", "[METADATAJOB]");
// Make the request
catalogServiceClient.CancelMetadataJob(name);
CancelMetadataJob(string, CallSettings)
public virtual void CancelMetadataJob(string name, CallSettings callSettings = null)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job, in the format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/metadataJobs/[METADATAJOB]";
// Make the request
catalogServiceClient.CancelMetadataJob(name);
CancelMetadataJobAsync(CancelMetadataJobRequest, CallSettings)
public virtual Task CancelMetadataJobAsync(CancelMetadataJobRequest request, CallSettings callSettings = null)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
request |
CancelMetadataJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CancelMetadataJobRequest request = new gcdv::CancelMetadataJobRequest
{
MetadataJobName = gcdv::MetadataJobName.FromProjectLocationMetadataJob("[PROJECT]", "[LOCATION]", "[METADATAJOB]"),
};
// Make the request
await catalogServiceClient.CancelMetadataJobAsync(request);
CancelMetadataJobAsync(CancelMetadataJobRequest, CancellationToken)
public virtual Task CancelMetadataJobAsync(CancelMetadataJobRequest request, CancellationToken cancellationToken)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
request |
CancelMetadataJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CancelMetadataJobRequest request = new gcdv::CancelMetadataJobRequest
{
MetadataJobName = gcdv::MetadataJobName.FromProjectLocationMetadataJob("[PROJECT]", "[LOCATION]", "[METADATAJOB]"),
};
// Make the request
await catalogServiceClient.CancelMetadataJobAsync(request);
CancelMetadataJobAsync(MetadataJobName, CallSettings)
public virtual Task CancelMetadataJobAsync(MetadataJobName name, CallSettings callSettings = null)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
name |
MetadataJobName Required. The resource name of the job, in the format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::MetadataJobName name = gcdv::MetadataJobName.FromProjectLocationMetadataJob("[PROJECT]", "[LOCATION]", "[METADATAJOB]");
// Make the request
await catalogServiceClient.CancelMetadataJobAsync(name);
CancelMetadataJobAsync(MetadataJobName, CancellationToken)
public virtual Task CancelMetadataJobAsync(MetadataJobName name, CancellationToken cancellationToken)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
name |
MetadataJobName Required. The resource name of the job, in the format
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::MetadataJobName name = gcdv::MetadataJobName.FromProjectLocationMetadataJob("[PROJECT]", "[LOCATION]", "[METADATAJOB]");
// Make the request
await catalogServiceClient.CancelMetadataJobAsync(name);
CancelMetadataJobAsync(string, CallSettings)
public virtual Task CancelMetadataJobAsync(string name, CallSettings callSettings = null)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job, in the format
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/metadataJobs/[METADATAJOB]";
// Make the request
await catalogServiceClient.CancelMetadataJobAsync(name);
CancelMetadataJobAsync(string, CancellationToken)
public virtual Task CancelMetadataJobAsync(string name, CancellationToken cancellationToken)
Cancels a metadata job.
If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the job, in the format
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/metadataJobs/[METADATAJOB]";
// Make the request
await catalogServiceClient.CancelMetadataJobAsync(name);
Create()
public static CatalogServiceClient Create()
Synchronously creates a CatalogServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CatalogServiceClientBuilder.
Returns | |
---|---|
Type | Description |
CatalogServiceClient |
The created CatalogServiceClient. |
CreateAspectType(LocationName, AspectType, string, CallSettings)
public virtual Operation<AspectType, OperationMetadata> CreateAspectType(LocationName parent, AspectType aspectType, string aspectTypeId, CallSettings callSettings = null)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}
where |
aspectType |
AspectType Required. AspectType Resource. |
aspectTypeId |
string Required. AspectType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAspectTypeOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::AspectType aspectType = new gcdv::AspectType();
string aspectTypeId = "";
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = catalogServiceClient.CreateAspectType(parent, aspectType, aspectTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateAspectType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectType(CreateAspectTypeRequest, CallSettings)
public virtual Operation<AspectType, OperationMetadata> CreateAspectType(CreateAspectTypeRequest request, CallSettings callSettings = null)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
request |
CreateAspectTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAspectTypeOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateAspectTypeRequest request = new gcdv::CreateAspectTypeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
AspectTypeId = "",
AspectType = new gcdv::AspectType(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = catalogServiceClient.CreateAspectType(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateAspectType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectType(string, AspectType, string, CallSettings)
public virtual Operation<AspectType, OperationMetadata> CreateAspectType(string parent, AspectType aspectType, string aspectTypeId, CallSettings callSettings = null)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}
where |
aspectType |
AspectType Required. AspectType Resource. |
aspectTypeId |
string Required. AspectType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAspectTypeOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::AspectType aspectType = new gcdv::AspectType();
string aspectTypeId = "";
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = catalogServiceClient.CreateAspectType(parent, aspectType, aspectTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateAspectType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectTypeAsync(LocationName, AspectType, string, CallSettings)
public virtual Task<Operation<AspectType, OperationMetadata>> CreateAspectTypeAsync(LocationName parent, AspectType aspectType, string aspectTypeId, CallSettings callSettings = null)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}
where |
aspectType |
AspectType Required. AspectType Resource. |
aspectTypeId |
string Required. AspectType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAspectTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::AspectType aspectType = new gcdv::AspectType();
string aspectTypeId = "";
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateAspectTypeAsync(parent, aspectType, aspectTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateAspectTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectTypeAsync(LocationName, AspectType, string, CancellationToken)
public virtual Task<Operation<AspectType, OperationMetadata>> CreateAspectTypeAsync(LocationName parent, AspectType aspectType, string aspectTypeId, CancellationToken cancellationToken)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}
where |
aspectType |
AspectType Required. AspectType Resource. |
aspectTypeId |
string Required. AspectType identifier. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAspectTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::AspectType aspectType = new gcdv::AspectType();
string aspectTypeId = "";
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateAspectTypeAsync(parent, aspectType, aspectTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateAspectTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectTypeAsync(CreateAspectTypeRequest, CallSettings)
public virtual Task<Operation<AspectType, OperationMetadata>> CreateAspectTypeAsync(CreateAspectTypeRequest request, CallSettings callSettings = null)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
request |
CreateAspectTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAspectTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateAspectTypeRequest request = new gcdv::CreateAspectTypeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
AspectTypeId = "",
AspectType = new gcdv::AspectType(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateAspectTypeAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateAspectTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectTypeAsync(CreateAspectTypeRequest, CancellationToken)
public virtual Task<Operation<AspectType, OperationMetadata>> CreateAspectTypeAsync(CreateAspectTypeRequest request, CancellationToken cancellationToken)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
request |
CreateAspectTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAspectTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateAspectTypeRequest request = new gcdv::CreateAspectTypeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
AspectTypeId = "",
AspectType = new gcdv::AspectType(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateAspectTypeAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateAspectTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectTypeAsync(string, AspectType, string, CallSettings)
public virtual Task<Operation<AspectType, OperationMetadata>> CreateAspectTypeAsync(string parent, AspectType aspectType, string aspectTypeId, CallSettings callSettings = null)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}
where |
aspectType |
AspectType Required. AspectType Resource. |
aspectTypeId |
string Required. AspectType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAspectTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::AspectType aspectType = new gcdv::AspectType();
string aspectTypeId = "";
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateAspectTypeAsync(parent, aspectType, aspectTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateAspectTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAspectTypeAsync(string, AspectType, string, CancellationToken)
public virtual Task<Operation<AspectType, OperationMetadata>> CreateAspectTypeAsync(string parent, AspectType aspectType, string aspectTypeId, CancellationToken cancellationToken)
Creates an AspectType.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the AspectType, of the form:
projects/{project_number}/locations/{location_id}
where |
aspectType |
AspectType Required. AspectType Resource. |
aspectTypeId |
string Required. AspectType identifier. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAspectTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::AspectType aspectType = new gcdv::AspectType();
string aspectTypeId = "";
// Make the request
Operation<gcdv::AspectType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateAspectTypeAsync(parent, aspectType, aspectTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::AspectType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::AspectType 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::AspectType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateAspectTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::AspectType retrievedResult = retrievedResponse.Result;
}
CreateAsync(CancellationToken)
public static Task<CatalogServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a CatalogServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use CatalogServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskCatalogServiceClient |
The task representing the created CatalogServiceClient. |
CreateEntry(CreateEntryRequest, CallSettings)
public virtual Entry CreateEntry(CreateEntryRequest request, CallSettings callSettings = null)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entry |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateEntryRequest request = new gcdv::CreateEntryRequest
{
ParentAsEntryGroupName = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"),
EntryId = "",
Entry = new gcdv::Entry(),
};
// Make the request
gcdv::Entry response = catalogServiceClient.CreateEntry(request);
CreateEntry(EntryGroupName, Entry, string, CallSettings)
public virtual Entry CreateEntry(EntryGroupName parent, Entry entry, string entryId, CallSettings callSettings = null)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
parent |
EntryGroupName Required. The resource name of the parent Entry Group:
|
entry |
Entry Required. Entry resource. |
entryId |
string Required. Entry identifier. It has to be unique within an Entry Group. Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name. For example, if the full resource name of a resource is
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud. The maximum size of the field is 4000 characters. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entry |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::EntryGroupName parent = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
gcdv::Entry entry = new gcdv::Entry();
string entryId = "";
// Make the request
gcdv::Entry response = catalogServiceClient.CreateEntry(parent, entry, entryId);
CreateEntry(string, Entry, string, CallSettings)
public virtual Entry CreateEntry(string parent, Entry entry, string entryId, CallSettings callSettings = null)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the parent Entry Group:
|
entry |
Entry Required. Entry resource. |
entryId |
string Required. Entry identifier. It has to be unique within an Entry Group. Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name. For example, if the full resource name of a resource is
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud. The maximum size of the field is 4000 characters. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entry |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
gcdv::Entry entry = new gcdv::Entry();
string entryId = "";
// Make the request
gcdv::Entry response = catalogServiceClient.CreateEntry(parent, entry, entryId);
CreateEntryAsync(CreateEntryRequest, CallSettings)
public virtual Task<Entry> CreateEntryAsync(CreateEntryRequest request, CallSettings callSettings = null)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntryRequest request = new gcdv::CreateEntryRequest
{
ParentAsEntryGroupName = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"),
EntryId = "",
Entry = new gcdv::Entry(),
};
// Make the request
gcdv::Entry response = await catalogServiceClient.CreateEntryAsync(request);
CreateEntryAsync(CreateEntryRequest, CancellationToken)
public virtual Task<Entry> CreateEntryAsync(CreateEntryRequest request, CancellationToken cancellationToken)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntryRequest request = new gcdv::CreateEntryRequest
{
ParentAsEntryGroupName = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"),
EntryId = "",
Entry = new gcdv::Entry(),
};
// Make the request
gcdv::Entry response = await catalogServiceClient.CreateEntryAsync(request);
CreateEntryAsync(EntryGroupName, Entry, string, CallSettings)
public virtual Task<Entry> CreateEntryAsync(EntryGroupName parent, Entry entry, string entryId, CallSettings callSettings = null)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
parent |
EntryGroupName Required. The resource name of the parent Entry Group:
|
entry |
Entry Required. Entry resource. |
entryId |
string Required. Entry identifier. It has to be unique within an Entry Group. Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name. For example, if the full resource name of a resource is
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud. The maximum size of the field is 4000 characters. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryGroupName parent = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
gcdv::Entry entry = new gcdv::Entry();
string entryId = "";
// Make the request
gcdv::Entry response = await catalogServiceClient.CreateEntryAsync(parent, entry, entryId);
CreateEntryAsync(EntryGroupName, Entry, string, CancellationToken)
public virtual Task<Entry> CreateEntryAsync(EntryGroupName parent, Entry entry, string entryId, CancellationToken cancellationToken)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
parent |
EntryGroupName Required. The resource name of the parent Entry Group:
|
entry |
Entry Required. Entry resource. |
entryId |
string Required. Entry identifier. It has to be unique within an Entry Group. Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name. For example, if the full resource name of a resource is
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud. The maximum size of the field is 4000 characters. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryGroupName parent = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
gcdv::Entry entry = new gcdv::Entry();
string entryId = "";
// Make the request
gcdv::Entry response = await catalogServiceClient.CreateEntryAsync(parent, entry, entryId);
CreateEntryAsync(string, Entry, string, CallSettings)
public virtual Task<Entry> CreateEntryAsync(string parent, Entry entry, string entryId, CallSettings callSettings = null)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the parent Entry Group:
|
entry |
Entry Required. Entry resource. |
entryId |
string Required. Entry identifier. It has to be unique within an Entry Group. Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name. For example, if the full resource name of a resource is
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud. The maximum size of the field is 4000 characters. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
gcdv::Entry entry = new gcdv::Entry();
string entryId = "";
// Make the request
gcdv::Entry response = await catalogServiceClient.CreateEntryAsync(parent, entry, entryId);
CreateEntryAsync(string, Entry, string, CancellationToken)
public virtual Task<Entry> CreateEntryAsync(string parent, Entry entry, string entryId, CancellationToken cancellationToken)
Creates an Entry.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the parent Entry Group:
|
entry |
Entry Required. Entry resource. |
entryId |
string Required. Entry identifier. It has to be unique within an Entry Group. Entries corresponding to Google Cloud resources use an Entry ID format based on full resource names. The format is a full resource name of the resource without the prefix double slashes in the API service name part of the full resource name. This allows retrieval of entries using their associated resource name. For example, if the full resource name of a resource is
It is also suggested to follow the same convention for entries corresponding to resources from providers or systems other than Google Cloud. The maximum size of the field is 4000 characters. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
gcdv::Entry entry = new gcdv::Entry();
string entryId = "";
// Make the request
gcdv::Entry response = await catalogServiceClient.CreateEntryAsync(parent, entry, entryId);
CreateEntryGroup(LocationName, EntryGroup, string, CallSettings)
public virtual Operation<EntryGroup, OperationMetadata> CreateEntryGroup(LocationName parent, EntryGroup entryGroup, string entryGroupId, CallSettings callSettings = null)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where |
entryGroup |
EntryGroup Required. EntryGroup Resource. |
entryGroupId |
string Required. EntryGroup identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEntryGroupOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::EntryGroup entryGroup = new gcdv::EntryGroup();
string entryGroupId = "";
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = catalogServiceClient.CreateEntryGroup(parent, entryGroup, entryGroupId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateEntryGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroup(CreateEntryGroupRequest, CallSettings)
public virtual Operation<EntryGroup, OperationMetadata> CreateEntryGroup(CreateEntryGroupRequest request, CallSettings callSettings = null)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEntryGroupOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateEntryGroupRequest request = new gcdv::CreateEntryGroupRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
EntryGroupId = "",
EntryGroup = new gcdv::EntryGroup(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = catalogServiceClient.CreateEntryGroup(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateEntryGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroup(string, EntryGroup, string, CallSettings)
public virtual Operation<EntryGroup, OperationMetadata> CreateEntryGroup(string parent, EntryGroup entryGroup, string entryGroupId, CallSettings callSettings = null)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where |
entryGroup |
EntryGroup Required. EntryGroup Resource. |
entryGroupId |
string Required. EntryGroup identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEntryGroupOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::EntryGroup entryGroup = new gcdv::EntryGroup();
string entryGroupId = "";
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = catalogServiceClient.CreateEntryGroup(parent, entryGroup, entryGroupId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateEntryGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroupAsync(LocationName, EntryGroup, string, CallSettings)
public virtual Task<Operation<EntryGroup, OperationMetadata>> CreateEntryGroupAsync(LocationName parent, EntryGroup entryGroup, string entryGroupId, CallSettings callSettings = null)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where |
entryGroup |
EntryGroup Required. EntryGroup Resource. |
entryGroupId |
string Required. EntryGroup identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::EntryGroup entryGroup = new gcdv::EntryGroup();
string entryGroupId = "";
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryGroupAsync(parent, entryGroup, entryGroupId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroupAsync(LocationName, EntryGroup, string, CancellationToken)
public virtual Task<Operation<EntryGroup, OperationMetadata>> CreateEntryGroupAsync(LocationName parent, EntryGroup entryGroup, string entryGroupId, CancellationToken cancellationToken)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where |
entryGroup |
EntryGroup Required. EntryGroup Resource. |
entryGroupId |
string Required. EntryGroup identifier. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::EntryGroup entryGroup = new gcdv::EntryGroup();
string entryGroupId = "";
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryGroupAsync(parent, entryGroup, entryGroupId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroupAsync(CreateEntryGroupRequest, CallSettings)
public virtual Task<Operation<EntryGroup, OperationMetadata>> CreateEntryGroupAsync(CreateEntryGroupRequest request, CallSettings callSettings = null)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntryGroupRequest request = new gcdv::CreateEntryGroupRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
EntryGroupId = "",
EntryGroup = new gcdv::EntryGroup(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroupAsync(CreateEntryGroupRequest, CancellationToken)
public virtual Task<Operation<EntryGroup, OperationMetadata>> CreateEntryGroupAsync(CreateEntryGroupRequest request, CancellationToken cancellationToken)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntryGroupRequest request = new gcdv::CreateEntryGroupRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
EntryGroupId = "",
EntryGroup = new gcdv::EntryGroup(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryGroupAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroupAsync(string, EntryGroup, string, CallSettings)
public virtual Task<Operation<EntryGroup, OperationMetadata>> CreateEntryGroupAsync(string parent, EntryGroup entryGroup, string entryGroupId, CallSettings callSettings = null)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where |
entryGroup |
EntryGroup Required. EntryGroup Resource. |
entryGroupId |
string Required. EntryGroup identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::EntryGroup entryGroup = new gcdv::EntryGroup();
string entryGroupId = "";
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryGroupAsync(parent, entryGroup, entryGroupId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryGroupAsync(string, EntryGroup, string, CancellationToken)
public virtual Task<Operation<EntryGroup, OperationMetadata>> CreateEntryGroupAsync(string parent, EntryGroup entryGroup, string entryGroupId, CancellationToken cancellationToken)
Creates an EntryGroup.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the entryGroup, of the form:
projects/{project_number}/locations/{location_id}
where |
entryGroup |
EntryGroup Required. EntryGroup Resource. |
entryGroupId |
string Required. EntryGroup identifier. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryGroupOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::EntryGroup entryGroup = new gcdv::EntryGroup();
string entryGroupId = "";
// Make the request
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryGroupAsync(parent, entryGroup, entryGroupId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryGroup, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryGroup 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::EntryGroup, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryGroup retrievedResult = retrievedResponse.Result;
}
CreateEntryType(LocationName, EntryType, string, CallSettings)
public virtual Operation<EntryType, OperationMetadata> CreateEntryType(LocationName parent, EntryType entryType, string entryTypeId, CallSettings callSettings = null)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the EntryType, of the form:
projects/{project_number}/locations/{location_id}
where |
entryType |
EntryType Required. EntryType Resource. |
entryTypeId |
string Required. EntryType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEntryTypeOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::EntryType entryType = new gcdv::EntryType();
string entryTypeId = "";
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = catalogServiceClient.CreateEntryType(parent, entryType, entryTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateEntryType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryType(CreateEntryTypeRequest, CallSettings)
public virtual Operation<EntryType, OperationMetadata> CreateEntryType(CreateEntryTypeRequest request, CallSettings callSettings = null)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEntryTypeOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateEntryTypeRequest request = new gcdv::CreateEntryTypeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
EntryTypeId = "",
EntryType = new gcdv::EntryType(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = catalogServiceClient.CreateEntryType(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateEntryType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryType(string, EntryType, string, CallSettings)
public virtual Operation<EntryType, OperationMetadata> CreateEntryType(string parent, EntryType entryType, string entryTypeId, CallSettings callSettings = null)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the EntryType, of the form:
projects/{project_number}/locations/{location_id}
where |
entryType |
EntryType Required. EntryType Resource. |
entryTypeId |
string Required. EntryType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEntryTypeOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::EntryType entryType = new gcdv::EntryType();
string entryTypeId = "";
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = catalogServiceClient.CreateEntryType(parent, entryType, entryTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateEntryType(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryTypeAsync(LocationName, EntryType, string, CallSettings)
public virtual Task<Operation<EntryType, OperationMetadata>> CreateEntryTypeAsync(LocationName parent, EntryType entryType, string entryTypeId, CallSettings callSettings = null)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the EntryType, of the form:
projects/{project_number}/locations/{location_id}
where |
entryType |
EntryType Required. EntryType Resource. |
entryTypeId |
string Required. EntryType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::EntryType entryType = new gcdv::EntryType();
string entryTypeId = "";
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryTypeAsync(parent, entryType, entryTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryTypeAsync(LocationName, EntryType, string, CancellationToken)
public virtual Task<Operation<EntryType, OperationMetadata>> CreateEntryTypeAsync(LocationName parent, EntryType entryType, string entryTypeId, CancellationToken cancellationToken)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the EntryType, of the form:
projects/{project_number}/locations/{location_id}
where |
entryType |
EntryType Required. EntryType Resource. |
entryTypeId |
string Required. EntryType identifier. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::EntryType entryType = new gcdv::EntryType();
string entryTypeId = "";
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryTypeAsync(parent, entryType, entryTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryTypeAsync(CreateEntryTypeRequest, CallSettings)
public virtual Task<Operation<EntryType, OperationMetadata>> CreateEntryTypeAsync(CreateEntryTypeRequest request, CallSettings callSettings = null)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntryTypeRequest request = new gcdv::CreateEntryTypeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
EntryTypeId = "",
EntryType = new gcdv::EntryType(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryTypeAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryTypeAsync(CreateEntryTypeRequest, CancellationToken)
public virtual Task<Operation<EntryType, OperationMetadata>> CreateEntryTypeAsync(CreateEntryTypeRequest request, CancellationToken cancellationToken)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
request |
CreateEntryTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateEntryTypeRequest request = new gcdv::CreateEntryTypeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
EntryTypeId = "",
EntryType = new gcdv::EntryType(),
ValidateOnly = false,
};
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryTypeAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryTypeAsync(string, EntryType, string, CallSettings)
public virtual Task<Operation<EntryType, OperationMetadata>> CreateEntryTypeAsync(string parent, EntryType entryType, string entryTypeId, CallSettings callSettings = null)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the EntryType, of the form:
projects/{project_number}/locations/{location_id}
where |
entryType |
EntryType Required. EntryType Resource. |
entryTypeId |
string Required. EntryType identifier. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::EntryType entryType = new gcdv::EntryType();
string entryTypeId = "";
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryTypeAsync(parent, entryType, entryTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateEntryTypeAsync(string, EntryType, string, CancellationToken)
public virtual Task<Operation<EntryType, OperationMetadata>> CreateEntryTypeAsync(string parent, EntryType entryType, string entryTypeId, CancellationToken cancellationToken)
Creates an EntryType.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the EntryType, of the form:
projects/{project_number}/locations/{location_id}
where |
entryType |
EntryType Required. EntryType Resource. |
entryTypeId |
string Required. EntryType identifier. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEntryTypeOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::EntryType entryType = new gcdv::EntryType();
string entryTypeId = "";
// Make the request
Operation<gcdv::EntryType, gcdv::OperationMetadata> response = await catalogServiceClient.CreateEntryTypeAsync(parent, entryType, entryTypeId);
// Poll until the returned long-running operation is complete
Operation<gcdv::EntryType, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::EntryType 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::EntryType, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateEntryTypeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::EntryType retrievedResult = retrievedResponse.Result;
}
CreateMetadataJob(LocationName, MetadataJob, string, CallSettings)
public virtual Operation<MetadataJob, OperationMetadata> CreateMetadataJob(LocationName parent, MetadataJob metadataJob, string metadataJobId, CallSettings callSettings = null)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the parent location, in the format
|
metadataJob |
MetadataJob Required. The metadata job resource. |
metadataJobId |
string Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMetadataJobOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::MetadataJob metadataJob = new gcdv::MetadataJob();
string metadataJobId = "";
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = catalogServiceClient.CreateMetadataJob(parent, metadataJob, metadataJobId);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateMetadataJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJob(CreateMetadataJobRequest, CallSettings)
public virtual Operation<MetadataJob, OperationMetadata> CreateMetadataJob(CreateMetadataJobRequest request, CallSettings callSettings = null)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
request |
CreateMetadataJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMetadataJobOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::CreateMetadataJobRequest request = new gcdv::CreateMetadataJobRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MetadataJob = new gcdv::MetadataJob(),
MetadataJobId = "",
ValidateOnly = false,
};
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = catalogServiceClient.CreateMetadataJob(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateMetadataJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJob(string, MetadataJob, string, CallSettings)
public virtual Operation<MetadataJob, OperationMetadata> CreateMetadataJob(string parent, MetadataJob metadataJob, string metadataJobId, CallSettings callSettings = null)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the parent location, in the format
|
metadataJob |
MetadataJob Required. The metadata job resource. |
metadataJobId |
string Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationMetadataJobOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::MetadataJob metadataJob = new gcdv::MetadataJob();
string metadataJobId = "";
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = catalogServiceClient.CreateMetadataJob(parent, metadataJob, metadataJobId);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = catalogServiceClient.PollOnceCreateMetadataJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJobAsync(LocationName, MetadataJob, string, CallSettings)
public virtual Task<Operation<MetadataJob, OperationMetadata>> CreateMetadataJobAsync(LocationName parent, MetadataJob metadataJob, string metadataJobId, CallSettings callSettings = null)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the parent location, in the format
|
metadataJob |
MetadataJob Required. The metadata job resource. |
metadataJobId |
string Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMetadataJobOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::MetadataJob metadataJob = new gcdv::MetadataJob();
string metadataJobId = "";
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = await catalogServiceClient.CreateMetadataJobAsync(parent, metadataJob, metadataJobId);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateMetadataJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJobAsync(LocationName, MetadataJob, string, CancellationToken)
public virtual Task<Operation<MetadataJob, OperationMetadata>> CreateMetadataJobAsync(LocationName parent, MetadataJob metadataJob, string metadataJobId, CancellationToken cancellationToken)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the parent location, in the format
|
metadataJob |
MetadataJob Required. The metadata job resource. |
metadataJobId |
string Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMetadataJobOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcdv::MetadataJob metadataJob = new gcdv::MetadataJob();
string metadataJobId = "";
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = await catalogServiceClient.CreateMetadataJobAsync(parent, metadataJob, metadataJobId);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateMetadataJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJobAsync(CreateMetadataJobRequest, CallSettings)
public virtual Task<Operation<MetadataJob, OperationMetadata>> CreateMetadataJobAsync(CreateMetadataJobRequest request, CallSettings callSettings = null)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
request |
CreateMetadataJobRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMetadataJobOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateMetadataJobRequest request = new gcdv::CreateMetadataJobRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MetadataJob = new gcdv::MetadataJob(),
MetadataJobId = "",
ValidateOnly = false,
};
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = await catalogServiceClient.CreateMetadataJobAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateMetadataJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJobAsync(CreateMetadataJobRequest, CancellationToken)
public virtual Task<Operation<MetadataJob, OperationMetadata>> CreateMetadataJobAsync(CreateMetadataJobRequest request, CancellationToken cancellationToken)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
request |
CreateMetadataJobRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMetadataJobOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::CreateMetadataJobRequest request = new gcdv::CreateMetadataJobRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MetadataJob = new gcdv::MetadataJob(),
MetadataJobId = "",
ValidateOnly = false,
};
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = await catalogServiceClient.CreateMetadataJobAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateMetadataJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJobAsync(string, MetadataJob, string, CallSettings)
public virtual Task<Operation<MetadataJob, OperationMetadata>> CreateMetadataJobAsync(string parent, MetadataJob metadataJob, string metadataJobId, CallSettings callSettings = null)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the parent location, in the format
|
metadataJob |
MetadataJob Required. The metadata job resource. |
metadataJobId |
string Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationMetadataJobOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::MetadataJob metadataJob = new gcdv::MetadataJob();
string metadataJobId = "";
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = await catalogServiceClient.CreateMetadataJobAsync(parent, metadataJob, metadataJobId);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateMetadataJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
CreateMetadataJobAsync(string, MetadataJob, string, CancellationToken)
public virtual Task<Operation<MetadataJob, OperationMetadata>> CreateMetadataJobAsync(string parent, MetadataJob metadataJob, string metadataJobId, CancellationToken cancellationToken)
Creates a metadata job. For example, use a metadata job to import Dataplex Catalog entries and aspects from a third-party system into Dataplex.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the parent location, in the format
|
metadataJob |
MetadataJob Required. The metadata job resource. |
metadataJobId |
string Optional. The metadata job ID. If not provided, a unique ID is generated
with the prefix |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationMetadataJobOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcdv::MetadataJob metadataJob = new gcdv::MetadataJob();
string metadataJobId = "";
// Make the request
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> response = await catalogServiceClient.CreateMetadataJobAsync(parent, metadataJob, metadataJobId);
// Poll until the returned long-running operation is complete
Operation<gcdv::MetadataJob, gcdv::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcdv::MetadataJob 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::MetadataJob, gcdv::OperationMetadata> retrievedResponse = await catalogServiceClient.PollOnceCreateMetadataJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcdv::MetadataJob retrievedResult = retrievedResponse.Result;
}
DeleteAspectType(AspectTypeName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAspectType(AspectTypeName name, CallSettings callSettings = null)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
name |
AspectTypeName Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::AspectTypeName name = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteAspectType(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 = catalogServiceClient.PollOnceDeleteAspectType(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;
}
DeleteAspectType(DeleteAspectTypeRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAspectType(DeleteAspectTypeRequest request, CallSettings callSettings = null)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
request |
DeleteAspectTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteAspectTypeRequest request = new gcdv::DeleteAspectTypeRequest
{
AspectTypeName = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteAspectType(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 = catalogServiceClient.PollOnceDeleteAspectType(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;
}
DeleteAspectType(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAspectType(string name, CallSettings callSettings = null)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/aspectTypes/[ASPECT_TYPE]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteAspectType(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 = catalogServiceClient.PollOnceDeleteAspectType(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;
}
DeleteAspectTypeAsync(AspectTypeName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAspectTypeAsync(AspectTypeName name, CallSettings callSettings = null)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
name |
AspectTypeName Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::AspectTypeName name = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteAspectTypeAsync(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 catalogServiceClient.PollOnceDeleteAspectTypeAsync(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;
}
DeleteAspectTypeAsync(AspectTypeName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAspectTypeAsync(AspectTypeName name, CancellationToken cancellationToken)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
name |
AspectTypeName Required. The resource name of the AspectType:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::AspectTypeName name = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteAspectTypeAsync(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 catalogServiceClient.PollOnceDeleteAspectTypeAsync(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;
}
DeleteAspectTypeAsync(DeleteAspectTypeRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAspectTypeAsync(DeleteAspectTypeRequest request, CallSettings callSettings = null)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
request |
DeleteAspectTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteAspectTypeRequest request = new gcdv::DeleteAspectTypeRequest
{
AspectTypeName = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteAspectTypeAsync(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 catalogServiceClient.PollOnceDeleteAspectTypeAsync(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;
}
DeleteAspectTypeAsync(DeleteAspectTypeRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAspectTypeAsync(DeleteAspectTypeRequest request, CancellationToken cancellationToken)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
request |
DeleteAspectTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteAspectTypeRequest request = new gcdv::DeleteAspectTypeRequest
{
AspectTypeName = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteAspectTypeAsync(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 catalogServiceClient.PollOnceDeleteAspectTypeAsync(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;
}
DeleteAspectTypeAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAspectTypeAsync(string name, CallSettings callSettings = null)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/aspectTypes/[ASPECT_TYPE]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteAspectTypeAsync(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 catalogServiceClient.PollOnceDeleteAspectTypeAsync(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;
}
DeleteAspectTypeAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAspectTypeAsync(string name, CancellationToken cancellationToken)
Deletes an AspectType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the AspectType:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/aspectTypes/[ASPECT_TYPE]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteAspectTypeAsync(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 catalogServiceClient.PollOnceDeleteAspectTypeAsync(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;
}
DeleteEntry(DeleteEntryRequest, CallSettings)
public virtual Entry DeleteEntry(DeleteEntryRequest request, CallSettings callSettings = null)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entry |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteEntryRequest request = new gcdv::DeleteEntryRequest
{
EntryName = gcdv::EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"),
};
// Make the request
gcdv::Entry response = catalogServiceClient.DeleteEntry(request);
DeleteEntry(EntryName, CallSettings)
public virtual Entry DeleteEntry(EntryName name, CallSettings callSettings = null)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
name |
EntryName Required. The resource name of the Entry:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entry |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::EntryName name = gcdv::EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
// Make the request
gcdv::Entry response = catalogServiceClient.DeleteEntry(name);
DeleteEntry(string, CallSettings)
public virtual Entry DeleteEntry(string name, CallSettings callSettings = null)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the Entry:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Entry |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]/entries/[ENTRY]";
// Make the request
gcdv::Entry response = catalogServiceClient.DeleteEntry(name);
DeleteEntryAsync(DeleteEntryRequest, CallSettings)
public virtual Task<Entry> DeleteEntryAsync(DeleteEntryRequest request, CallSettings callSettings = null)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntryRequest request = new gcdv::DeleteEntryRequest
{
EntryName = gcdv::EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"),
};
// Make the request
gcdv::Entry response = await catalogServiceClient.DeleteEntryAsync(request);
DeleteEntryAsync(DeleteEntryRequest, CancellationToken)
public virtual Task<Entry> DeleteEntryAsync(DeleteEntryRequest request, CancellationToken cancellationToken)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntryRequest request = new gcdv::DeleteEntryRequest
{
EntryName = gcdv::EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"),
};
// Make the request
gcdv::Entry response = await catalogServiceClient.DeleteEntryAsync(request);
DeleteEntryAsync(EntryName, CallSettings)
public virtual Task<Entry> DeleteEntryAsync(EntryName name, CallSettings callSettings = null)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
name |
EntryName Required. The resource name of the Entry:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryName name = gcdv::EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
// Make the request
gcdv::Entry response = await catalogServiceClient.DeleteEntryAsync(name);
DeleteEntryAsync(EntryName, CancellationToken)
public virtual Task<Entry> DeleteEntryAsync(EntryName name, CancellationToken cancellationToken)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
name |
EntryName Required. The resource name of the Entry:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryName name = gcdv::EntryName.FromProjectLocationEntryGroupEntry("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
// Make the request
gcdv::Entry response = await catalogServiceClient.DeleteEntryAsync(name);
DeleteEntryAsync(string, CallSettings)
public virtual Task<Entry> DeleteEntryAsync(string name, CallSettings callSettings = null)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the Entry:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]/entries/[ENTRY]";
// Make the request
gcdv::Entry response = await catalogServiceClient.DeleteEntryAsync(name);
DeleteEntryAsync(string, CancellationToken)
public virtual Task<Entry> DeleteEntryAsync(string name, CancellationToken cancellationToken)
Deletes an Entry.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the Entry:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskEntry |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]/entries/[ENTRY]";
// Make the request
gcdv::Entry response = await catalogServiceClient.DeleteEntryAsync(name);
DeleteEntryGroup(DeleteEntryGroupRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEntryGroup(DeleteEntryGroupRequest request, CallSettings callSettings = null)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteEntryGroupRequest request = new gcdv::DeleteEntryGroupRequest
{
EntryGroupName = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteEntryGroup(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 = catalogServiceClient.PollOnceDeleteEntryGroup(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;
}
DeleteEntryGroup(EntryGroupName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEntryGroup(EntryGroupName name, CallSettings callSettings = null)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
name |
EntryGroupName Required. The resource name of the EntryGroup:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::EntryGroupName name = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteEntryGroup(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 = catalogServiceClient.PollOnceDeleteEntryGroup(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;
}
DeleteEntryGroup(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEntryGroup(string name, CallSettings callSettings = null)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the EntryGroup:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteEntryGroup(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 = catalogServiceClient.PollOnceDeleteEntryGroup(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;
}
DeleteEntryGroupAsync(DeleteEntryGroupRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryGroupAsync(DeleteEntryGroupRequest request, CallSettings callSettings = null)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryGroupRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntryGroupRequest request = new gcdv::DeleteEntryGroupRequest
{
EntryGroupName = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryGroupAsync(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 catalogServiceClient.PollOnceDeleteEntryGroupAsync(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;
}
DeleteEntryGroupAsync(DeleteEntryGroupRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryGroupAsync(DeleteEntryGroupRequest request, CancellationToken cancellationToken)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryGroupRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntryGroupRequest request = new gcdv::DeleteEntryGroupRequest
{
EntryGroupName = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryGroupAsync(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 catalogServiceClient.PollOnceDeleteEntryGroupAsync(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;
}
DeleteEntryGroupAsync(EntryGroupName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryGroupAsync(EntryGroupName name, CallSettings callSettings = null)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
name |
EntryGroupName Required. The resource name of the EntryGroup:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryGroupName name = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryGroupAsync(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 catalogServiceClient.PollOnceDeleteEntryGroupAsync(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;
}
DeleteEntryGroupAsync(EntryGroupName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryGroupAsync(EntryGroupName name, CancellationToken cancellationToken)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
name |
EntryGroupName Required. The resource name of the EntryGroup:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryGroupName name = gcdv::EntryGroupName.FromProjectLocationEntryGroup("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryGroupAsync(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 catalogServiceClient.PollOnceDeleteEntryGroupAsync(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;
}
DeleteEntryGroupAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryGroupAsync(string name, CallSettings callSettings = null)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the EntryGroup:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryGroupAsync(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 catalogServiceClient.PollOnceDeleteEntryGroupAsync(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;
}
DeleteEntryGroupAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryGroupAsync(string name, CancellationToken cancellationToken)
Deletes an EntryGroup.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the EntryGroup:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryGroups/[ENTRY_GROUP]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryGroupAsync(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 catalogServiceClient.PollOnceDeleteEntryGroupAsync(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;
}
DeleteEntryType(DeleteEntryTypeRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEntryType(DeleteEntryTypeRequest request, CallSettings callSettings = null)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::DeleteEntryTypeRequest request = new gcdv::DeleteEntryTypeRequest
{
EntryTypeName = gcdv::EntryTypeName.FromProjectLocationEntryType("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteEntryType(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 = catalogServiceClient.PollOnceDeleteEntryType(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;
}
DeleteEntryType(EntryTypeName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEntryType(EntryTypeName name, CallSettings callSettings = null)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
name |
EntryTypeName Required. The resource name of the EntryType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::EntryTypeName name = gcdv::EntryTypeName.FromProjectLocationEntryType("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteEntryType(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 = catalogServiceClient.PollOnceDeleteEntryType(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;
}
DeleteEntryType(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteEntryType(string name, CallSettings callSettings = null)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the EntryType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryTypes/[ENTRY_TYPE]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = catalogServiceClient.DeleteEntryType(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 = catalogServiceClient.PollOnceDeleteEntryType(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;
}
DeleteEntryTypeAsync(DeleteEntryTypeRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryTypeAsync(DeleteEntryTypeRequest request, CallSettings callSettings = null)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntryTypeRequest request = new gcdv::DeleteEntryTypeRequest
{
EntryTypeName = gcdv::EntryTypeName.FromProjectLocationEntryType("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryTypeAsync(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 catalogServiceClient.PollOnceDeleteEntryTypeAsync(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;
}
DeleteEntryTypeAsync(DeleteEntryTypeRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryTypeAsync(DeleteEntryTypeRequest request, CancellationToken cancellationToken)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
request |
DeleteEntryTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::DeleteEntryTypeRequest request = new gcdv::DeleteEntryTypeRequest
{
EntryTypeName = gcdv::EntryTypeName.FromProjectLocationEntryType("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]"),
Etag = "",
};
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryTypeAsync(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 catalogServiceClient.PollOnceDeleteEntryTypeAsync(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;
}
DeleteEntryTypeAsync(EntryTypeName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryTypeAsync(EntryTypeName name, CallSettings callSettings = null)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
name |
EntryTypeName Required. The resource name of the EntryType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryTypeName name = gcdv::EntryTypeName.FromProjectLocationEntryType("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryTypeAsync(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 catalogServiceClient.PollOnceDeleteEntryTypeAsync(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;
}
DeleteEntryTypeAsync(EntryTypeName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryTypeAsync(EntryTypeName name, CancellationToken cancellationToken)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
name |
EntryTypeName Required. The resource name of the EntryType:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::EntryTypeName name = gcdv::EntryTypeName.FromProjectLocationEntryType("[PROJECT]", "[LOCATION]", "[ENTRY_TYPE]");
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryTypeAsync(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 catalogServiceClient.PollOnceDeleteEntryTypeAsync(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;
}
DeleteEntryTypeAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryTypeAsync(string name, CallSettings callSettings = null)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the EntryType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryTypes/[ENTRY_TYPE]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryTypeAsync(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 catalogServiceClient.PollOnceDeleteEntryTypeAsync(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;
}
DeleteEntryTypeAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteEntryTypeAsync(string name, CancellationToken cancellationToken)
Deletes an EntryType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the EntryType:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/entryTypes/[ENTRY_TYPE]";
// Make the request
Operation<Empty, gcdv::OperationMetadata> response = await catalogServiceClient.DeleteEntryTypeAsync(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 catalogServiceClient.PollOnceDeleteEntryTypeAsync(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;
}
GetAspectType(AspectTypeName, CallSettings)
public virtual AspectType GetAspectType(AspectTypeName name, CallSettings callSettings = null)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
name |
AspectTypeName Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AspectType |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::AspectTypeName name = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]");
// Make the request
gcdv::AspectType response = catalogServiceClient.GetAspectType(name);
GetAspectType(GetAspectTypeRequest, CallSettings)
public virtual AspectType GetAspectType(GetAspectTypeRequest request, CallSettings callSettings = null)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
request |
GetAspectTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AspectType |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
gcdv::GetAspectTypeRequest request = new gcdv::GetAspectTypeRequest
{
AspectTypeName = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]"),
};
// Make the request
gcdv::AspectType response = catalogServiceClient.GetAspectType(request);
GetAspectType(string, CallSettings)
public virtual AspectType GetAspectType(string name, CallSettings callSettings = null)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
AspectType |
The RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = gcdv::CatalogServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/aspectTypes/[ASPECT_TYPE]";
// Make the request
gcdv::AspectType response = catalogServiceClient.GetAspectType(name);
GetAspectTypeAsync(AspectTypeName, CallSettings)
public virtual Task<AspectType> GetAspectTypeAsync(AspectTypeName name, CallSettings callSettings = null)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
name |
AspectTypeName Required. The resource name of the AspectType:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAspectType |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::AspectTypeName name = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]");
// Make the request
gcdv::AspectType response = await catalogServiceClient.GetAspectTypeAsync(name);
GetAspectTypeAsync(AspectTypeName, CancellationToken)
public virtual Task<AspectType> GetAspectTypeAsync(AspectTypeName name, CancellationToken cancellationToken)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
name |
AspectTypeName Required. The resource name of the AspectType:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAspectType |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::AspectTypeName name = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]");
// Make the request
gcdv::AspectType response = await catalogServiceClient.GetAspectTypeAsync(name);
GetAspectTypeAsync(GetAspectTypeRequest, CallSettings)
public virtual Task<AspectType> GetAspectTypeAsync(GetAspectTypeRequest request, CallSettings callSettings = null)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
request |
GetAspectTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAspectType |
A Task containing the RPC response. |
// Create client
gcdv::CatalogServiceClient catalogServiceClient = await gcdv::CatalogServiceClient.CreateAsync();
// Initialize request argument(s)
gcdv::GetAspectTypeRequest request = new gcdv::GetAspectTypeRequest
{
AspectTypeName = gcdv::AspectTypeName.FromProjectLocationAspectType("[PROJECT]", "[LOCATION]", "[ASPECT_TYPE]"),
};
// Make the request
gcdv::AspectType response = await catalogServiceClient.GetAspectTypeAsync(request);
GetAspectTypeAsync(GetAspectTypeRequest, CancellationToken)
public virtual Task<AspectType> GetAspectTypeAsync(GetAspectTypeRequest request, CancellationToken cancellationToken)
Gets an AspectType.
Parameters | |
---|---|
Name | Description |
request |
GetAspectTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAspectType |
A Task containing the RPC response. |