Dataflow v1beta3 API - Class SnapshotsV1Beta3Client (2.0.0-beta06)

public abstract class SnapshotsV1Beta3Client

Reference documentation and code samples for the Dataflow v1beta3 API class SnapshotsV1Beta3Client.

SnapshotsV1Beta3 client wrapper, for convenient use.

Inheritance

object > SnapshotsV1Beta3Client

Namespace

Google.Cloud.Dataflow.V1Beta3

Assembly

Google.Cloud.Dataflow.V1Beta3.dll

Remarks

Provides methods to manage snapshots of Google Cloud Dataflow jobs.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the SnapshotsV1Beta3 service, which is a host of "dataflow.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default SnapshotsV1Beta3 scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual SnapshotsV1Beta3.SnapshotsV1Beta3Client GrpcClient { get; }

The underlying gRPC SnapshotsV1Beta3 client

Property Value
Type Description
SnapshotsV1Beta3SnapshotsV1Beta3Client

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static SnapshotsV1Beta3Client Create()

Synchronously creates a SnapshotsV1Beta3Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SnapshotsV1Beta3ClientBuilder.

Returns
Type Description
SnapshotsV1Beta3Client

The created SnapshotsV1Beta3Client.

CreateAsync(CancellationToken)

public static Task<SnapshotsV1Beta3Client> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a SnapshotsV1Beta3Client using the default credentials, endpoint and settings. To specify custom credentials or other settings, use SnapshotsV1Beta3ClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskSnapshotsV1Beta3Client

The task representing the created SnapshotsV1Beta3Client.

DeleteSnapshot(DeleteSnapshotRequest, CallSettings)

public virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
request DeleteSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
DeleteSnapshotResponse

The RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.Create();
// Initialize request argument(s)
DeleteSnapshotRequest request = new DeleteSnapshotRequest
{
    ProjectId = "",
    SnapshotId = "",
    Location = "",
};
// Make the request
DeleteSnapshotResponse response = snapshotsV1Beta3Client.DeleteSnapshot(request);

DeleteSnapshotAsync(DeleteSnapshotRequest, CallSettings)

public virtual Task<DeleteSnapshotResponse> DeleteSnapshotAsync(DeleteSnapshotRequest request, CallSettings callSettings = null)

Deletes a snapshot.

Parameters
Name Description
request DeleteSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskDeleteSnapshotResponse

A Task containing the RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = await SnapshotsV1Beta3Client.CreateAsync();
// Initialize request argument(s)
DeleteSnapshotRequest request = new DeleteSnapshotRequest
{
    ProjectId = "",
    SnapshotId = "",
    Location = "",
};
// Make the request
DeleteSnapshotResponse response = await snapshotsV1Beta3Client.DeleteSnapshotAsync(request);

DeleteSnapshotAsync(DeleteSnapshotRequest, CancellationToken)

public virtual Task<DeleteSnapshotResponse> DeleteSnapshotAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken)

Deletes a snapshot.

Parameters
Name Description
request DeleteSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskDeleteSnapshotResponse

A Task containing the RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = await SnapshotsV1Beta3Client.CreateAsync();
// Initialize request argument(s)
DeleteSnapshotRequest request = new DeleteSnapshotRequest
{
    ProjectId = "",
    SnapshotId = "",
    Location = "",
};
// Make the request
DeleteSnapshotResponse response = await snapshotsV1Beta3Client.DeleteSnapshotAsync(request);

GetSnapshot(GetSnapshotRequest, CallSettings)

public virtual Snapshot GetSnapshot(GetSnapshotRequest request, CallSettings callSettings = null)

Gets information about a snapshot.

Parameters
Name Description
request GetSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Snapshot

The RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.Create();
// Initialize request argument(s)
GetSnapshotRequest request = new GetSnapshotRequest
{
    ProjectId = "",
    SnapshotId = "",
    Location = "",
};
// Make the request
Snapshot response = snapshotsV1Beta3Client.GetSnapshot(request);

GetSnapshotAsync(GetSnapshotRequest, CallSettings)

public virtual Task<Snapshot> GetSnapshotAsync(GetSnapshotRequest request, CallSettings callSettings = null)

Gets information about a snapshot.

Parameters
Name Description
request GetSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = await SnapshotsV1Beta3Client.CreateAsync();
// Initialize request argument(s)
GetSnapshotRequest request = new GetSnapshotRequest
{
    ProjectId = "",
    SnapshotId = "",
    Location = "",
};
// Make the request
Snapshot response = await snapshotsV1Beta3Client.GetSnapshotAsync(request);

GetSnapshotAsync(GetSnapshotRequest, CancellationToken)

public virtual Task<Snapshot> GetSnapshotAsync(GetSnapshotRequest request, CancellationToken cancellationToken)

Gets information about a snapshot.

Parameters
Name Description
request GetSnapshotRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = await SnapshotsV1Beta3Client.CreateAsync();
// Initialize request argument(s)
GetSnapshotRequest request = new GetSnapshotRequest
{
    ProjectId = "",
    SnapshotId = "",
    Location = "",
};
// Make the request
Snapshot response = await snapshotsV1Beta3Client.GetSnapshotAsync(request);

ListSnapshots(ListSnapshotsRequest, CallSettings)

public virtual ListSnapshotsResponse ListSnapshots(ListSnapshotsRequest request, CallSettings callSettings = null)

Lists snapshots.

Parameters
Name Description
request ListSnapshotsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ListSnapshotsResponse

The RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = SnapshotsV1Beta3Client.Create();
// Initialize request argument(s)
ListSnapshotsRequest request = new ListSnapshotsRequest
{
    ProjectId = "",
    Location = "",
    JobId = "",
};
// Make the request
ListSnapshotsResponse response = snapshotsV1Beta3Client.ListSnapshots(request);

ListSnapshotsAsync(ListSnapshotsRequest, CallSettings)

public virtual Task<ListSnapshotsResponse> ListSnapshotsAsync(ListSnapshotsRequest request, CallSettings callSettings = null)

Lists snapshots.

Parameters
Name Description
request ListSnapshotsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskListSnapshotsResponse

A Task containing the RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = await SnapshotsV1Beta3Client.CreateAsync();
// Initialize request argument(s)
ListSnapshotsRequest request = new ListSnapshotsRequest
{
    ProjectId = "",
    Location = "",
    JobId = "",
};
// Make the request
ListSnapshotsResponse response = await snapshotsV1Beta3Client.ListSnapshotsAsync(request);

ListSnapshotsAsync(ListSnapshotsRequest, CancellationToken)

public virtual Task<ListSnapshotsResponse> ListSnapshotsAsync(ListSnapshotsRequest request, CancellationToken cancellationToken)

Lists snapshots.

Parameters
Name Description
request ListSnapshotsRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskListSnapshotsResponse

A Task containing the RPC response.

Example
// Create client
SnapshotsV1Beta3Client snapshotsV1Beta3Client = await SnapshotsV1Beta3Client.CreateAsync();
// Initialize request argument(s)
ListSnapshotsRequest request = new ListSnapshotsRequest
{
    ProjectId = "",
    Location = "",
    JobId = "",
};
// Make the request
ListSnapshotsResponse response = await snapshotsV1Beta3Client.ListSnapshotsAsync(request);

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.

Remarks

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.