/// <summary>Snippet for DeleteSnapshotAsync</summary> public async Task DeleteSnapshotRequestObjectAsync() { // Snippet: DeleteSnapshotAsync(DeleteSnapshotRequest, CallSettings) // Additional: DeleteSnapshotAsync(DeleteSnapshotRequest, CancellationToken) // 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); // End snippet }
/// <summary>Snippet for ListSnapshotsAsync</summary> public async Task ListSnapshotsRequestObjectAsync() { // Snippet: ListSnapshotsAsync(ListSnapshotsRequest, CallSettings) // Additional: ListSnapshotsAsync(ListSnapshotsRequest, CancellationToken) // 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); // End snippet }