public abstract class ObservabilityClientReference documentation and code samples for the Observability v1 API class ObservabilityClient.
Observability client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Observability.V1Assembly
Google.Cloud.Observability.V1.dll
Remarks
Service describing handlers for resources
Properties
CreateBucketOperationsClient
public virtual OperationsClient CreateBucketOperationsClient { get; }The long-running operations client for CreateBucket.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateLinkOperationsClient
public virtual OperationsClient CreateLinkOperationsClient { get; }The long-running operations client for CreateLink.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the Observability service, which is a host of "observability.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default Observability scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default Observability scopes are:
DeleteLinkOperationsClient
public virtual OperationsClient DeleteLinkOperationsClient { get; }The long-running operations client for DeleteLink.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual Observability.ObservabilityClient GrpcClient { get; }The underlying gRPC Observability client
| Property Value | |
|---|---|
| Type | Description |
ObservabilityObservabilityClient |
|
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 |
|
UpdateBucketOperationsClient
public virtual OperationsClient UpdateBucketOperationsClient { get; }The long-running operations client for UpdateBucket.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateLinkOperationsClient
public virtual OperationsClient UpdateLinkOperationsClient { get; }The long-running operations client for UpdateLink.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateSettingsOperationsClient
public virtual OperationsClient UpdateSettingsOperationsClient { get; }The long-running operations client for UpdateSettings.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
Create()
public static ObservabilityClient Create()Synchronously creates a ObservabilityClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ObservabilityClientBuilder.
| Returns | |
|---|---|
| Type | Description |
ObservabilityClient |
The created ObservabilityClient. |
CreateAsync(CancellationToken)
public static Task<ObservabilityClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a ObservabilityClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ObservabilityClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskObservabilityClient |
The task representing the created ObservabilityClient. |
CreateBucket(LocationName, Bucket, string, CallSettings)
public virtual Operation<Bucket, OperationMetadata> CreateBucket(LocationName parent, Bucket bucket, string bucketId, CallSettings callSettings = null)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. Name of the project and location for the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
bucket |
BucketRequired. Bucket to create. |
bucketId |
stringRequired. Id of the bucket to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Bucket bucket = new Bucket();
string bucketId = "";
// Make the request
Operation<Bucket, OperationMetadata> response = observabilityClient.CreateBucket(parent, bucket, bucketId);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = observabilityClient.PollOnceCreateBucket(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucket(CreateBucketRequest, CallSettings)
public virtual Operation<Bucket, OperationMetadata> CreateBucket(CreateBucketRequest request, CallSettings callSettings = null)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
CreateBucketRequest request = new CreateBucketRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BucketId = "",
Bucket = new Bucket(),
};
// Make the request
Operation<Bucket, OperationMetadata> response = observabilityClient.CreateBucket(request);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = observabilityClient.PollOnceCreateBucket(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucket(string, Bucket, string, CallSettings)
public virtual Operation<Bucket, OperationMetadata> CreateBucket(string parent, Bucket bucket, string bucketId, CallSettings callSettings = null)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Name of the project and location for the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
bucket |
BucketRequired. Bucket to create. |
bucketId |
stringRequired. Id of the bucket to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Bucket bucket = new Bucket();
string bucketId = "";
// Make the request
Operation<Bucket, OperationMetadata> response = observabilityClient.CreateBucket(parent, bucket, bucketId);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = observabilityClient.PollOnceCreateBucket(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucketAsync(LocationName, Bucket, string, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> CreateBucketAsync(LocationName parent, Bucket bucket, string bucketId, CallSettings callSettings = null)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. Name of the project and location for the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
bucket |
BucketRequired. Bucket to create. |
bucketId |
stringRequired. Id of the bucket to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Bucket bucket = new Bucket();
string bucketId = "";
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.CreateBucketAsync(parent, bucket, bucketId);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucketAsync(LocationName, Bucket, string, CancellationToken)
public virtual Task<Operation<Bucket, OperationMetadata>> CreateBucketAsync(LocationName parent, Bucket bucket, string bucketId, CancellationToken cancellationToken)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. Name of the project and location for the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
bucket |
BucketRequired. Bucket to create. |
bucketId |
stringRequired. Id of the bucket to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Bucket bucket = new Bucket();
string bucketId = "";
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.CreateBucketAsync(parent, bucket, bucketId);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucketAsync(CreateBucketRequest, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> CreateBucketAsync(CreateBucketRequest request, CallSettings callSettings = null)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
CreateBucketRequest request = new CreateBucketRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BucketId = "",
Bucket = new Bucket(),
};
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.CreateBucketAsync(request);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucketAsync(CreateBucketRequest, CancellationToken)
public virtual Task<Operation<Bucket, OperationMetadata>> CreateBucketAsync(CreateBucketRequest request, CancellationToken cancellationToken)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
CreateBucketRequest request = new CreateBucketRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
BucketId = "",
Bucket = new Bucket(),
};
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.CreateBucketAsync(request);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucketAsync(string, Bucket, string, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> CreateBucketAsync(string parent, Bucket bucket, string bucketId, CallSettings callSettings = null)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Name of the project and location for the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
bucket |
BucketRequired. Bucket to create. |
bucketId |
stringRequired. Id of the bucket to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Bucket bucket = new Bucket();
string bucketId = "";
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.CreateBucketAsync(parent, bucket, bucketId);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateBucketAsync(string, Bucket, string, CancellationToken)
public virtual Task<Operation<Bucket, OperationMetadata>> CreateBucketAsync(string parent, Bucket bucket, string bucketId, CancellationToken cancellationToken)Create a new bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Name of the project and location for the bucket. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
bucket |
BucketRequired. Bucket to create. |
bucketId |
stringRequired. Id of the bucket to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Bucket bucket = new Bucket();
string bucketId = "";
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.CreateBucketAsync(parent, bucket, bucketId);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
CreateLink(CreateLinkRequest, CallSettings)
public virtual Operation<Link, OperationMetadata> CreateLink(CreateLinkRequest request, CallSettings callSettings = null)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
CreateLinkRequest request = new CreateLinkRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
LinkId = "",
Link = new Link(),
};
// Make the request
Operation<Link, OperationMetadata> response = observabilityClient.CreateLink(request);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = observabilityClient.PollOnceCreateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLink(DatasetName, Link, string, CallSettings)
public virtual Operation<Link, OperationMetadata> CreateLink(DatasetName parent, Link link, string linkId, CallSettings callSettings = null)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. Name of the containing dataset for this link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
link |
LinkRequired. Link to create. |
linkId |
stringRequired. Id of the link to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, OperationMetadata> response = observabilityClient.CreateLink(parent, link, linkId);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = observabilityClient.PollOnceCreateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLink(string, Link, string, CallSettings)
public virtual Operation<Link, OperationMetadata> CreateLink(string parent, Link link, string linkId, CallSettings callSettings = null)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Name of the containing dataset for this link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
link |
LinkRequired. Link to create. |
linkId |
stringRequired. Id of the link to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, OperationMetadata> response = observabilityClient.CreateLink(parent, link, linkId);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = observabilityClient.PollOnceCreateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLinkAsync(CreateLinkRequest, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> CreateLinkAsync(CreateLinkRequest request, CallSettings callSettings = null)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
CreateLinkRequest request = new CreateLinkRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
LinkId = "",
Link = new Link(),
};
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.CreateLinkAsync(request);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLinkAsync(CreateLinkRequest, CancellationToken)
public virtual Task<Operation<Link, OperationMetadata>> CreateLinkAsync(CreateLinkRequest request, CancellationToken cancellationToken)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateLinkRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
CreateLinkRequest request = new CreateLinkRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
LinkId = "",
Link = new Link(),
};
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.CreateLinkAsync(request);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLinkAsync(DatasetName, Link, string, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> CreateLinkAsync(DatasetName parent, Link link, string linkId, CallSettings callSettings = null)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. Name of the containing dataset for this link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
link |
LinkRequired. Link to create. |
linkId |
stringRequired. Id of the link to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.CreateLinkAsync(parent, link, linkId);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLinkAsync(DatasetName, Link, string, CancellationToken)
public virtual Task<Operation<Link, OperationMetadata>> CreateLinkAsync(DatasetName parent, Link link, string linkId, CancellationToken cancellationToken)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. Name of the containing dataset for this link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
link |
LinkRequired. Link to create. |
linkId |
stringRequired. Id of the link to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.CreateLinkAsync(parent, link, linkId);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLinkAsync(string, Link, string, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> CreateLinkAsync(string parent, Link link, string linkId, CallSettings callSettings = null)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Name of the containing dataset for this link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
link |
LinkRequired. Link to create. |
linkId |
stringRequired. Id of the link to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.CreateLinkAsync(parent, link, linkId);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateLinkAsync(string, Link, string, CancellationToken)
public virtual Task<Operation<Link, OperationMetadata>> CreateLinkAsync(string parent, Link link, string linkId, CancellationToken cancellationToken)Create a new link.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Name of the containing dataset for this link. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
link |
LinkRequired. Link to create. |
linkId |
stringRequired. Id of the link to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
Link link = new Link();
string linkId = "";
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.CreateLinkAsync(parent, link, linkId);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceCreateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
CreateTraceScope(LocationName, TraceScope, string, CallSettings)
public virtual TraceScope CreateTraceScope(LocationName parent, TraceScope traceScope, string traceScopeId, CallSettings callSettings = null)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
traceScope |
TraceScopeRequired. The new trace scope. |
traceScopeId |
stringRequired. A client-assigned identifier for the trace scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TraceScope traceScope = new TraceScope();
string traceScopeId = "";
// Make the request
TraceScope response = observabilityClient.CreateTraceScope(parent, traceScope, traceScopeId);
CreateTraceScope(CreateTraceScopeRequest, CallSettings)
public virtual TraceScope CreateTraceScope(CreateTraceScopeRequest request, CallSettings callSettings = null)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
CreateTraceScopeRequest request = new CreateTraceScopeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
TraceScopeId = "",
TraceScope = new TraceScope(),
};
// Make the request
TraceScope response = observabilityClient.CreateTraceScope(request);
CreateTraceScope(string, TraceScope, string, CallSettings)
public virtual TraceScope CreateTraceScope(string parent, TraceScope traceScope, string traceScopeId, CallSettings callSettings = null)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
traceScope |
TraceScopeRequired. The new trace scope. |
traceScopeId |
stringRequired. A client-assigned identifier for the trace scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TraceScope traceScope = new TraceScope();
string traceScopeId = "";
// Make the request
TraceScope response = observabilityClient.CreateTraceScope(parent, traceScope, traceScopeId);
CreateTraceScopeAsync(LocationName, TraceScope, string, CallSettings)
public virtual Task<TraceScope> CreateTraceScopeAsync(LocationName parent, TraceScope traceScope, string traceScopeId, CallSettings callSettings = null)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
traceScope |
TraceScopeRequired. The new trace scope. |
traceScopeId |
stringRequired. A client-assigned identifier for the trace scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TraceScope traceScope = new TraceScope();
string traceScopeId = "";
// Make the request
TraceScope response = await observabilityClient.CreateTraceScopeAsync(parent, traceScope, traceScopeId);
CreateTraceScopeAsync(LocationName, TraceScope, string, CancellationToken)
public virtual Task<TraceScope> CreateTraceScopeAsync(LocationName parent, TraceScope traceScope, string traceScopeId, CancellationToken cancellationToken)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
traceScope |
TraceScopeRequired. The new trace scope. |
traceScopeId |
stringRequired. A client-assigned identifier for the trace scope. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
TraceScope traceScope = new TraceScope();
string traceScopeId = "";
// Make the request
TraceScope response = await observabilityClient.CreateTraceScopeAsync(parent, traceScope, traceScopeId);
CreateTraceScopeAsync(CreateTraceScopeRequest, CallSettings)
public virtual Task<TraceScope> CreateTraceScopeAsync(CreateTraceScopeRequest request, CallSettings callSettings = null)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
CreateTraceScopeRequest request = new CreateTraceScopeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
TraceScopeId = "",
TraceScope = new TraceScope(),
};
// Make the request
TraceScope response = await observabilityClient.CreateTraceScopeAsync(request);
CreateTraceScopeAsync(CreateTraceScopeRequest, CancellationToken)
public virtual Task<TraceScope> CreateTraceScopeAsync(CreateTraceScopeRequest request, CancellationToken cancellationToken)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateTraceScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
CreateTraceScopeRequest request = new CreateTraceScopeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
TraceScopeId = "",
TraceScope = new TraceScope(),
};
// Make the request
TraceScope response = await observabilityClient.CreateTraceScopeAsync(request);
CreateTraceScopeAsync(string, TraceScope, string, CallSettings)
public virtual Task<TraceScope> CreateTraceScopeAsync(string parent, TraceScope traceScope, string traceScopeId, CallSettings callSettings = null)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
traceScope |
TraceScopeRequired. The new trace scope. |
traceScopeId |
stringRequired. A client-assigned identifier for the trace scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TraceScope traceScope = new TraceScope();
string traceScopeId = "";
// Make the request
TraceScope response = await observabilityClient.CreateTraceScopeAsync(parent, traceScope, traceScopeId);
CreateTraceScopeAsync(string, TraceScope, string, CancellationToken)
public virtual Task<TraceScope> CreateTraceScopeAsync(string parent, TraceScope traceScope, string traceScopeId, CancellationToken cancellationToken)Create a new TraceScope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The full resource name of the location where the trace scope should be created projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
traceScope |
TraceScopeRequired. The new trace scope. |
traceScopeId |
stringRequired. A client-assigned identifier for the trace scope. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
TraceScope traceScope = new TraceScope();
string traceScopeId = "";
// Make the request
TraceScope response = await observabilityClient.CreateTraceScopeAsync(parent, traceScope, traceScopeId);
DeleteLink(DeleteLinkRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteLink(DeleteLinkRequest request, CallSettings callSettings = null)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
DeleteLinkRequest request = new DeleteLinkRequest
{
LinkName = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = observabilityClient.DeleteLink(request);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = observabilityClient.PollOnceDeleteLink(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;
}
DeleteLink(LinkName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteLink(LinkName name, CallSettings callSettings = null)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
LinkNameRequired. Name of the link to delete. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]");
// Make the request
Operation<Empty, OperationMetadata> response = observabilityClient.DeleteLink(name);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = observabilityClient.PollOnceDeleteLink(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;
}
DeleteLink(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteLink(string name, CallSettings callSettings = null)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the link to delete. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/links/[LINK]";
// Make the request
Operation<Empty, OperationMetadata> response = observabilityClient.DeleteLink(name);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = observabilityClient.PollOnceDeleteLink(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;
}
DeleteLinkAsync(DeleteLinkRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteLinkAsync(DeleteLinkRequest request, CallSettings callSettings = null)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DeleteLinkRequest request = new DeleteLinkRequest
{
LinkName = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await observabilityClient.DeleteLinkAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceDeleteLinkAsync(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;
}
DeleteLinkAsync(DeleteLinkRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteLinkAsync(DeleteLinkRequest request, CancellationToken cancellationToken)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteLinkRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DeleteLinkRequest request = new DeleteLinkRequest
{
LinkName = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await observabilityClient.DeleteLinkAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceDeleteLinkAsync(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;
}
DeleteLinkAsync(LinkName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteLinkAsync(LinkName name, CallSettings callSettings = null)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
LinkNameRequired. Name of the link to delete. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]");
// Make the request
Operation<Empty, OperationMetadata> response = await observabilityClient.DeleteLinkAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceDeleteLinkAsync(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;
}
DeleteLinkAsync(LinkName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteLinkAsync(LinkName name, CancellationToken cancellationToken)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
LinkNameRequired. Name of the link to delete. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]");
// Make the request
Operation<Empty, OperationMetadata> response = await observabilityClient.DeleteLinkAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceDeleteLinkAsync(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;
}
DeleteLinkAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteLinkAsync(string name, CallSettings callSettings = null)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the link to delete. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/links/[LINK]";
// Make the request
Operation<Empty, OperationMetadata> response = await observabilityClient.DeleteLinkAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceDeleteLinkAsync(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;
}
DeleteLinkAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteLinkAsync(string name, CancellationToken cancellationToken)Delete a link.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the link to delete. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/links/[LINK]";
// Make the request
Operation<Empty, OperationMetadata> response = await observabilityClient.DeleteLinkAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, 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, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceDeleteLinkAsync(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;
}
DeleteTraceScope(DeleteTraceScopeRequest, CallSettings)
public virtual void DeleteTraceScope(DeleteTraceScopeRequest request, CallSettings callSettings = null)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
DeleteTraceScopeRequest request = new DeleteTraceScopeRequest
{
TraceScopeName = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]"),
};
// Make the request
observabilityClient.DeleteTraceScope(request);
DeleteTraceScope(TraceScopeName, CallSettings)
public virtual void DeleteTraceScope(TraceScopeName name, CallSettings callSettings = null)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
TraceScopeNameRequired. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
TraceScopeName name = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]");
// Make the request
observabilityClient.DeleteTraceScope(name);
DeleteTraceScope(string, CallSettings)
public virtual void DeleteTraceScope(string name, CallSettings callSettings = null)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/traceScopes/[TRACE_SCOPE]";
// Make the request
observabilityClient.DeleteTraceScope(name);
DeleteTraceScopeAsync(DeleteTraceScopeRequest, CallSettings)
public virtual Task DeleteTraceScopeAsync(DeleteTraceScopeRequest request, CallSettings callSettings = null)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DeleteTraceScopeRequest request = new DeleteTraceScopeRequest
{
TraceScopeName = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]"),
};
// Make the request
await observabilityClient.DeleteTraceScopeAsync(request);
DeleteTraceScopeAsync(DeleteTraceScopeRequest, CancellationToken)
public virtual Task DeleteTraceScopeAsync(DeleteTraceScopeRequest request, CancellationToken cancellationToken)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteTraceScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DeleteTraceScopeRequest request = new DeleteTraceScopeRequest
{
TraceScopeName = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]"),
};
// Make the request
await observabilityClient.DeleteTraceScopeAsync(request);
DeleteTraceScopeAsync(TraceScopeName, CallSettings)
public virtual Task DeleteTraceScopeAsync(TraceScopeName name, CallSettings callSettings = null)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
TraceScopeNameRequired. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
TraceScopeName name = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]");
// Make the request
await observabilityClient.DeleteTraceScopeAsync(name);
DeleteTraceScopeAsync(TraceScopeName, CancellationToken)
public virtual Task DeleteTraceScopeAsync(TraceScopeName name, CancellationToken cancellationToken)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
TraceScopeNameRequired. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
TraceScopeName name = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]");
// Make the request
await observabilityClient.DeleteTraceScopeAsync(name);
DeleteTraceScopeAsync(string, CallSettings)
public virtual Task DeleteTraceScopeAsync(string name, CallSettings callSettings = null)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/traceScopes/[TRACE_SCOPE]";
// Make the request
await observabilityClient.DeleteTraceScopeAsync(name);
DeleteTraceScopeAsync(string, CancellationToken)
public virtual Task DeleteTraceScopeAsync(string name, CancellationToken cancellationToken)Delete a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The full resource name of the trace scope to delete: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/traceScopes/[TRACE_SCOPE]";
// Make the request
await observabilityClient.DeleteTraceScopeAsync(name);
GetBucket(BucketName, CallSettings)
public virtual Bucket GetBucket(BucketName name, CallSettings callSettings = null)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
BucketNameRequired. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Bucket |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
BucketName name = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
Bucket response = observabilityClient.GetBucket(name);
GetBucket(GetBucketRequest, CallSettings)
public virtual Bucket GetBucket(GetBucketRequest request, CallSettings callSettings = null)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Bucket |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetBucketRequest request = new GetBucketRequest
{
BucketName = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
Bucket response = observabilityClient.GetBucket(request);
GetBucket(string, CallSettings)
public virtual Bucket GetBucket(string name, CallSettings callSettings = null)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Bucket |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
// Make the request
Bucket response = observabilityClient.GetBucket(name);
GetBucketAsync(BucketName, CallSettings)
public virtual Task<Bucket> GetBucketAsync(BucketName name, CallSettings callSettings = null)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
BucketNameRequired. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBucket |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
BucketName name = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
Bucket response = await observabilityClient.GetBucketAsync(name);
GetBucketAsync(BucketName, CancellationToken)
public virtual Task<Bucket> GetBucketAsync(BucketName name, CancellationToken cancellationToken)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
BucketNameRequired. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBucket |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
BucketName name = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
Bucket response = await observabilityClient.GetBucketAsync(name);
GetBucketAsync(GetBucketRequest, CallSettings)
public virtual Task<Bucket> GetBucketAsync(GetBucketRequest request, CallSettings callSettings = null)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBucket |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetBucketRequest request = new GetBucketRequest
{
BucketName = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
Bucket response = await observabilityClient.GetBucketAsync(request);
GetBucketAsync(GetBucketRequest, CancellationToken)
public virtual Task<Bucket> GetBucketAsync(GetBucketRequest request, CancellationToken cancellationToken)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBucket |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetBucketRequest request = new GetBucketRequest
{
BucketName = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
};
// Make the request
Bucket response = await observabilityClient.GetBucketAsync(request);
GetBucketAsync(string, CallSettings)
public virtual Task<Bucket> GetBucketAsync(string name, CallSettings callSettings = null)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskBucket |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
// Make the request
Bucket response = await observabilityClient.GetBucketAsync(name);
GetBucketAsync(string, CancellationToken)
public virtual Task<Bucket> GetBucketAsync(string name, CancellationToken cancellationToken)Get bucket resource.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskBucket |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
// Make the request
Bucket response = await observabilityClient.GetBucketAsync(name);
GetDataset(DatasetName, CallSettings)
public virtual Dataset GetDataset(DatasetName name, CallSettings callSettings = null)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
DatasetNameRequired. Name of the dataset to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Dataset |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
DatasetName name = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
Dataset response = observabilityClient.GetDataset(name);
GetDataset(GetDatasetRequest, CallSettings)
public virtual Dataset GetDataset(GetDatasetRequest request, CallSettings callSettings = null)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Dataset |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetDatasetRequest request = new GetDatasetRequest
{
DatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
Dataset response = observabilityClient.GetDataset(request);
GetDataset(string, CallSettings)
public virtual Dataset GetDataset(string name, CallSettings callSettings = null)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the dataset to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Dataset |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
Dataset response = observabilityClient.GetDataset(name);
GetDatasetAsync(DatasetName, CallSettings)
public virtual Task<Dataset> GetDatasetAsync(DatasetName name, CallSettings callSettings = null)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
DatasetNameRequired. Name of the dataset to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataset |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DatasetName name = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
Dataset response = await observabilityClient.GetDatasetAsync(name);
GetDatasetAsync(DatasetName, CancellationToken)
public virtual Task<Dataset> GetDatasetAsync(DatasetName name, CancellationToken cancellationToken)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
DatasetNameRequired. Name of the dataset to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataset |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DatasetName name = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
Dataset response = await observabilityClient.GetDatasetAsync(name);
GetDatasetAsync(GetDatasetRequest, CallSettings)
public virtual Task<Dataset> GetDatasetAsync(GetDatasetRequest request, CallSettings callSettings = null)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDatasetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataset |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetDatasetRequest request = new GetDatasetRequest
{
DatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
Dataset response = await observabilityClient.GetDatasetAsync(request);
GetDatasetAsync(GetDatasetRequest, CancellationToken)
public virtual Task<Dataset> GetDatasetAsync(GetDatasetRequest request, CancellationToken cancellationToken)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
GetDatasetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataset |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetDatasetRequest request = new GetDatasetRequest
{
DatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
Dataset response = await observabilityClient.GetDatasetAsync(request);
GetDatasetAsync(string, CallSettings)
public virtual Task<Dataset> GetDatasetAsync(string name, CallSettings callSettings = null)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the dataset to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskDataset |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
Dataset response = await observabilityClient.GetDatasetAsync(name);
GetDatasetAsync(string, CancellationToken)
public virtual Task<Dataset> GetDatasetAsync(string name, CancellationToken cancellationToken)Get a dataset.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the dataset to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskDataset |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
Dataset response = await observabilityClient.GetDatasetAsync(name);
GetLink(GetLinkRequest, CallSettings)
public virtual Link GetLink(GetLinkRequest request, CallSettings callSettings = null)Get a link.
| Parameters | |
|---|---|
| Name | Description |
request |
GetLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Link |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetLinkRequest request = new GetLinkRequest
{
LinkName = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]"),
};
// Make the request
Link response = observabilityClient.GetLink(request);
GetLink(LinkName, CallSettings)
public virtual Link GetLink(LinkName name, CallSettings callSettings = null)Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
LinkNameRequired. Name of the link to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Link |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]");
// Make the request
Link response = observabilityClient.GetLink(name);
GetLink(string, CallSettings)
public virtual Link GetLink(string name, CallSettings callSettings = null)Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the link to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Link |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/links/[LINK]";
// Make the request
Link response = observabilityClient.GetLink(name);
GetLinkAsync(GetLinkRequest, CallSettings)
public virtual Task<Link> GetLinkAsync(GetLinkRequest request, CallSettings callSettings = null)Get a link.
| Parameters | |
|---|---|
| Name | Description |
request |
GetLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLink |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetLinkRequest request = new GetLinkRequest
{
LinkName = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]"),
};
// Make the request
Link response = await observabilityClient.GetLinkAsync(request);
GetLinkAsync(GetLinkRequest, CancellationToken)
public virtual Task<Link> GetLinkAsync(GetLinkRequest request, CancellationToken cancellationToken)Get a link.
| Parameters | |
|---|---|
| Name | Description |
request |
GetLinkRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLink |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetLinkRequest request = new GetLinkRequest
{
LinkName = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]"),
};
// Make the request
Link response = await observabilityClient.GetLinkAsync(request);
GetLinkAsync(LinkName, CallSettings)
public virtual Task<Link> GetLinkAsync(LinkName name, CallSettings callSettings = null)Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
LinkNameRequired. Name of the link to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLink |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]");
// Make the request
Link response = await observabilityClient.GetLinkAsync(name);
GetLinkAsync(LinkName, CancellationToken)
public virtual Task<Link> GetLinkAsync(LinkName name, CancellationToken cancellationToken)Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
LinkNameRequired. Name of the link to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLink |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LinkName name = LinkName.FromProjectLocationBucketDatasetLink("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[LINK]");
// Make the request
Link response = await observabilityClient.GetLinkAsync(name);
GetLinkAsync(string, CallSettings)
public virtual Task<Link> GetLinkAsync(string name, CallSettings callSettings = null)Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the link to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskLink |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/links/[LINK]";
// Make the request
Link response = await observabilityClient.GetLinkAsync(name);
GetLinkAsync(string, CancellationToken)
public virtual Task<Link> GetLinkAsync(string name, CancellationToken cancellationToken)Get a link.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the link to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskLink |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/links/[LINK]";
// Make the request
Link response = await observabilityClient.GetLinkAsync(name);
GetScope(GetScopeRequest, CallSettings)
public virtual Scope GetScope(GetScopeRequest request, CallSettings callSettings = null)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetScopeRequest request = new GetScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Scope response = observabilityClient.GetScope(request);
GetScope(ScopeName, CallSettings)
public virtual Scope GetScope(ScopeName name, CallSettings callSettings = null)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Scope response = observabilityClient.GetScope(name);
GetScope(string, CallSettings)
public virtual Scope GetScope(string name, CallSettings callSettings = null)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Scope response = observabilityClient.GetScope(name);
GetScopeAsync(GetScopeRequest, CallSettings)
public virtual Task<Scope> GetScopeAsync(GetScopeRequest request, CallSettings callSettings = null)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetScopeRequest request = new GetScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Scope response = await observabilityClient.GetScopeAsync(request);
GetScopeAsync(GetScopeRequest, CancellationToken)
public virtual Task<Scope> GetScopeAsync(GetScopeRequest request, CancellationToken cancellationToken)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetScopeRequest request = new GetScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Scope response = await observabilityClient.GetScopeAsync(request);
GetScopeAsync(ScopeName, CallSettings)
public virtual Task<Scope> GetScopeAsync(ScopeName name, CallSettings callSettings = null)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Scope response = await observabilityClient.GetScopeAsync(name);
GetScopeAsync(ScopeName, CancellationToken)
public virtual Task<Scope> GetScopeAsync(ScopeName name, CancellationToken cancellationToken)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Scope response = await observabilityClient.GetScopeAsync(name);
GetScopeAsync(string, CallSettings)
public virtual Task<Scope> GetScopeAsync(string name, CallSettings callSettings = null)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Scope response = await observabilityClient.GetScopeAsync(name);
GetScopeAsync(string, CancellationToken)
public virtual Task<Scope> GetScopeAsync(string name, CancellationToken cancellationToken)Gets details of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the resource. The format is: projects/{project}/locations/{location}/scopes/{scope} The |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Scope response = await observabilityClient.GetScopeAsync(name);
GetSettings(GetSettingsRequest, CallSettings)
public virtual Settings GetSettings(GetSettingsRequest request, CallSettings callSettings = null)Get Settings
| Parameters | |
|---|---|
| Name | Description |
request |
GetSettingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Settings |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Settings response = observabilityClient.GetSettings(request);
GetSettings(SettingsName, CallSettings)
public virtual Settings GetSettings(SettingsName name, CallSettings callSettings = null)Get Settings
| Parameters | |
|---|---|
| Name | Description |
name |
SettingsNameRequired. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Settings |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Settings response = observabilityClient.GetSettings(name);
GetSettings(string, CallSettings)
public virtual Settings GetSettings(string name, CallSettings callSettings = null)Get Settings
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Settings |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/settings";
// Make the request
Settings response = observabilityClient.GetSettings(name);
GetSettingsAsync(GetSettingsRequest, CallSettings)
public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CallSettings callSettings = null)Get Settings
| Parameters | |
|---|---|
| Name | Description |
request |
GetSettingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSettings |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Settings response = await observabilityClient.GetSettingsAsync(request);
GetSettingsAsync(GetSettingsRequest, CancellationToken)
public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CancellationToken cancellationToken)Get Settings
| Parameters | |
|---|---|
| Name | Description |
request |
GetSettingsRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSettings |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Settings response = await observabilityClient.GetSettingsAsync(request);
GetSettingsAsync(SettingsName, CallSettings)
public virtual Task<Settings> GetSettingsAsync(SettingsName name, CallSettings callSettings = null)Get Settings
| Parameters | |
|---|---|
| Name | Description |
name |
SettingsNameRequired. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSettings |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Settings response = await observabilityClient.GetSettingsAsync(name);
GetSettingsAsync(SettingsName, CancellationToken)
public virtual Task<Settings> GetSettingsAsync(SettingsName name, CancellationToken cancellationToken)Get Settings
| Parameters | |
|---|---|
| Name | Description |
name |
SettingsNameRequired. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSettings |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Settings response = await observabilityClient.GetSettingsAsync(name);
GetSettingsAsync(string, CallSettings)
public virtual Task<Settings> GetSettingsAsync(string name, CallSettings callSettings = null)Get Settings
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSettings |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/settings";
// Make the request
Settings response = await observabilityClient.GetSettingsAsync(name);
GetSettingsAsync(string, CancellationToken)
public virtual Task<Settings> GetSettingsAsync(string name, CancellationToken cancellationToken)Get Settings
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]/locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskSettings |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/settings";
// Make the request
Settings response = await observabilityClient.GetSettingsAsync(name);
GetTraceScope(GetTraceScopeRequest, CallSettings)
public virtual TraceScope GetTraceScope(GetTraceScopeRequest request, CallSettings callSettings = null)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetTraceScopeRequest request = new GetTraceScopeRequest
{
TraceScopeName = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]"),
};
// Make the request
TraceScope response = observabilityClient.GetTraceScope(request);
GetTraceScope(TraceScopeName, CallSettings)
public virtual TraceScope GetTraceScope(TraceScopeName name, CallSettings callSettings = null)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
TraceScopeNameRequired. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
TraceScopeName name = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]");
// Make the request
TraceScope response = observabilityClient.GetTraceScope(name);
GetTraceScope(string, CallSettings)
public virtual TraceScope GetTraceScope(string name, CallSettings callSettings = null)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/traceScopes/[TRACE_SCOPE]";
// Make the request
TraceScope response = observabilityClient.GetTraceScope(name);
GetTraceScopeAsync(GetTraceScopeRequest, CallSettings)
public virtual Task<TraceScope> GetTraceScopeAsync(GetTraceScopeRequest request, CallSettings callSettings = null)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetTraceScopeRequest request = new GetTraceScopeRequest
{
TraceScopeName = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]"),
};
// Make the request
TraceScope response = await observabilityClient.GetTraceScopeAsync(request);
GetTraceScopeAsync(GetTraceScopeRequest, CancellationToken)
public virtual Task<TraceScope> GetTraceScopeAsync(GetTraceScopeRequest request, CancellationToken cancellationToken)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTraceScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetTraceScopeRequest request = new GetTraceScopeRequest
{
TraceScopeName = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]"),
};
// Make the request
TraceScope response = await observabilityClient.GetTraceScopeAsync(request);
GetTraceScopeAsync(TraceScopeName, CallSettings)
public virtual Task<TraceScope> GetTraceScopeAsync(TraceScopeName name, CallSettings callSettings = null)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
TraceScopeNameRequired. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
TraceScopeName name = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]");
// Make the request
TraceScope response = await observabilityClient.GetTraceScopeAsync(name);
GetTraceScopeAsync(TraceScopeName, CancellationToken)
public virtual Task<TraceScope> GetTraceScopeAsync(TraceScopeName name, CancellationToken cancellationToken)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
TraceScopeNameRequired. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
TraceScopeName name = TraceScopeName.FromProjectLocationTraceScope("[PROJECT]", "[LOCATION]", "[TRACE_SCOPE]");
// Make the request
TraceScope response = await observabilityClient.GetTraceScopeAsync(name);
GetTraceScopeAsync(string, CallSettings)
public virtual Task<TraceScope> GetTraceScopeAsync(string name, CallSettings callSettings = null)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/traceScopes/[TRACE_SCOPE]";
// Make the request
TraceScope response = await observabilityClient.GetTraceScopeAsync(name);
GetTraceScopeAsync(string, CancellationToken)
public virtual Task<TraceScope> GetTraceScopeAsync(string name, CancellationToken cancellationToken)Get TraceScope resource.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The resource name of the trace scope: projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID] For example: projects/my-project/locations/global/traceScopes/my-trace-scope |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/traceScopes/[TRACE_SCOPE]";
// Make the request
TraceScope response = await observabilityClient.GetTraceScopeAsync(name);
GetView(GetViewRequest, CallSettings)
public virtual View GetView(GetViewRequest request, CallSettings callSettings = null)Get a view.
| Parameters | |
|---|---|
| Name | Description |
request |
GetViewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
View |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
GetViewRequest request = new GetViewRequest
{
ViewName = ViewName.FromProjectLocationBucketDatasetView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[VIEW]"),
};
// Make the request
View response = observabilityClient.GetView(request);
GetView(ViewName, CallSettings)
public virtual View GetView(ViewName name, CallSettings callSettings = null)Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
ViewNameRequired. Name of the view to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
View |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ViewName name = ViewName.FromProjectLocationBucketDatasetView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[VIEW]");
// Make the request
View response = observabilityClient.GetView(name);
GetView(string, CallSettings)
public virtual View GetView(string name, CallSettings callSettings = null)Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the view to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
View |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/views/[VIEW]";
// Make the request
View response = observabilityClient.GetView(name);
GetViewAsync(GetViewRequest, CallSettings)
public virtual Task<View> GetViewAsync(GetViewRequest request, CallSettings callSettings = null)Get a view.
| Parameters | |
|---|---|
| Name | Description |
request |
GetViewRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskView |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetViewRequest request = new GetViewRequest
{
ViewName = ViewName.FromProjectLocationBucketDatasetView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[VIEW]"),
};
// Make the request
View response = await observabilityClient.GetViewAsync(request);
GetViewAsync(GetViewRequest, CancellationToken)
public virtual Task<View> GetViewAsync(GetViewRequest request, CancellationToken cancellationToken)Get a view.
| Parameters | |
|---|---|
| Name | Description |
request |
GetViewRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskView |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
GetViewRequest request = new GetViewRequest
{
ViewName = ViewName.FromProjectLocationBucketDatasetView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[VIEW]"),
};
// Make the request
View response = await observabilityClient.GetViewAsync(request);
GetViewAsync(ViewName, CallSettings)
public virtual Task<View> GetViewAsync(ViewName name, CallSettings callSettings = null)Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
ViewNameRequired. Name of the view to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskView |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ViewName name = ViewName.FromProjectLocationBucketDatasetView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[VIEW]");
// Make the request
View response = await observabilityClient.GetViewAsync(name);
GetViewAsync(ViewName, CancellationToken)
public virtual Task<View> GetViewAsync(ViewName name, CancellationToken cancellationToken)Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
ViewNameRequired. Name of the view to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskView |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ViewName name = ViewName.FromProjectLocationBucketDatasetView("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]", "[VIEW]");
// Make the request
View response = await observabilityClient.GetViewAsync(name);
GetViewAsync(string, CallSettings)
public virtual Task<View> GetViewAsync(string name, CallSettings callSettings = null)Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the view to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskView |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/views/[VIEW]";
// Make the request
View response = await observabilityClient.GetViewAsync(name);
GetViewAsync(string, CancellationToken)
public virtual Task<View> GetViewAsync(string name, CancellationToken cancellationToken)Get a view.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. Name of the view to retrieve. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID] |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskView |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]/views/[VIEW]";
// Make the request
View response = await observabilityClient.GetViewAsync(name);
ListBuckets(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBucketsResponse, Bucket> ListBuckets(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of buckets. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBucketsResponseBucket |
A pageable sequence of Bucket resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListBucketsResponse, Bucket> response = observabilityClient.ListBuckets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Bucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Bucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Bucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Bucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListBuckets(ListBucketsRequest, CallSettings)
public virtual PagedEnumerable<ListBucketsResponse, Bucket> ListBuckets(ListBucketsRequest request, CallSettings callSettings = null)List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBucketsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBucketsResponseBucket |
A pageable sequence of Bucket resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ListBucketsRequest request = new ListBucketsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ShowDeleted = false,
};
// Make the request
PagedEnumerable<ListBucketsResponse, Bucket> response = observabilityClient.ListBuckets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Bucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Bucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Bucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Bucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListBuckets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListBucketsResponse, Bucket> ListBuckets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of buckets. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBucketsResponseBucket |
A pageable sequence of Bucket resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListBucketsResponse, Bucket> response = observabilityClient.ListBuckets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Bucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListBucketsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Bucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Bucket> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Bucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListBucketsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBucketsResponse, Bucket> ListBucketsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent, which owns this collection of buckets. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBucketsResponseBucket |
A pageable asynchronous sequence of Bucket resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, Bucket> response = observabilityClient.ListBucketsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Bucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListBucketsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Bucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Bucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Bucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListBucketsAsync(ListBucketsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListBucketsResponse, Bucket> ListBucketsAsync(ListBucketsRequest request, CallSettings callSettings = null)List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBucketsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBucketsResponseBucket |
A pageable asynchronous sequence of Bucket resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ListBucketsRequest request = new ListBucketsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ShowDeleted = false,
};
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, Bucket> response = observabilityClient.ListBucketsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Bucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListBucketsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Bucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Bucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Bucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListBucketsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBucketsResponse, Bucket> ListBucketsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List buckets of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent, which owns this collection of buckets. The format is: projects/[PROJECT_ID]/locations/[LOCATION] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBucketsResponseBucket |
A pageable asynchronous sequence of Bucket resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListBucketsResponse, Bucket> response = observabilityClient.ListBucketsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Bucket item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListBucketsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Bucket item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Bucket> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Bucket item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatasets(BucketName, string, int?, CallSettings)
public virtual PagedEnumerable<ListDatasetsResponse, Dataset> ListDatasets(BucketName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
BucketNameRequired. The parent bucket that owns this collection of datasets. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDatasetsResponseDataset |
A pageable sequence of Dataset resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
BucketName parent = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
PagedEnumerable<ListDatasetsResponse, Dataset> response = observabilityClient.ListDatasets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Dataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Dataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Dataset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Dataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatasets(ListDatasetsRequest, CallSettings)
public virtual PagedEnumerable<ListDatasetsResponse, Dataset> ListDatasets(ListDatasetsRequest request, CallSettings callSettings = null)List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDatasetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDatasetsResponseDataset |
A pageable sequence of Dataset resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ListDatasetsRequest request = new ListDatasetsRequest
{
ParentAsBucketName = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
ShowDeleted = false,
};
// Make the request
PagedEnumerable<ListDatasetsResponse, Dataset> response = observabilityClient.ListDatasets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Dataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Dataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Dataset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Dataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatasets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDatasetsResponse, Dataset> ListDatasets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent bucket that owns this collection of datasets. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListDatasetsResponseDataset |
A pageable sequence of Dataset resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
// Make the request
PagedEnumerable<ListDatasetsResponse, Dataset> response = observabilityClient.ListDatasets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Dataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Dataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Dataset> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Dataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatasetsAsync(BucketName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDatasetsResponse, Dataset> ListDatasetsAsync(BucketName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
BucketNameRequired. The parent bucket that owns this collection of datasets. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDatasetsResponseDataset |
A pageable asynchronous sequence of Dataset resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
BucketName parent = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]");
// Make the request
PagedAsyncEnumerable<ListDatasetsResponse, Dataset> response = observabilityClient.ListDatasetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Dataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Dataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Dataset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Dataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatasetsAsync(ListDatasetsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDatasetsResponse, Dataset> ListDatasetsAsync(ListDatasetsRequest request, CallSettings callSettings = null)List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
ListDatasetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDatasetsResponseDataset |
A pageable asynchronous sequence of Dataset resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ListDatasetsRequest request = new ListDatasetsRequest
{
ParentAsBucketName = BucketName.FromProjectLocationBucket("[PROJECT]", "[LOCATION]", "[BUCKET]"),
ShowDeleted = false,
};
// Make the request
PagedAsyncEnumerable<ListDatasetsResponse, Dataset> response = observabilityClient.ListDatasetsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Dataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Dataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Dataset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Dataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListDatasetsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDatasetsResponse, Dataset> ListDatasetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List datasets of a bucket.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent bucket that owns this collection of datasets. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListDatasetsResponseDataset |
A pageable asynchronous sequence of Dataset resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]";
// Make the request
PagedAsyncEnumerable<ListDatasetsResponse, Dataset> response = observabilityClient.ListDatasetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Dataset item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListDatasetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Dataset item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Dataset> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Dataset item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLinks(DatasetName, string, int?, CallSettings)
public virtual PagedEnumerable<ListLinksResponse, Link> ListLinks(DatasetName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. The parent dataset that owns this collection of links. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLinksResponseLink |
A pageable sequence of Link resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
PagedEnumerable<ListLinksResponse, Link> response = observabilityClient.ListLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Link item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Link item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Link> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Link item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLinks(ListLinksRequest, CallSettings)
public virtual PagedEnumerable<ListLinksResponse, Link> ListLinks(ListLinksRequest request, CallSettings callSettings = null)List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLinksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLinksResponseLink |
A pageable sequence of Link resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ListLinksRequest request = new ListLinksRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
PagedEnumerable<ListLinksResponse, Link> response = observabilityClient.ListLinks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Link item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Link item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Link> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Link item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLinks(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListLinksResponse, Link> ListLinks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent dataset that owns this collection of links. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListLinksResponseLink |
A pageable sequence of Link resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
PagedEnumerable<ListLinksResponse, Link> response = observabilityClient.ListLinks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Link item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Link item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Link> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Link item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLinksAsync(DatasetName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListLinksResponse, Link> ListLinksAsync(DatasetName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. The parent dataset that owns this collection of links. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLinksResponseLink |
A pageable asynchronous sequence of Link resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
PagedAsyncEnumerable<ListLinksResponse, Link> response = observabilityClient.ListLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Link item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Link item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Link> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Link item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLinksAsync(ListLinksRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListLinksResponse, Link> ListLinksAsync(ListLinksRequest request, CallSettings callSettings = null)List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
ListLinksRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLinksResponseLink |
A pageable asynchronous sequence of Link resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ListLinksRequest request = new ListLinksRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
PagedAsyncEnumerable<ListLinksResponse, Link> response = observabilityClient.ListLinksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Link item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Link item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Link> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Link item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListLinksAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListLinksResponse, Link> ListLinksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List links of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent dataset that owns this collection of links. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListLinksResponseLink |
A pageable asynchronous sequence of Link resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
PagedAsyncEnumerable<ListLinksResponse, Link> response = observabilityClient.ListLinksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Link item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListLinksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Link item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Link> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Link item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTraceScopes(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListTraceScopesResponse, TraceScope> ListTraceScopes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The full resource name of the location to look for trace scopes: projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTraceScopesResponseTraceScope |
A pageable sequence of TraceScope resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListTraceScopesResponse, TraceScope> response = observabilityClient.ListTraceScopes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TraceScope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTraceScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TraceScope item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TraceScope> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TraceScope item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTraceScopes(ListTraceScopesRequest, CallSettings)
public virtual PagedEnumerable<ListTraceScopesResponse, TraceScope> ListTraceScopes(ListTraceScopesRequest request, CallSettings callSettings = null)List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTraceScopesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTraceScopesResponseTraceScope |
A pageable sequence of TraceScope resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ListTraceScopesRequest request = new ListTraceScopesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListTraceScopesResponse, TraceScope> response = observabilityClient.ListTraceScopes(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (TraceScope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTraceScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TraceScope item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TraceScope> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TraceScope item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTraceScopes(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListTraceScopesResponse, TraceScope> ListTraceScopes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The full resource name of the location to look for trace scopes: projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListTraceScopesResponseTraceScope |
A pageable sequence of TraceScope resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListTraceScopesResponse, TraceScope> response = observabilityClient.ListTraceScopes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (TraceScope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListTraceScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TraceScope item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TraceScope> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TraceScope item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTraceScopesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTraceScopesResponse, TraceScope> ListTraceScopesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The full resource name of the location to look for trace scopes: projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTraceScopesResponseTraceScope |
A pageable asynchronous sequence of TraceScope resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListTraceScopesResponse, TraceScope> response = observabilityClient.ListTraceScopesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (TraceScope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListTraceScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TraceScope item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TraceScope> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TraceScope item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTraceScopesAsync(ListTraceScopesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListTraceScopesResponse, TraceScope> ListTraceScopesAsync(ListTraceScopesRequest request, CallSettings callSettings = null)List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
request |
ListTraceScopesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTraceScopesResponseTraceScope |
A pageable asynchronous sequence of TraceScope resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ListTraceScopesRequest request = new ListTraceScopesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListTraceScopesResponse, TraceScope> response = observabilityClient.ListTraceScopesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (TraceScope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListTraceScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TraceScope item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TraceScope> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TraceScope item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListTraceScopesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTraceScopesResponse, TraceScope> ListTraceScopesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List TraceScopes of a project in a particular location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The full resource name of the location to look for trace scopes: projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-project/locations/global |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListTraceScopesResponseTraceScope |
A pageable asynchronous sequence of TraceScope resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListTraceScopesResponse, TraceScope> response = observabilityClient.ListTraceScopesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (TraceScope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListTraceScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (TraceScope item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<TraceScope> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (TraceScope item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListViews(DatasetName, string, int?, CallSettings)
public virtual PagedEnumerable<ListViewsResponse, View> ListViews(DatasetName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. Dataset whose views are to be listed. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListViewsResponseView |
A pageable sequence of View resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
PagedEnumerable<ListViewsResponse, View> response = observabilityClient.ListViews(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (View item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListViewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (View item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<View> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (View item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListViews(ListViewsRequest, CallSettings)
public virtual PagedEnumerable<ListViewsResponse, View> ListViews(ListViewsRequest request, CallSettings callSettings = null)List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
ListViewsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListViewsResponseView |
A pageable sequence of View resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
ListViewsRequest request = new ListViewsRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
PagedEnumerable<ListViewsResponse, View> response = observabilityClient.ListViews(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (View item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListViewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (View item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<View> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (View item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListViews(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListViewsResponse, View> ListViews(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Dataset whose views are to be listed. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListViewsResponseView |
A pageable sequence of View resources. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
PagedEnumerable<ListViewsResponse, View> response = observabilityClient.ListViews(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (View item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListViewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (View item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<View> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (View item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListViewsAsync(DatasetName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListViewsResponse, View> ListViewsAsync(DatasetName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
DatasetNameRequired. Dataset whose views are to be listed. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListViewsResponseView |
A pageable asynchronous sequence of View resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
DatasetName parent = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]");
// Make the request
PagedAsyncEnumerable<ListViewsResponse, View> response = observabilityClient.ListViewsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (View item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListViewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (View item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<View> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (View item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListViewsAsync(ListViewsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListViewsResponse, View> ListViewsAsync(ListViewsRequest request, CallSettings callSettings = null)List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
request |
ListViewsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListViewsResponseView |
A pageable asynchronous sequence of View resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
ListViewsRequest request = new ListViewsRequest
{
ParentAsDatasetName = DatasetName.FromProjectLocationBucketDataset("[PROJECT]", "[LOCATION]", "[BUCKET]", "[DATASET]"),
};
// Make the request
PagedAsyncEnumerable<ListViewsResponse, View> response = observabilityClient.ListViewsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (View item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListViewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (View item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<View> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (View item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListViewsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListViewsResponse, View> ListViewsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)List views of a dataset.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. Dataset whose views are to be listed. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID] |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListViewsResponseView |
A pageable asynchronous sequence of View resources. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/buckets/[BUCKET]/datasets/[DATASET]";
// Make the request
PagedAsyncEnumerable<ListViewsResponse, View> response = observabilityClient.ListViewsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (View item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListViewsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (View item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<View> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (View item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceCreateBucket(string, CallSettings)
public virtual Operation<Bucket, OperationMetadata> PollOnceCreateBucket(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateBucket.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The result of polling the operation. |
PollOnceCreateBucketAsync(string, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> PollOnceCreateBucketAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateBucket.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateLink(string, CallSettings)
public virtual Operation<Link, OperationMetadata> PollOnceCreateLink(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateLink.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The result of polling the operation. |
PollOnceCreateLinkAsync(string, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> PollOnceCreateLinkAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateLink.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteLink(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteLink(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteLink.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteLinkAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteLinkAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteLink.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateBucket(string, CallSettings)
public virtual Operation<Bucket, OperationMetadata> PollOnceUpdateBucket(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateBucket.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The result of polling the operation. |
PollOnceUpdateBucketAsync(string, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> PollOnceUpdateBucketAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateBucket.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateLink(string, CallSettings)
public virtual Operation<Link, OperationMetadata> PollOnceUpdateLink(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateLink.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The result of polling the operation. |
PollOnceUpdateLinkAsync(string, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> PollOnceUpdateLinkAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateLink.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateSettings(string, CallSettings)
public virtual Operation<Settings, OperationMetadata> PollOnceUpdateSettings(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateSettings.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSettingsOperationMetadata |
The result of polling the operation. |
PollOnceUpdateSettingsAsync(string, CallSettings)
public virtual Task<Operation<Settings, OperationMetadata>> PollOnceUpdateSettingsAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateSettings.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSettingsOperationMetadata |
A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateBucket(Bucket, FieldMask, CallSettings)
public virtual Operation<Bucket, OperationMetadata> UpdateBucket(Bucket bucket, FieldMask updateMask, CallSettings callSettings = null)Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
bucket |
BucketRequired. The bucket to update. The name field of bucket identifies the resource to update. |
updateMask |
FieldMaskOptional. The list of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
Bucket bucket = new Bucket();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Bucket, OperationMetadata> response = observabilityClient.UpdateBucket(bucket, updateMask);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = observabilityClient.PollOnceUpdateBucket(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
UpdateBucket(UpdateBucketRequest, CallSettings)
public virtual Operation<Bucket, OperationMetadata> UpdateBucket(UpdateBucketRequest request, CallSettings callSettings = null)Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationBucketOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
UpdateBucketRequest request = new UpdateBucketRequest
{
Bucket = new Bucket(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Bucket, OperationMetadata> response = observabilityClient.UpdateBucket(request);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = observabilityClient.PollOnceUpdateBucket(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
UpdateBucketAsync(Bucket, FieldMask, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> UpdateBucketAsync(Bucket bucket, FieldMask updateMask, CallSettings callSettings = null)Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
bucket |
BucketRequired. The bucket to update. The name field of bucket identifies the resource to update. |
updateMask |
FieldMaskOptional. The list of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Bucket bucket = new Bucket();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.UpdateBucketAsync(bucket, updateMask);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
UpdateBucketAsync(Bucket, FieldMask, CancellationToken)
public virtual Task<Operation<Bucket, OperationMetadata>> UpdateBucketAsync(Bucket bucket, FieldMask updateMask, CancellationToken cancellationToken)Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
bucket |
BucketRequired. The bucket to update. The name field of bucket identifies the resource to update. |
updateMask |
FieldMaskOptional. The list of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Bucket bucket = new Bucket();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.UpdateBucketAsync(bucket, updateMask);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
UpdateBucketAsync(UpdateBucketRequest, CallSettings)
public virtual Task<Operation<Bucket, OperationMetadata>> UpdateBucketAsync(UpdateBucketRequest request, CallSettings callSettings = null)Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBucketRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateBucketRequest request = new UpdateBucketRequest
{
Bucket = new Bucket(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.UpdateBucketAsync(request);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
UpdateBucketAsync(UpdateBucketRequest, CancellationToken)
public virtual Task<Operation<Bucket, OperationMetadata>> UpdateBucketAsync(UpdateBucketRequest request, CancellationToken cancellationToken)Update a bucket.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateBucketRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationBucketOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateBucketRequest request = new UpdateBucketRequest
{
Bucket = new Bucket(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Bucket, OperationMetadata> response = await observabilityClient.UpdateBucketAsync(request);
// Poll until the returned long-running operation is complete
Operation<Bucket, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Bucket 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<Bucket, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateBucketAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Bucket retrievedResult = retrievedResponse.Result;
}
UpdateLink(Link, FieldMask, CallSettings)
public virtual Operation<Link, OperationMetadata> UpdateLink(Link link, FieldMask updateMask, CallSettings callSettings = null)Update a link.
| Parameters | |
|---|---|
| Name | Description |
link |
LinkRequired. Link to update. The name field of link identifies the resource to update. |
updateMask |
FieldMaskOptional. The list of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
Link link = new Link();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Link, OperationMetadata> response = observabilityClient.UpdateLink(link, updateMask);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = observabilityClient.PollOnceUpdateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
UpdateLink(UpdateLinkRequest, CallSettings)
public virtual Operation<Link, OperationMetadata> UpdateLink(UpdateLinkRequest request, CallSettings callSettings = null)Update a link.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationLinkOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
UpdateLinkRequest request = new UpdateLinkRequest
{
Link = new Link(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Link, OperationMetadata> response = observabilityClient.UpdateLink(request);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = observabilityClient.PollOnceUpdateLink(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
UpdateLinkAsync(Link, FieldMask, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> UpdateLinkAsync(Link link, FieldMask updateMask, CallSettings callSettings = null)Update a link.
| Parameters | |
|---|---|
| Name | Description |
link |
LinkRequired. Link to update. The name field of link identifies the resource to update. |
updateMask |
FieldMaskOptional. The list of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Link link = new Link();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.UpdateLinkAsync(link, updateMask);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
UpdateLinkAsync(Link, FieldMask, CancellationToken)
public virtual Task<Operation<Link, OperationMetadata>> UpdateLinkAsync(Link link, FieldMask updateMask, CancellationToken cancellationToken)Update a link.
| Parameters | |
|---|---|
| Name | Description |
link |
LinkRequired. Link to update. The name field of link identifies the resource to update. |
updateMask |
FieldMaskOptional. The list of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Link link = new Link();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.UpdateLinkAsync(link, updateMask);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
UpdateLinkAsync(UpdateLinkRequest, CallSettings)
public virtual Task<Operation<Link, OperationMetadata>> UpdateLinkAsync(UpdateLinkRequest request, CallSettings callSettings = null)Update a link.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateLinkRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateLinkRequest request = new UpdateLinkRequest
{
Link = new Link(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.UpdateLinkAsync(request);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
UpdateLinkAsync(UpdateLinkRequest, CancellationToken)
public virtual Task<Operation<Link, OperationMetadata>> UpdateLinkAsync(UpdateLinkRequest request, CancellationToken cancellationToken)Update a link.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateLinkRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationLinkOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateLinkRequest request = new UpdateLinkRequest
{
Link = new Link(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Link, OperationMetadata> response = await observabilityClient.UpdateLinkAsync(request);
// Poll until the returned long-running operation is complete
Operation<Link, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Link 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<Link, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateLinkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Link retrievedResult = retrievedResponse.Result;
}
UpdateScope(Scope, FieldMask, CallSettings)
public virtual Scope UpdateScope(Scope scope, FieldMask updateMask, CallSettings callSettings = null)Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
scope |
ScopeRequired. The resource being updated. |
updateMask |
FieldMaskOptional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
Scope scope = new Scope();
FieldMask updateMask = new FieldMask();
// Make the request
Scope response = observabilityClient.UpdateScope(scope, updateMask);
UpdateScope(UpdateScopeRequest, CallSettings)
public virtual Scope UpdateScope(UpdateScopeRequest request, CallSettings callSettings = null)Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
UpdateScopeRequest request = new UpdateScopeRequest
{
UpdateMask = new FieldMask(),
Scope = new Scope(),
};
// Make the request
Scope response = observabilityClient.UpdateScope(request);
UpdateScopeAsync(Scope, FieldMask, CallSettings)
public virtual Task<Scope> UpdateScopeAsync(Scope scope, FieldMask updateMask, CallSettings callSettings = null)Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
scope |
ScopeRequired. The resource being updated. |
updateMask |
FieldMaskOptional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Scope scope = new Scope();
FieldMask updateMask = new FieldMask();
// Make the request
Scope response = await observabilityClient.UpdateScopeAsync(scope, updateMask);
UpdateScopeAsync(Scope, FieldMask, CancellationToken)
public virtual Task<Scope> UpdateScopeAsync(Scope scope, FieldMask updateMask, CancellationToken cancellationToken)Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
scope |
ScopeRequired. The resource being updated. |
updateMask |
FieldMaskOptional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Scope scope = new Scope();
FieldMask updateMask = new FieldMask();
// Make the request
Scope response = await observabilityClient.UpdateScopeAsync(scope, updateMask);
UpdateScopeAsync(UpdateScopeRequest, CallSettings)
public virtual Task<Scope> UpdateScopeAsync(UpdateScopeRequest request, CallSettings callSettings = null)Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeRequest request = new UpdateScopeRequest
{
UpdateMask = new FieldMask(),
Scope = new Scope(),
};
// Make the request
Scope response = await observabilityClient.UpdateScopeAsync(request);
UpdateScopeAsync(UpdateScopeRequest, CancellationToken)
public virtual Task<Scope> UpdateScopeAsync(UpdateScopeRequest request, CancellationToken cancellationToken)Updates the parameters of a single Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeRequest request = new UpdateScopeRequest
{
UpdateMask = new FieldMask(),
Scope = new Scope(),
};
// Make the request
Scope response = await observabilityClient.UpdateScopeAsync(request);
UpdateSettings(Settings, FieldMask, CallSettings)
public virtual Operation<Settings, OperationMetadata> UpdateSettings(Settings settings, FieldMask updateMask, CallSettings callSettings = null)Update Settings
| Parameters | |
|---|---|
| Name | Description |
settings |
SettingsRequired. The settings to update. The name field of settings is used to identify the resource to be updated. |
updateMask |
FieldMaskOptional. The field mask specifying which fields of the settings are to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSettingsOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Settings, OperationMetadata> response = observabilityClient.UpdateSettings(settings, updateMask);
// Poll until the returned long-running operation is complete
Operation<Settings, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Settings 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<Settings, OperationMetadata> retrievedResponse = observabilityClient.PollOnceUpdateSettings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Settings retrievedResult = retrievedResponse.Result;
}
UpdateSettings(UpdateSettingsRequest, CallSettings)
public virtual Operation<Settings, OperationMetadata> UpdateSettings(UpdateSettingsRequest request, CallSettings callSettings = null)Update Settings
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateSettingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationSettingsOperationMetadata |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
Settings = new Settings(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Settings, OperationMetadata> response = observabilityClient.UpdateSettings(request);
// Poll until the returned long-running operation is complete
Operation<Settings, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Settings 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<Settings, OperationMetadata> retrievedResponse = observabilityClient.PollOnceUpdateSettings(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Settings retrievedResult = retrievedResponse.Result;
}
UpdateSettingsAsync(Settings, FieldMask, CallSettings)
public virtual Task<Operation<Settings, OperationMetadata>> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CallSettings callSettings = null)Update Settings
| Parameters | |
|---|---|
| Name | Description |
settings |
SettingsRequired. The settings to update. The name field of settings is used to identify the resource to be updated. |
updateMask |
FieldMaskOptional. The field mask specifying which fields of the settings are to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSettingsOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Settings, OperationMetadata> response = await observabilityClient.UpdateSettingsAsync(settings, updateMask);
// Poll until the returned long-running operation is complete
Operation<Settings, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Settings 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<Settings, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateSettingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Settings retrievedResult = retrievedResponse.Result;
}
UpdateSettingsAsync(Settings, FieldMask, CancellationToken)
public virtual Task<Operation<Settings, OperationMetadata>> UpdateSettingsAsync(Settings settings, FieldMask updateMask, CancellationToken cancellationToken)Update Settings
| Parameters | |
|---|---|
| Name | Description |
settings |
SettingsRequired. The settings to update. The name field of settings is used to identify the resource to be updated. |
updateMask |
FieldMaskOptional. The field mask specifying which fields of the settings are to be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSettingsOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Settings, OperationMetadata> response = await observabilityClient.UpdateSettingsAsync(settings, updateMask);
// Poll until the returned long-running operation is complete
Operation<Settings, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Settings 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<Settings, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateSettingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Settings retrievedResult = retrievedResponse.Result;
}
UpdateSettingsAsync(UpdateSettingsRequest, CallSettings)
public virtual Task<Operation<Settings, OperationMetadata>> UpdateSettingsAsync(UpdateSettingsRequest request, CallSettings callSettings = null)Update Settings
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateSettingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSettingsOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
Settings = new Settings(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Settings, OperationMetadata> response = await observabilityClient.UpdateSettingsAsync(request);
// Poll until the returned long-running operation is complete
Operation<Settings, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Settings 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<Settings, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateSettingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Settings retrievedResult = retrievedResponse.Result;
}
UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken)
public virtual Task<Operation<Settings, OperationMetadata>> UpdateSettingsAsync(UpdateSettingsRequest request, CancellationToken cancellationToken)Update Settings
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateSettingsRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationSettingsOperationMetadata |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
Settings = new Settings(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Settings, OperationMetadata> response = await observabilityClient.UpdateSettingsAsync(request);
// Poll until the returned long-running operation is complete
Operation<Settings, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Settings 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<Settings, OperationMetadata> retrievedResponse = await observabilityClient.PollOnceUpdateSettingsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Settings retrievedResult = retrievedResponse.Result;
}
UpdateTraceScope(TraceScope, FieldMask, CallSettings)
public virtual TraceScope UpdateTraceScope(TraceScope traceScope, FieldMask updateMask, CallSettings callSettings = null)Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
traceScope |
TraceScopeRequired. The updated trace scope. |
updateMask |
FieldMaskOptional. The list of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
TraceScope traceScope = new TraceScope();
FieldMask updateMask = new FieldMask();
// Make the request
TraceScope response = observabilityClient.UpdateTraceScope(traceScope, updateMask);
UpdateTraceScope(UpdateTraceScopeRequest, CallSettings)
public virtual TraceScope UpdateTraceScope(UpdateTraceScopeRequest request, CallSettings callSettings = null)Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TraceScope |
The RPC response. |
// Create client
ObservabilityClient observabilityClient = ObservabilityClient.Create();
// Initialize request argument(s)
UpdateTraceScopeRequest request = new UpdateTraceScopeRequest
{
TraceScope = new TraceScope(),
UpdateMask = new FieldMask(),
};
// Make the request
TraceScope response = observabilityClient.UpdateTraceScope(request);
UpdateTraceScopeAsync(TraceScope, FieldMask, CallSettings)
public virtual Task<TraceScope> UpdateTraceScopeAsync(TraceScope traceScope, FieldMask updateMask, CallSettings callSettings = null)Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
traceScope |
TraceScopeRequired. The updated trace scope. |
updateMask |
FieldMaskOptional. The list of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
TraceScope traceScope = new TraceScope();
FieldMask updateMask = new FieldMask();
// Make the request
TraceScope response = await observabilityClient.UpdateTraceScopeAsync(traceScope, updateMask);
UpdateTraceScopeAsync(TraceScope, FieldMask, CancellationToken)
public virtual Task<TraceScope> UpdateTraceScopeAsync(TraceScope traceScope, FieldMask updateMask, CancellationToken cancellationToken)Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
traceScope |
TraceScopeRequired. The updated trace scope. |
updateMask |
FieldMaskOptional. The list of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
TraceScope traceScope = new TraceScope();
FieldMask updateMask = new FieldMask();
// Make the request
TraceScope response = await observabilityClient.UpdateTraceScopeAsync(traceScope, updateMask);
UpdateTraceScopeAsync(UpdateTraceScopeRequest, CallSettings)
public virtual Task<TraceScope> UpdateTraceScopeAsync(UpdateTraceScopeRequest request, CallSettings callSettings = null)Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTraceScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateTraceScopeRequest request = new UpdateTraceScopeRequest
{
TraceScope = new TraceScope(),
UpdateMask = new FieldMask(),
};
// Make the request
TraceScope response = await observabilityClient.UpdateTraceScopeAsync(request);
UpdateTraceScopeAsync(UpdateTraceScopeRequest, CancellationToken)
public virtual Task<TraceScope> UpdateTraceScopeAsync(UpdateTraceScopeRequest request, CancellationToken cancellationToken)Update a TraceScope.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateTraceScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTraceScope |
A Task containing the RPC response. |
// Create client
ObservabilityClient observabilityClient = await ObservabilityClient.CreateAsync();
// Initialize request argument(s)
UpdateTraceScopeRequest request = new UpdateTraceScopeRequest
{
TraceScope = new TraceScope(),
UpdateMask = new FieldMask(),
};
// Make the request
TraceScope response = await observabilityClient.UpdateTraceScopeAsync(request);