Class SnapshotsV1Beta3Client (1.0.0-beta03)

public abstract 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
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default SnapshotsV1Beta3 scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual SnapshotsV1Beta3.SnapshotsV1Beta3Client GrpcClient { get; }

The underlying gRPC SnapshotsV1Beta3 client

Property Value
TypeDescription
SnapshotsV1Beta3.SnapshotsV1Beta3Client

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
TypeDescription
SnapshotsV1Beta3Client

The created SnapshotsV1Beta3Client.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<SnapshotsV1Beta3Client>

The task representing the created SnapshotsV1Beta3Client.

DeleteSnapshot(DeleteSnapshotRequest, CallSettings)

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

Deletes a snapshot.

Parameters
NameDescription
requestDeleteSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<DeleteSnapshotResponse>

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
NameDescription
requestDeleteSnapshotRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<DeleteSnapshotResponse>

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
NameDescription
requestGetSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Snapshot>

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
NameDescription
requestGetSnapshotRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Snapshot>

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
NameDescription
requestListSnapshotsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSnapshotsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ListSnapshotsResponse>

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
NameDescription
requestListSnapshotsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ListSnapshotsResponse>

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
TypeDescription
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.