Migration Center v1 API - Class MigrationCenterClient (1.0.0)

public abstract class MigrationCenterClient

Reference documentation and code samples for the Migration Center v1 API class MigrationCenterClient.

MigrationCenter client wrapper, for convenient use.

Inheritance

object > MigrationCenterClient

Namespace

Google.Cloud.MigrationCenter.V1

Assembly

Google.Cloud.MigrationCenter.V1.dll

Remarks

Service describing handlers for resources.

Properties

AddAssetsToGroupOperationsClient

public virtual OperationsClient AddAssetsToGroupOperationsClient { get; }

The long-running operations client for AddAssetsToGroup.

Property Value
TypeDescription
OperationsClient

CreateGroupOperationsClient

public virtual OperationsClient CreateGroupOperationsClient { get; }

The long-running operations client for CreateGroup.

Property Value
TypeDescription
OperationsClient

CreateImportDataFileOperationsClient

public virtual OperationsClient CreateImportDataFileOperationsClient { get; }

The long-running operations client for CreateImportDataFile.

Property Value
TypeDescription
OperationsClient

CreateImportJobOperationsClient

public virtual OperationsClient CreateImportJobOperationsClient { get; }

The long-running operations client for CreateImportJob.

Property Value
TypeDescription
OperationsClient

CreatePreferenceSetOperationsClient

public virtual OperationsClient CreatePreferenceSetOperationsClient { get; }

The long-running operations client for CreatePreferenceSet.

Property Value
TypeDescription
OperationsClient

CreateReportConfigOperationsClient

public virtual OperationsClient CreateReportConfigOperationsClient { get; }

The long-running operations client for CreateReportConfig.

Property Value
TypeDescription
OperationsClient

CreateReportOperationsClient

public virtual OperationsClient CreateReportOperationsClient { get; }

The long-running operations client for CreateReport.

Property Value
TypeDescription
OperationsClient

CreateSourceOperationsClient

public virtual OperationsClient CreateSourceOperationsClient { get; }

The long-running operations client for CreateSource.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default MigrationCenter scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default MigrationCenter scopes are:

DeleteGroupOperationsClient

public virtual OperationsClient DeleteGroupOperationsClient { get; }

The long-running operations client for DeleteGroup.

Property Value
TypeDescription
OperationsClient

DeleteImportDataFileOperationsClient

public virtual OperationsClient DeleteImportDataFileOperationsClient { get; }

The long-running operations client for DeleteImportDataFile.

Property Value
TypeDescription
OperationsClient

DeleteImportJobOperationsClient

public virtual OperationsClient DeleteImportJobOperationsClient { get; }

The long-running operations client for DeleteImportJob.

Property Value
TypeDescription
OperationsClient

DeletePreferenceSetOperationsClient

public virtual OperationsClient DeletePreferenceSetOperationsClient { get; }

The long-running operations client for DeletePreferenceSet.

Property Value
TypeDescription
OperationsClient

DeleteReportConfigOperationsClient

public virtual OperationsClient DeleteReportConfigOperationsClient { get; }

The long-running operations client for DeleteReportConfig.

Property Value
TypeDescription
OperationsClient

DeleteReportOperationsClient

public virtual OperationsClient DeleteReportOperationsClient { get; }

The long-running operations client for DeleteReport.

Property Value
TypeDescription
OperationsClient

DeleteSourceOperationsClient

public virtual OperationsClient DeleteSourceOperationsClient { get; }

The long-running operations client for DeleteSource.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual MigrationCenter.MigrationCenterClient GrpcClient { get; }

The underlying gRPC MigrationCenter client

Property Value
TypeDescription
MigrationCenterMigrationCenterClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

RemoveAssetsFromGroupOperationsClient

public virtual OperationsClient RemoveAssetsFromGroupOperationsClient { get; }

The long-running operations client for RemoveAssetsFromGroup.

Property Value
TypeDescription
OperationsClient

RunImportJobOperationsClient

public virtual OperationsClient RunImportJobOperationsClient { get; }

The long-running operations client for RunImportJob.

Property Value
TypeDescription
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

UpdateGroupOperationsClient

public virtual OperationsClient UpdateGroupOperationsClient { get; }

The long-running operations client for UpdateGroup.

Property Value
TypeDescription
OperationsClient

UpdateImportJobOperationsClient

public virtual OperationsClient UpdateImportJobOperationsClient { get; }

The long-running operations client for UpdateImportJob.

Property Value
TypeDescription
OperationsClient

UpdatePreferenceSetOperationsClient

public virtual OperationsClient UpdatePreferenceSetOperationsClient { get; }

The long-running operations client for UpdatePreferenceSet.

Property Value
TypeDescription
OperationsClient

UpdateSettingsOperationsClient

public virtual OperationsClient UpdateSettingsOperationsClient { get; }

The long-running operations client for UpdateSettings.

Property Value
TypeDescription
OperationsClient

UpdateSourceOperationsClient

public virtual OperationsClient UpdateSourceOperationsClient { get; }

The long-running operations client for UpdateSource.

Property Value
TypeDescription
OperationsClient

ValidateImportJobOperationsClient

public virtual OperationsClient ValidateImportJobOperationsClient { get; }

The long-running operations client for ValidateImportJob.

Property Value
TypeDescription
OperationsClient

Methods

AddAssetsToGroup(AddAssetsToGroupRequest, CallSettings)

public virtual Operation<Group, OperationMetadata> AddAssetsToGroup(AddAssetsToGroupRequest request, CallSettings callSettings = null)

Adds assets to a group.

Parameters
NameDescription
requestAddAssetsToGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
AddAssetsToGroupRequest request = new AddAssetsToGroupRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
    Assets = new AssetList(),
    AllowExisting = false,
};
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.AddAssetsToGroup(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceAddAssetsToGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroup(GroupName, CallSettings)

public virtual Operation<Group, OperationMetadata> AddAssetsToGroup(GroupName group, CallSettings callSettings = null)

Adds assets to a group.

Parameters
NameDescription
groupGroupName

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.AddAssetsToGroup(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceAddAssetsToGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> AddAssetsToGroup(string group, CallSettings callSettings = null)

Adds assets to a group.

Parameters
NameDescription
groupstring

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.AddAssetsToGroup(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceAddAssetsToGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroupAsync(AddAssetsToGroupRequest, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> AddAssetsToGroupAsync(AddAssetsToGroupRequest request, CallSettings callSettings = null)

Adds assets to a group.

Parameters
NameDescription
requestAddAssetsToGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AddAssetsToGroupRequest request = new AddAssetsToGroupRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
    Assets = new AssetList(),
    AllowExisting = false,
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.AddAssetsToGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceAddAssetsToGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroupAsync(AddAssetsToGroupRequest, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> AddAssetsToGroupAsync(AddAssetsToGroupRequest request, CancellationToken cancellationToken)

Adds assets to a group.

Parameters
NameDescription
requestAddAssetsToGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AddAssetsToGroupRequest request = new AddAssetsToGroupRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
    Assets = new AssetList(),
    AllowExisting = false,
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.AddAssetsToGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceAddAssetsToGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroupAsync(GroupName, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> AddAssetsToGroupAsync(GroupName group, CallSettings callSettings = null)

Adds assets to a group.

Parameters
NameDescription
groupGroupName

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.AddAssetsToGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceAddAssetsToGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroupAsync(GroupName, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> AddAssetsToGroupAsync(GroupName group, CancellationToken cancellationToken)

Adds assets to a group.

Parameters
NameDescription
groupGroupName

Required. Group reference.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.AddAssetsToGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceAddAssetsToGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> AddAssetsToGroupAsync(string group, CallSettings callSettings = null)

Adds assets to a group.

Parameters
NameDescription
groupstring

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.AddAssetsToGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceAddAssetsToGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AddAssetsToGroupAsync(string, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> AddAssetsToGroupAsync(string group, CancellationToken cancellationToken)

Adds assets to a group.

Parameters
NameDescription
groupstring

Required. Group reference.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.AddAssetsToGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceAddAssetsToGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

AggregateAssetsValues(AggregateAssetsValuesRequest, CallSettings)

public virtual AggregateAssetsValuesResponse AggregateAssetsValues(AggregateAssetsValuesRequest request, CallSettings callSettings = null)

Aggregates the requested fields based on provided function.

Parameters
NameDescription
requestAggregateAssetsValuesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
AggregateAssetsValuesResponse

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
AggregateAssetsValuesRequest request = new AggregateAssetsValuesRequest
{
    Parent = "",
    Aggregations = { new Aggregation(), },
    Filter = "",
};
// Make the request
AggregateAssetsValuesResponse response = migrationCenterClient.AggregateAssetsValues(request);

AggregateAssetsValuesAsync(AggregateAssetsValuesRequest, CallSettings)

public virtual Task<AggregateAssetsValuesResponse> AggregateAssetsValuesAsync(AggregateAssetsValuesRequest request, CallSettings callSettings = null)

Aggregates the requested fields based on provided function.

Parameters
NameDescription
requestAggregateAssetsValuesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAggregateAssetsValuesResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AggregateAssetsValuesRequest request = new AggregateAssetsValuesRequest
{
    Parent = "",
    Aggregations = { new Aggregation(), },
    Filter = "",
};
// Make the request
AggregateAssetsValuesResponse response = await migrationCenterClient.AggregateAssetsValuesAsync(request);

AggregateAssetsValuesAsync(AggregateAssetsValuesRequest, CancellationToken)

public virtual Task<AggregateAssetsValuesResponse> AggregateAssetsValuesAsync(AggregateAssetsValuesRequest request, CancellationToken cancellationToken)

Aggregates the requested fields based on provided function.

Parameters
NameDescription
requestAggregateAssetsValuesRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskAggregateAssetsValuesResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AggregateAssetsValuesRequest request = new AggregateAssetsValuesRequest
{
    Parent = "",
    Aggregations = { new Aggregation(), },
    Filter = "",
};
// Make the request
AggregateAssetsValuesResponse response = await migrationCenterClient.AggregateAssetsValuesAsync(request);

BatchDeleteAssets(LocationName, IEnumerable<AssetName>, CallSettings)

public virtual void BatchDeleteAssets(LocationName parent, IEnumerable<AssetName> names, CallSettings callSettings = null)

Deletes list of Assets.

Parameters
NameDescription
parentLocationName

Required. Parent value for batch asset delete.

namesIEnumerableAssetName

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IEnumerable<AssetName> names = new AssetName[]
{
    AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
};
// Make the request
migrationCenterClient.BatchDeleteAssets(parent, names);

BatchDeleteAssets(BatchDeleteAssetsRequest, CallSettings)

public virtual void BatchDeleteAssets(BatchDeleteAssetsRequest request, CallSettings callSettings = null)

Deletes list of Assets.

Parameters
NameDescription
requestBatchDeleteAssetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
BatchDeleteAssetsRequest request = new BatchDeleteAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AssetNames =
    {
        AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    },
    AllowMissing = false,
};
// Make the request
migrationCenterClient.BatchDeleteAssets(request);

BatchDeleteAssets(string, IEnumerable<string>, CallSettings)

public virtual void BatchDeleteAssets(string parent, IEnumerable<string> names, CallSettings callSettings = null)

Deletes list of Assets.

Parameters
NameDescription
parentstring

Required. Parent value for batch asset delete.

namesIEnumerablestring

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IEnumerable<string> names = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]",
};
// Make the request
migrationCenterClient.BatchDeleteAssets(parent, names);

BatchDeleteAssetsAsync(LocationName, IEnumerable<AssetName>, CallSettings)

public virtual Task BatchDeleteAssetsAsync(LocationName parent, IEnumerable<AssetName> names, CallSettings callSettings = null)

Deletes list of Assets.

Parameters
NameDescription
parentLocationName

Required. Parent value for batch asset delete.

namesIEnumerableAssetName

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IEnumerable<AssetName> names = new AssetName[]
{
    AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
};
// Make the request
await migrationCenterClient.BatchDeleteAssetsAsync(parent, names);

BatchDeleteAssetsAsync(LocationName, IEnumerable<AssetName>, CancellationToken)

public virtual Task BatchDeleteAssetsAsync(LocationName parent, IEnumerable<AssetName> names, CancellationToken cancellationToken)

Deletes list of Assets.

Parameters
NameDescription
parentLocationName

Required. Parent value for batch asset delete.

namesIEnumerableAssetName

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IEnumerable<AssetName> names = new AssetName[]
{
    AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
};
// Make the request
await migrationCenterClient.BatchDeleteAssetsAsync(parent, names);

BatchDeleteAssetsAsync(BatchDeleteAssetsRequest, CallSettings)

public virtual Task BatchDeleteAssetsAsync(BatchDeleteAssetsRequest request, CallSettings callSettings = null)

Deletes list of Assets.

Parameters
NameDescription
requestBatchDeleteAssetsRequest

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

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteAssetsRequest request = new BatchDeleteAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AssetNames =
    {
        AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    },
    AllowMissing = false,
};
// Make the request
await migrationCenterClient.BatchDeleteAssetsAsync(request);

BatchDeleteAssetsAsync(BatchDeleteAssetsRequest, CancellationToken)

public virtual Task BatchDeleteAssetsAsync(BatchDeleteAssetsRequest request, CancellationToken cancellationToken)

Deletes list of Assets.

Parameters
NameDescription
requestBatchDeleteAssetsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
BatchDeleteAssetsRequest request = new BatchDeleteAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    AssetNames =
    {
        AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    },
    AllowMissing = false,
};
// Make the request
await migrationCenterClient.BatchDeleteAssetsAsync(request);

BatchDeleteAssetsAsync(string, IEnumerable<string>, CallSettings)

public virtual Task BatchDeleteAssetsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)

Deletes list of Assets.

Parameters
NameDescription
parentstring

Required. Parent value for batch asset delete.

namesIEnumerablestring

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IEnumerable<string> names = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]",
};
// Make the request
await migrationCenterClient.BatchDeleteAssetsAsync(parent, names);

BatchDeleteAssetsAsync(string, IEnumerable<string>, CancellationToken)

public virtual Task BatchDeleteAssetsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)

Deletes list of Assets.

Parameters
NameDescription
parentstring

Required. Parent value for batch asset delete.

namesIEnumerablestring

Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IEnumerable<string> names = new string[]
{
    "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]",
};
// Make the request
await migrationCenterClient.BatchDeleteAssetsAsync(parent, names);

BatchUpdateAssets(LocationName, IEnumerable<UpdateAssetRequest>, CallSettings)

public virtual BatchUpdateAssetsResponse BatchUpdateAssets(LocationName parent, IEnumerable<UpdateAssetRequest> requests, CallSettings callSettings = null)

Updates the parameters of a list of assets.

Parameters
NameDescription
parentLocationName

Required. Parent value for batch asset update.

requestsIEnumerableUpdateAssetRequest

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchUpdateAssetsResponse

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IEnumerable<UpdateAssetRequest> requests = new UpdateAssetRequest[]
{
    new UpdateAssetRequest(),
};
// Make the request
BatchUpdateAssetsResponse response = migrationCenterClient.BatchUpdateAssets(parent, requests);

BatchUpdateAssets(BatchUpdateAssetsRequest, CallSettings)

public virtual BatchUpdateAssetsResponse BatchUpdateAssets(BatchUpdateAssetsRequest request, CallSettings callSettings = null)

Updates the parameters of a list of assets.

Parameters
NameDescription
requestBatchUpdateAssetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchUpdateAssetsResponse

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
BatchUpdateAssetsRequest request = new BatchUpdateAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Requests =
    {
        new UpdateAssetRequest(),
    },
};
// Make the request
BatchUpdateAssetsResponse response = migrationCenterClient.BatchUpdateAssets(request);

BatchUpdateAssets(string, IEnumerable<UpdateAssetRequest>, CallSettings)

public virtual BatchUpdateAssetsResponse BatchUpdateAssets(string parent, IEnumerable<UpdateAssetRequest> requests, CallSettings callSettings = null)

Updates the parameters of a list of assets.

Parameters
NameDescription
parentstring

Required. Parent value for batch asset update.

requestsIEnumerableUpdateAssetRequest

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
BatchUpdateAssetsResponse

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IEnumerable<UpdateAssetRequest> requests = new UpdateAssetRequest[]
{
    new UpdateAssetRequest(),
};
// Make the request
BatchUpdateAssetsResponse response = migrationCenterClient.BatchUpdateAssets(parent, requests);

BatchUpdateAssetsAsync(LocationName, IEnumerable<UpdateAssetRequest>, CallSettings)

public virtual Task<BatchUpdateAssetsResponse> BatchUpdateAssetsAsync(LocationName parent, IEnumerable<UpdateAssetRequest> requests, CallSettings callSettings = null)

Updates the parameters of a list of assets.

Parameters
NameDescription
parentLocationName

Required. Parent value for batch asset update.

requestsIEnumerableUpdateAssetRequest

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBatchUpdateAssetsResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IEnumerable<UpdateAssetRequest> requests = new UpdateAssetRequest[]
{
    new UpdateAssetRequest(),
};
// Make the request
BatchUpdateAssetsResponse response = await migrationCenterClient.BatchUpdateAssetsAsync(parent, requests);

BatchUpdateAssetsAsync(LocationName, IEnumerable<UpdateAssetRequest>, CancellationToken)

public virtual Task<BatchUpdateAssetsResponse> BatchUpdateAssetsAsync(LocationName parent, IEnumerable<UpdateAssetRequest> requests, CancellationToken cancellationToken)

Updates the parameters of a list of assets.

Parameters
NameDescription
parentLocationName

Required. Parent value for batch asset update.

requestsIEnumerableUpdateAssetRequest

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBatchUpdateAssetsResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
IEnumerable<UpdateAssetRequest> requests = new UpdateAssetRequest[]
{
    new UpdateAssetRequest(),
};
// Make the request
BatchUpdateAssetsResponse response = await migrationCenterClient.BatchUpdateAssetsAsync(parent, requests);

BatchUpdateAssetsAsync(BatchUpdateAssetsRequest, CallSettings)

public virtual Task<BatchUpdateAssetsResponse> BatchUpdateAssetsAsync(BatchUpdateAssetsRequest request, CallSettings callSettings = null)

Updates the parameters of a list of assets.

Parameters
NameDescription
requestBatchUpdateAssetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBatchUpdateAssetsResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateAssetsRequest request = new BatchUpdateAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Requests =
    {
        new UpdateAssetRequest(),
    },
};
// Make the request
BatchUpdateAssetsResponse response = await migrationCenterClient.BatchUpdateAssetsAsync(request);

BatchUpdateAssetsAsync(BatchUpdateAssetsRequest, CancellationToken)

public virtual Task<BatchUpdateAssetsResponse> BatchUpdateAssetsAsync(BatchUpdateAssetsRequest request, CancellationToken cancellationToken)

Updates the parameters of a list of assets.

Parameters
NameDescription
requestBatchUpdateAssetsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBatchUpdateAssetsResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateAssetsRequest request = new BatchUpdateAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Requests =
    {
        new UpdateAssetRequest(),
    },
};
// Make the request
BatchUpdateAssetsResponse response = await migrationCenterClient.BatchUpdateAssetsAsync(request);

BatchUpdateAssetsAsync(string, IEnumerable<UpdateAssetRequest>, CallSettings)

public virtual Task<BatchUpdateAssetsResponse> BatchUpdateAssetsAsync(string parent, IEnumerable<UpdateAssetRequest> requests, CallSettings callSettings = null)

Updates the parameters of a list of assets.

Parameters
NameDescription
parentstring

Required. Parent value for batch asset update.

requestsIEnumerableUpdateAssetRequest

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskBatchUpdateAssetsResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IEnumerable<UpdateAssetRequest> requests = new UpdateAssetRequest[]
{
    new UpdateAssetRequest(),
};
// Make the request
BatchUpdateAssetsResponse response = await migrationCenterClient.BatchUpdateAssetsAsync(parent, requests);

BatchUpdateAssetsAsync(string, IEnumerable<UpdateAssetRequest>, CancellationToken)

public virtual Task<BatchUpdateAssetsResponse> BatchUpdateAssetsAsync(string parent, IEnumerable<UpdateAssetRequest> requests, CancellationToken cancellationToken)

Updates the parameters of a list of assets.

Parameters
NameDescription
parentstring

Required. Parent value for batch asset update.

requestsIEnumerableUpdateAssetRequest

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskBatchUpdateAssetsResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
IEnumerable<UpdateAssetRequest> requests = new UpdateAssetRequest[]
{
    new UpdateAssetRequest(),
};
// Make the request
BatchUpdateAssetsResponse response = await migrationCenterClient.BatchUpdateAssetsAsync(parent, requests);

Create()

public static MigrationCenterClient Create()

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

Returns
TypeDescription
MigrationCenterClient

The created MigrationCenterClient.

CreateAsync(CancellationToken)

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

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskMigrationCenterClient

The task representing the created MigrationCenterClient.

CreateGroup(LocationName, Group, string, CallSettings)

public virtual Operation<Group, OperationMetadata> CreateGroup(LocationName parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new group in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

groupGroup

Required. The group resource being created.

groupIdstring

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.CreateGroup(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroup(CreateGroupRequest, CallSettings)

public virtual Operation<Group, OperationMetadata> CreateGroup(CreateGroupRequest request, CallSettings callSettings = null)

Creates a new group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreateGroupRequest request = new CreateGroupRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GroupId = "",
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.CreateGroup(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroup(string, Group, string, CallSettings)

public virtual Operation<Group, OperationMetadata> CreateGroup(string parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new group in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

groupGroup

Required. The group resource being created.

groupIdstring

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.CreateGroup(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(LocationName, Group, string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(LocationName parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new group in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

groupGroup

Required. The group resource being created.

groupIdstring

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(LocationName, Group, string, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(LocationName parent, Group group, string groupId, CancellationToken cancellationToken)

Creates a new group in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

groupGroup

Required. The group resource being created.

groupIdstring

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(CreateGroupRequest, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(CreateGroupRequest request, CallSettings callSettings = null)

Creates a new group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateGroupRequest request = new CreateGroupRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GroupId = "",
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.CreateGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(CreateGroupRequest, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(CreateGroupRequest request, CancellationToken cancellationToken)

Creates a new group in a given project and location.

Parameters
NameDescription
requestCreateGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateGroupRequest request = new CreateGroupRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    GroupId = "",
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.CreateGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(string, Group, string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(string parent, Group group, string groupId, CallSettings callSettings = null)

Creates a new group in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

groupGroup

Required. The group resource being created.

groupIdstring

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateGroupAsync(string, Group, string, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> CreateGroupAsync(string parent, Group group, string groupId, CancellationToken cancellationToken)

Creates a new group in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

groupGroup

Required. The group resource being created.

groupIdstring

Required. User specified ID for the group. It will become the last component of the group name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Group group = new Group();
string groupId = "";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.CreateGroupAsync(parent, group, groupId);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

CreateImportDataFile(CreateImportDataFileRequest, CallSettings)

public virtual Operation<ImportDataFile, OperationMetadata> CreateImportDataFile(CreateImportDataFileRequest request, CallSettings callSettings = null)

Creates an import data file.

Parameters
NameDescription
requestCreateImportDataFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportDataFileOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreateImportDataFileRequest request = new CreateImportDataFileRequest
{
    ParentAsImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    ImportDataFileId = "",
    ImportDataFile = new ImportDataFile(),
    RequestId = "",
};
// Make the request
Operation<ImportDataFile, OperationMetadata> response = migrationCenterClient.CreateImportDataFile(request);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateImportDataFile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFile(ImportJobName, ImportDataFile, string, CallSettings)

public virtual Operation<ImportDataFile, OperationMetadata> CreateImportDataFile(ImportJobName parent, ImportDataFile importDataFile, string importDataFileId, CallSettings callSettings = null)

Creates an import data file.

Parameters
NameDescription
parentImportJobName

Required. Name of the parent of the ImportDataFile.

importDataFileImportDataFile

Required. The resource being created.

importDataFileIdstring

Required. The ID of the new data file.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportDataFileOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJobName parent = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
ImportDataFile importDataFile = new ImportDataFile();
string importDataFileId = "";
// Make the request
Operation<ImportDataFile, OperationMetadata> response = migrationCenterClient.CreateImportDataFile(parent, importDataFile, importDataFileId);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateImportDataFile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFile(string, ImportDataFile, string, CallSettings)

public virtual Operation<ImportDataFile, OperationMetadata> CreateImportDataFile(string parent, ImportDataFile importDataFile, string importDataFileId, CallSettings callSettings = null)

Creates an import data file.

Parameters
NameDescription
parentstring

Required. Name of the parent of the ImportDataFile.

importDataFileImportDataFile

Required. The resource being created.

importDataFileIdstring

Required. The ID of the new data file.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportDataFileOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
ImportDataFile importDataFile = new ImportDataFile();
string importDataFileId = "";
// Make the request
Operation<ImportDataFile, OperationMetadata> response = migrationCenterClient.CreateImportDataFile(parent, importDataFile, importDataFileId);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateImportDataFile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFileAsync(CreateImportDataFileRequest, CallSettings)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> CreateImportDataFileAsync(CreateImportDataFileRequest request, CallSettings callSettings = null)

Creates an import data file.

Parameters
NameDescription
requestCreateImportDataFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateImportDataFileRequest request = new CreateImportDataFileRequest
{
    ParentAsImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    ImportDataFileId = "",
    ImportDataFile = new ImportDataFile(),
    RequestId = "",
};
// Make the request
Operation<ImportDataFile, OperationMetadata> response = await migrationCenterClient.CreateImportDataFileAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportDataFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFileAsync(CreateImportDataFileRequest, CancellationToken)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> CreateImportDataFileAsync(CreateImportDataFileRequest request, CancellationToken cancellationToken)

Creates an import data file.

Parameters
NameDescription
requestCreateImportDataFileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateImportDataFileRequest request = new CreateImportDataFileRequest
{
    ParentAsImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    ImportDataFileId = "",
    ImportDataFile = new ImportDataFile(),
    RequestId = "",
};
// Make the request
Operation<ImportDataFile, OperationMetadata> response = await migrationCenterClient.CreateImportDataFileAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportDataFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFileAsync(ImportJobName, ImportDataFile, string, CallSettings)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> CreateImportDataFileAsync(ImportJobName parent, ImportDataFile importDataFile, string importDataFileId, CallSettings callSettings = null)

Creates an import data file.

Parameters
NameDescription
parentImportJobName

Required. Name of the parent of the ImportDataFile.

importDataFileImportDataFile

Required. The resource being created.

importDataFileIdstring

Required. The ID of the new data file.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName parent = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
ImportDataFile importDataFile = new ImportDataFile();
string importDataFileId = "";
// Make the request
Operation<ImportDataFile, OperationMetadata> response = await migrationCenterClient.CreateImportDataFileAsync(parent, importDataFile, importDataFileId);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportDataFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFileAsync(ImportJobName, ImportDataFile, string, CancellationToken)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> CreateImportDataFileAsync(ImportJobName parent, ImportDataFile importDataFile, string importDataFileId, CancellationToken cancellationToken)

Creates an import data file.

Parameters
NameDescription
parentImportJobName

Required. Name of the parent of the ImportDataFile.

importDataFileImportDataFile

Required. The resource being created.

importDataFileIdstring

Required. The ID of the new data file.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName parent = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
ImportDataFile importDataFile = new ImportDataFile();
string importDataFileId = "";
// Make the request
Operation<ImportDataFile, OperationMetadata> response = await migrationCenterClient.CreateImportDataFileAsync(parent, importDataFile, importDataFileId);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportDataFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFileAsync(string, ImportDataFile, string, CallSettings)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> CreateImportDataFileAsync(string parent, ImportDataFile importDataFile, string importDataFileId, CallSettings callSettings = null)

Creates an import data file.

Parameters
NameDescription
parentstring

Required. Name of the parent of the ImportDataFile.

importDataFileImportDataFile

Required. The resource being created.

importDataFileIdstring

Required. The ID of the new data file.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
ImportDataFile importDataFile = new ImportDataFile();
string importDataFileId = "";
// Make the request
Operation<ImportDataFile, OperationMetadata> response = await migrationCenterClient.CreateImportDataFileAsync(parent, importDataFile, importDataFileId);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportDataFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportDataFileAsync(string, ImportDataFile, string, CancellationToken)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> CreateImportDataFileAsync(string parent, ImportDataFile importDataFile, string importDataFileId, CancellationToken cancellationToken)

Creates an import data file.

Parameters
NameDescription
parentstring

Required. Name of the parent of the ImportDataFile.

importDataFileImportDataFile

Required. The resource being created.

importDataFileIdstring

Required. The ID of the new data file.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
ImportDataFile importDataFile = new ImportDataFile();
string importDataFileId = "";
// Make the request
Operation<ImportDataFile, OperationMetadata> response = await migrationCenterClient.CreateImportDataFileAsync(parent, importDataFile, importDataFileId);

// Poll until the returned long-running operation is complete
Operation<ImportDataFile, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportDataFile 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<ImportDataFile, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportDataFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportDataFile retrievedResult = retrievedResponse.Result;
}

CreateImportJob(LocationName, ImportJob, string, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> CreateImportJob(LocationName parent, ImportJob importJob, string importJobId, CallSettings callSettings = null)

Creates an import job.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

importJobImportJob

Required. The resource being created.

importJobIdstring

Required. ID of the import job.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ImportJob importJob = new ImportJob();
string importJobId = "";
// Make the request
Operation<ImportJob, OperationMetadata> response = migrationCenterClient.CreateImportJob(parent, importJob, importJobId);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateImportJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJob(CreateImportJobRequest, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> CreateImportJob(CreateImportJobRequest request, CallSettings callSettings = null)

Creates an import job.

Parameters
NameDescription
requestCreateImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreateImportJobRequest request = new CreateImportJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ImportJobId = "",
    ImportJob = new ImportJob(),
    RequestId = "",
};
// Make the request
Operation<ImportJob, OperationMetadata> response = migrationCenterClient.CreateImportJob(request);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateImportJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJob(string, ImportJob, string, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> CreateImportJob(string parent, ImportJob importJob, string importJobId, CallSettings callSettings = null)

Creates an import job.

Parameters
NameDescription
parentstring

Required. Value for parent.

importJobImportJob

Required. The resource being created.

importJobIdstring

Required. ID of the import job.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ImportJob importJob = new ImportJob();
string importJobId = "";
// Make the request
Operation<ImportJob, OperationMetadata> response = migrationCenterClient.CreateImportJob(parent, importJob, importJobId);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateImportJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJobAsync(LocationName, ImportJob, string, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> CreateImportJobAsync(LocationName parent, ImportJob importJob, string importJobId, CallSettings callSettings = null)

Creates an import job.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

importJobImportJob

Required. The resource being created.

importJobIdstring

Required. ID of the import job.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ImportJob importJob = new ImportJob();
string importJobId = "";
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.CreateImportJobAsync(parent, importJob, importJobId);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJobAsync(LocationName, ImportJob, string, CancellationToken)

public virtual Task<Operation<ImportJob, OperationMetadata>> CreateImportJobAsync(LocationName parent, ImportJob importJob, string importJobId, CancellationToken cancellationToken)

Creates an import job.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

importJobImportJob

Required. The resource being created.

importJobIdstring

Required. ID of the import job.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ImportJob importJob = new ImportJob();
string importJobId = "";
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.CreateImportJobAsync(parent, importJob, importJobId);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJobAsync(CreateImportJobRequest, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> CreateImportJobAsync(CreateImportJobRequest request, CallSettings callSettings = null)

Creates an import job.

Parameters
NameDescription
requestCreateImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateImportJobRequest request = new CreateImportJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ImportJobId = "",
    ImportJob = new ImportJob(),
    RequestId = "",
};
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.CreateImportJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJobAsync(CreateImportJobRequest, CancellationToken)

public virtual Task<Operation<ImportJob, OperationMetadata>> CreateImportJobAsync(CreateImportJobRequest request, CancellationToken cancellationToken)

Creates an import job.

Parameters
NameDescription
requestCreateImportJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateImportJobRequest request = new CreateImportJobRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ImportJobId = "",
    ImportJob = new ImportJob(),
    RequestId = "",
};
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.CreateImportJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJobAsync(string, ImportJob, string, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> CreateImportJobAsync(string parent, ImportJob importJob, string importJobId, CallSettings callSettings = null)

Creates an import job.

Parameters
NameDescription
parentstring

Required. Value for parent.

importJobImportJob

Required. The resource being created.

importJobIdstring

Required. ID of the import job.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ImportJob importJob = new ImportJob();
string importJobId = "";
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.CreateImportJobAsync(parent, importJob, importJobId);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreateImportJobAsync(string, ImportJob, string, CancellationToken)

public virtual Task<Operation<ImportJob, OperationMetadata>> CreateImportJobAsync(string parent, ImportJob importJob, string importJobId, CancellationToken cancellationToken)

Creates an import job.

Parameters
NameDescription
parentstring

Required. Value for parent.

importJobImportJob

Required. The resource being created.

importJobIdstring

Required. ID of the import job.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ImportJob importJob = new ImportJob();
string importJobId = "";
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.CreateImportJobAsync(parent, importJob, importJobId);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSet(LocationName, PreferenceSet, string, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> CreatePreferenceSet(LocationName parent, PreferenceSet preferenceSet, string preferenceSetId, CallSettings callSettings = null)

Creates a new preference set in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

preferenceSetPreferenceSet

Required. The preference set resource being created.

preferenceSetIdstring

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PreferenceSet preferenceSet = new PreferenceSet();
string preferenceSetId = "";
// Make the request
Operation<PreferenceSet, OperationMetadata> response = migrationCenterClient.CreatePreferenceSet(parent, preferenceSet, preferenceSetId);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreatePreferenceSet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSet(CreatePreferenceSetRequest, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> CreatePreferenceSet(CreatePreferenceSetRequest request, CallSettings callSettings = null)

Creates a new preference set in a given project and location.

Parameters
NameDescription
requestCreatePreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreatePreferenceSetRequest request = new CreatePreferenceSetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PreferenceSetId = "",
    PreferenceSet = new PreferenceSet(),
    RequestId = "",
};
// Make the request
Operation<PreferenceSet, OperationMetadata> response = migrationCenterClient.CreatePreferenceSet(request);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreatePreferenceSet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSet(string, PreferenceSet, string, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> CreatePreferenceSet(string parent, PreferenceSet preferenceSet, string preferenceSetId, CallSettings callSettings = null)

Creates a new preference set in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

preferenceSetPreferenceSet

Required. The preference set resource being created.

preferenceSetIdstring

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PreferenceSet preferenceSet = new PreferenceSet();
string preferenceSetId = "";
// Make the request
Operation<PreferenceSet, OperationMetadata> response = migrationCenterClient.CreatePreferenceSet(parent, preferenceSet, preferenceSetId);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreatePreferenceSet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSetAsync(LocationName, PreferenceSet, string, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> CreatePreferenceSetAsync(LocationName parent, PreferenceSet preferenceSet, string preferenceSetId, CallSettings callSettings = null)

Creates a new preference set in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

preferenceSetPreferenceSet

Required. The preference set resource being created.

preferenceSetIdstring

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PreferenceSet preferenceSet = new PreferenceSet();
string preferenceSetId = "";
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.CreatePreferenceSetAsync(parent, preferenceSet, preferenceSetId);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSetAsync(LocationName, PreferenceSet, string, CancellationToken)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> CreatePreferenceSetAsync(LocationName parent, PreferenceSet preferenceSet, string preferenceSetId, CancellationToken cancellationToken)

Creates a new preference set in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

preferenceSetPreferenceSet

Required. The preference set resource being created.

preferenceSetIdstring

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PreferenceSet preferenceSet = new PreferenceSet();
string preferenceSetId = "";
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.CreatePreferenceSetAsync(parent, preferenceSet, preferenceSetId);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSetAsync(CreatePreferenceSetRequest, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> CreatePreferenceSetAsync(CreatePreferenceSetRequest request, CallSettings callSettings = null)

Creates a new preference set in a given project and location.

Parameters
NameDescription
requestCreatePreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreatePreferenceSetRequest request = new CreatePreferenceSetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PreferenceSetId = "",
    PreferenceSet = new PreferenceSet(),
    RequestId = "",
};
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.CreatePreferenceSetAsync(request);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSetAsync(CreatePreferenceSetRequest, CancellationToken)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> CreatePreferenceSetAsync(CreatePreferenceSetRequest request, CancellationToken cancellationToken)

Creates a new preference set in a given project and location.

Parameters
NameDescription
requestCreatePreferenceSetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreatePreferenceSetRequest request = new CreatePreferenceSetRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    PreferenceSetId = "",
    PreferenceSet = new PreferenceSet(),
    RequestId = "",
};
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.CreatePreferenceSetAsync(request);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSetAsync(string, PreferenceSet, string, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> CreatePreferenceSetAsync(string parent, PreferenceSet preferenceSet, string preferenceSetId, CallSettings callSettings = null)

Creates a new preference set in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

preferenceSetPreferenceSet

Required. The preference set resource being created.

preferenceSetIdstring

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PreferenceSet preferenceSet = new PreferenceSet();
string preferenceSetId = "";
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.CreatePreferenceSetAsync(parent, preferenceSet, preferenceSetId);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreatePreferenceSetAsync(string, PreferenceSet, string, CancellationToken)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> CreatePreferenceSetAsync(string parent, PreferenceSet preferenceSet, string preferenceSetId, CancellationToken cancellationToken)

Creates a new preference set in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

preferenceSetPreferenceSet

Required. The preference set resource being created.

preferenceSetIdstring

Required. User specified ID for the preference set. It will become the last component of the preference set name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PreferenceSet preferenceSet = new PreferenceSet();
string preferenceSetId = "";
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.CreatePreferenceSetAsync(parent, preferenceSet, preferenceSetId);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

CreateReport(CreateReportRequest, CallSettings)

public virtual Operation<Report, OperationMetadata> CreateReport(CreateReportRequest request, CallSettings callSettings = null)

Creates a report.

Parameters
NameDescription
requestCreateReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreateReportRequest request = new CreateReportRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    ReportId = "",
    Report = new Report(),
    RequestId = "",
};
// Make the request
Operation<Report, OperationMetadata> response = migrationCenterClient.CreateReport(request);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReport(ReportConfigName, Report, string, CallSettings)

public virtual Operation<Report, OperationMetadata> CreateReport(ReportConfigName parent, Report report, string reportId, CallSettings callSettings = null)

Creates a report.

Parameters
NameDescription
parentReportConfigName

Required. Value for parent.

reportReport

Required. The report resource being created.

reportIdstring

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
Report report = new Report();
string reportId = "";
// Make the request
Operation<Report, OperationMetadata> response = migrationCenterClient.CreateReport(parent, report, reportId);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReport(string, Report, string, CallSettings)

public virtual Operation<Report, OperationMetadata> CreateReport(string parent, Report report, string reportId, CallSettings callSettings = null)

Creates a report.

Parameters
NameDescription
parentstring

Required. Value for parent.

reportReport

Required. The report resource being created.

reportIdstring

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
Report report = new Report();
string reportId = "";
// Make the request
Operation<Report, OperationMetadata> response = migrationCenterClient.CreateReport(parent, report, reportId);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateReport(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportAsync(CreateReportRequest, CallSettings)

public virtual Task<Operation<Report, OperationMetadata>> CreateReportAsync(CreateReportRequest request, CallSettings callSettings = null)

Creates a report.

Parameters
NameDescription
requestCreateReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateReportRequest request = new CreateReportRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    ReportId = "",
    Report = new Report(),
    RequestId = "",
};
// Make the request
Operation<Report, OperationMetadata> response = await migrationCenterClient.CreateReportAsync(request);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportAsync(CreateReportRequest, CancellationToken)

public virtual Task<Operation<Report, OperationMetadata>> CreateReportAsync(CreateReportRequest request, CancellationToken cancellationToken)

Creates a report.

Parameters
NameDescription
requestCreateReportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateReportRequest request = new CreateReportRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    ReportId = "",
    Report = new Report(),
    RequestId = "",
};
// Make the request
Operation<Report, OperationMetadata> response = await migrationCenterClient.CreateReportAsync(request);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportAsync(ReportConfigName, Report, string, CallSettings)

public virtual Task<Operation<Report, OperationMetadata>> CreateReportAsync(ReportConfigName parent, Report report, string reportId, CallSettings callSettings = null)

Creates a report.

Parameters
NameDescription
parentReportConfigName

Required. Value for parent.

reportReport

Required. The report resource being created.

reportIdstring

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
Report report = new Report();
string reportId = "";
// Make the request
Operation<Report, OperationMetadata> response = await migrationCenterClient.CreateReportAsync(parent, report, reportId);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportAsync(ReportConfigName, Report, string, CancellationToken)

public virtual Task<Operation<Report, OperationMetadata>> CreateReportAsync(ReportConfigName parent, Report report, string reportId, CancellationToken cancellationToken)

Creates a report.

Parameters
NameDescription
parentReportConfigName

Required. Value for parent.

reportReport

Required. The report resource being created.

reportIdstring

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
Report report = new Report();
string reportId = "";
// Make the request
Operation<Report, OperationMetadata> response = await migrationCenterClient.CreateReportAsync(parent, report, reportId);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportAsync(string, Report, string, CallSettings)

public virtual Task<Operation<Report, OperationMetadata>> CreateReportAsync(string parent, Report report, string reportId, CallSettings callSettings = null)

Creates a report.

Parameters
NameDescription
parentstring

Required. Value for parent.

reportReport

Required. The report resource being created.

reportIdstring

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
Report report = new Report();
string reportId = "";
// Make the request
Operation<Report, OperationMetadata> response = await migrationCenterClient.CreateReportAsync(parent, report, reportId);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportAsync(string, Report, string, CancellationToken)

public virtual Task<Operation<Report, OperationMetadata>> CreateReportAsync(string parent, Report report, string reportId, CancellationToken cancellationToken)

Creates a report.

Parameters
NameDescription
parentstring

Required. Value for parent.

reportReport

Required. The report resource being created.

reportIdstring

Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: a-z?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
Report report = new Report();
string reportId = "";
// Make the request
Operation<Report, OperationMetadata> response = await migrationCenterClient.CreateReportAsync(parent, report, reportId);

// Poll until the returned long-running operation is complete
Operation<Report, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Report 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<Report, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Report retrievedResult = retrievedResponse.Result;
}

CreateReportConfig(LocationName, ReportConfig, string, CallSettings)

public virtual Operation<ReportConfig, OperationMetadata> CreateReportConfig(LocationName parent, ReportConfig reportConfig, string reportConfigId, CallSettings callSettings = null)

Creates a report configuration.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

reportConfigReportConfig

Required. The report config set resource being created.

reportConfigIdstring

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportConfigOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ReportConfig reportConfig = new ReportConfig();
string reportConfigId = "";
// Make the request
Operation<ReportConfig, OperationMetadata> response = migrationCenterClient.CreateReportConfig(parent, reportConfig, reportConfigId);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateReportConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfig(CreateReportConfigRequest, CallSettings)

public virtual Operation<ReportConfig, OperationMetadata> CreateReportConfig(CreateReportConfigRequest request, CallSettings callSettings = null)

Creates a report configuration.

Parameters
NameDescription
requestCreateReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportConfigOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreateReportConfigRequest request = new CreateReportConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReportConfigId = "",
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
Operation<ReportConfig, OperationMetadata> response = migrationCenterClient.CreateReportConfig(request);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateReportConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfig(string, ReportConfig, string, CallSettings)

public virtual Operation<ReportConfig, OperationMetadata> CreateReportConfig(string parent, ReportConfig reportConfig, string reportConfigId, CallSettings callSettings = null)

Creates a report configuration.

Parameters
NameDescription
parentstring

Required. Value for parent.

reportConfigReportConfig

Required. The report config set resource being created.

reportConfigIdstring

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportConfigOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ReportConfig reportConfig = new ReportConfig();
string reportConfigId = "";
// Make the request
Operation<ReportConfig, OperationMetadata> response = migrationCenterClient.CreateReportConfig(parent, reportConfig, reportConfigId);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateReportConfig(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfigAsync(LocationName, ReportConfig, string, CallSettings)

public virtual Task<Operation<ReportConfig, OperationMetadata>> CreateReportConfigAsync(LocationName parent, ReportConfig reportConfig, string reportConfigId, CallSettings callSettings = null)

Creates a report configuration.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

reportConfigReportConfig

Required. The report config set resource being created.

reportConfigIdstring

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ReportConfig reportConfig = new ReportConfig();
string reportConfigId = "";
// Make the request
Operation<ReportConfig, OperationMetadata> response = await migrationCenterClient.CreateReportConfigAsync(parent, reportConfig, reportConfigId);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfigAsync(LocationName, ReportConfig, string, CancellationToken)

public virtual Task<Operation<ReportConfig, OperationMetadata>> CreateReportConfigAsync(LocationName parent, ReportConfig reportConfig, string reportConfigId, CancellationToken cancellationToken)

Creates a report configuration.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

reportConfigReportConfig

Required. The report config set resource being created.

reportConfigIdstring

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ReportConfig reportConfig = new ReportConfig();
string reportConfigId = "";
// Make the request
Operation<ReportConfig, OperationMetadata> response = await migrationCenterClient.CreateReportConfigAsync(parent, reportConfig, reportConfigId);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfigAsync(CreateReportConfigRequest, CallSettings)

public virtual Task<Operation<ReportConfig, OperationMetadata>> CreateReportConfigAsync(CreateReportConfigRequest request, CallSettings callSettings = null)

Creates a report configuration.

Parameters
NameDescription
requestCreateReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateReportConfigRequest request = new CreateReportConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReportConfigId = "",
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
Operation<ReportConfig, OperationMetadata> response = await migrationCenterClient.CreateReportConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfigAsync(CreateReportConfigRequest, CancellationToken)

public virtual Task<Operation<ReportConfig, OperationMetadata>> CreateReportConfigAsync(CreateReportConfigRequest request, CancellationToken cancellationToken)

Creates a report configuration.

Parameters
NameDescription
requestCreateReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateReportConfigRequest request = new CreateReportConfigRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ReportConfigId = "",
    ReportConfig = new ReportConfig(),
    RequestId = "",
};
// Make the request
Operation<ReportConfig, OperationMetadata> response = await migrationCenterClient.CreateReportConfigAsync(request);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfigAsync(string, ReportConfig, string, CallSettings)

public virtual Task<Operation<ReportConfig, OperationMetadata>> CreateReportConfigAsync(string parent, ReportConfig reportConfig, string reportConfigId, CallSettings callSettings = null)

Creates a report configuration.

Parameters
NameDescription
parentstring

Required. Value for parent.

reportConfigReportConfig

Required. The report config set resource being created.

reportConfigIdstring

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ReportConfig reportConfig = new ReportConfig();
string reportConfigId = "";
// Make the request
Operation<ReportConfig, OperationMetadata> response = await migrationCenterClient.CreateReportConfigAsync(parent, reportConfig, reportConfigId);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateReportConfigAsync(string, ReportConfig, string, CancellationToken)

public virtual Task<Operation<ReportConfig, OperationMetadata>> CreateReportConfigAsync(string parent, ReportConfig reportConfig, string reportConfigId, CancellationToken cancellationToken)

Creates a report configuration.

Parameters
NameDescription
parentstring

Required. Value for parent.

reportConfigReportConfig

Required. The report config set resource being created.

reportConfigIdstring

Required. User specified ID for the report config. It will become the last component of the report config name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: a-z?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
ReportConfig reportConfig = new ReportConfig();
string reportConfigId = "";
// Make the request
Operation<ReportConfig, OperationMetadata> response = await migrationCenterClient.CreateReportConfigAsync(parent, reportConfig, reportConfigId);

// Poll until the returned long-running operation is complete
Operation<ReportConfig, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReportConfig 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<ReportConfig, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateReportConfigAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReportConfig retrievedResult = retrievedResponse.Result;
}

CreateSource(LocationName, Source, string, CallSettings)

public virtual Operation<Source, OperationMetadata> CreateSource(LocationName parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new source in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

sourceSource

Required. The resource being created.

sourceIdstring

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = migrationCenterClient.CreateSource(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSource(CreateSourceRequest, CallSettings)

public virtual Operation<Source, OperationMetadata> CreateSource(CreateSourceRequest request, CallSettings callSettings = null)

Creates a new source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SourceId = "",
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = migrationCenterClient.CreateSource(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSource(string, Source, string, CallSettings)

public virtual Operation<Source, OperationMetadata> CreateSource(string parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new source in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

sourceSource

Required. The resource being created.

sourceIdstring

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = migrationCenterClient.CreateSource(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceCreateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(LocationName, Source, string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(LocationName parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new source in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

sourceSource

Required. The resource being created.

sourceIdstring

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(LocationName, Source, string, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(LocationName parent, Source source, string sourceId, CancellationToken cancellationToken)

Creates a new source in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Value for parent.

sourceSource

Required. The resource being created.

sourceIdstring

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(CreateSourceRequest, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(CreateSourceRequest request, CallSettings callSettings = null)

Creates a new source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SourceId = "",
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.CreateSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(CreateSourceRequest, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(CreateSourceRequest request, CancellationToken cancellationToken)

Creates a new source in a given project and location.

Parameters
NameDescription
requestCreateSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
CreateSourceRequest request = new CreateSourceRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    SourceId = "",
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.CreateSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(string, Source, string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(string parent, Source source, string sourceId, CallSettings callSettings = null)

Creates a new source in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

sourceSource

Required. The resource being created.

sourceIdstring

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

CreateSourceAsync(string, Source, string, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> CreateSourceAsync(string parent, Source source, string sourceId, CancellationToken cancellationToken)

Creates a new source in a given project and location.

Parameters
NameDescription
parentstring

Required. Value for parent.

sourceSource

Required. The resource being created.

sourceIdstring

Required. User specified ID for the source. It will become the last component of the source name. The ID must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The ID must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Source source = new Source();
string sourceId = "";
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.CreateSourceAsync(parent, source, sourceId);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceCreateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

DeleteAsset(AssetName, CallSettings)

public virtual void DeleteAsset(AssetName name, CallSettings callSettings = null)

Deletes an asset.

Parameters
NameDescription
nameAssetName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
migrationCenterClient.DeleteAsset(name);

DeleteAsset(DeleteAssetRequest, CallSettings)

public virtual void DeleteAsset(DeleteAssetRequest request, CallSettings callSettings = null)

Deletes an asset.

Parameters
NameDescription
requestDeleteAssetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteAssetRequest request = new DeleteAssetRequest
{
    AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    RequestId = "",
};
// Make the request
migrationCenterClient.DeleteAsset(request);

DeleteAsset(string, CallSettings)

public virtual void DeleteAsset(string name, CallSettings callSettings = null)

Deletes an asset.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
migrationCenterClient.DeleteAsset(name);

DeleteAssetAsync(AssetName, CallSettings)

public virtual Task DeleteAssetAsync(AssetName name, CallSettings callSettings = null)

Deletes an asset.

Parameters
NameDescription
nameAssetName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
await migrationCenterClient.DeleteAssetAsync(name);

DeleteAssetAsync(AssetName, CancellationToken)

public virtual Task DeleteAssetAsync(AssetName name, CancellationToken cancellationToken)

Deletes an asset.

Parameters
NameDescription
nameAssetName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
await migrationCenterClient.DeleteAssetAsync(name);

DeleteAssetAsync(DeleteAssetRequest, CallSettings)

public virtual Task DeleteAssetAsync(DeleteAssetRequest request, CallSettings callSettings = null)

Deletes an asset.

Parameters
NameDescription
requestDeleteAssetRequest

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

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteAssetRequest request = new DeleteAssetRequest
{
    AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    RequestId = "",
};
// Make the request
await migrationCenterClient.DeleteAssetAsync(request);

DeleteAssetAsync(DeleteAssetRequest, CancellationToken)

public virtual Task DeleteAssetAsync(DeleteAssetRequest request, CancellationToken cancellationToken)

Deletes an asset.

Parameters
NameDescription
requestDeleteAssetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteAssetRequest request = new DeleteAssetRequest
{
    AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    RequestId = "",
};
// Make the request
await migrationCenterClient.DeleteAssetAsync(request);

DeleteAssetAsync(string, CallSettings)

public virtual Task DeleteAssetAsync(string name, CallSettings callSettings = null)

Deletes an asset.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
await migrationCenterClient.DeleteAssetAsync(name);

DeleteAssetAsync(string, CancellationToken)

public virtual Task DeleteAssetAsync(string name, CancellationToken cancellationToken)

Deletes an asset.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
await migrationCenterClient.DeleteAssetAsync(name);

DeleteGroup(DeleteGroupRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGroup(DeleteGroupRequest request, CallSettings callSettings = null)

Deletes a group.

Parameters
NameDescription
requestDeleteGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteGroup(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 = migrationCenterClient.PollOnceDeleteGroup(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;
}

DeleteGroup(GroupName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGroup(GroupName name, CallSettings callSettings = null)

Deletes a group.

Parameters
NameDescription
nameGroupName

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteGroup(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 = migrationCenterClient.PollOnceDeleteGroup(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;
}

DeleteGroup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteGroup(string name, CallSettings callSettings = null)

Deletes a group.

Parameters
NameDescription
namestring

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteGroup(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 = migrationCenterClient.PollOnceDeleteGroup(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;
}

DeleteGroupAsync(DeleteGroupRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(DeleteGroupRequest request, CallSettings callSettings = null)

Deletes a group.

Parameters
NameDescription
requestDeleteGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteGroupAsync(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 migrationCenterClient.PollOnceDeleteGroupAsync(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;
}

DeleteGroupAsync(DeleteGroupRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(DeleteGroupRequest request, CancellationToken cancellationToken)

Deletes a group.

Parameters
NameDescription
requestDeleteGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteGroupRequest request = new DeleteGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteGroupAsync(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 migrationCenterClient.PollOnceDeleteGroupAsync(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;
}

DeleteGroupAsync(GroupName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(GroupName name, CallSettings callSettings = null)

Deletes a group.

Parameters
NameDescription
nameGroupName

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteGroupAsync(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 migrationCenterClient.PollOnceDeleteGroupAsync(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;
}

DeleteGroupAsync(GroupName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(GroupName name, CancellationToken cancellationToken)

Deletes a group.

Parameters
NameDescription
nameGroupName

Required. Name of the group resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteGroupAsync(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 migrationCenterClient.PollOnceDeleteGroupAsync(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;
}

DeleteGroupAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(string name, CallSettings callSettings = null)

Deletes a group.

Parameters
NameDescription
namestring

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteGroupAsync(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 migrationCenterClient.PollOnceDeleteGroupAsync(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;
}

DeleteGroupAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteGroupAsync(string name, CancellationToken cancellationToken)

Deletes a group.

Parameters
NameDescription
namestring

Required. Name of the group resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteGroupAsync(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 migrationCenterClient.PollOnceDeleteGroupAsync(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;
}

DeleteImportDataFile(DeleteImportDataFileRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteImportDataFile(DeleteImportDataFileRequest request, CallSettings callSettings = null)

Delete an import data file.

Parameters
NameDescription
requestDeleteImportDataFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteImportDataFileRequest request = new DeleteImportDataFileRequest
{
    ImportDataFileName = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteImportDataFile(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 = migrationCenterClient.PollOnceDeleteImportDataFile(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;
}

DeleteImportDataFile(ImportDataFileName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteImportDataFile(ImportDataFileName name, CallSettings callSettings = null)

Delete an import data file.

Parameters
NameDescription
nameImportDataFileName

Required. Name of the ImportDataFile to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportDataFileName name = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteImportDataFile(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 = migrationCenterClient.PollOnceDeleteImportDataFile(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;
}

DeleteImportDataFile(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteImportDataFile(string name, CallSettings callSettings = null)

Delete an import data file.

Parameters
NameDescription
namestring

Required. Name of the ImportDataFile to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]/importDataFiles/[IMPORT_DATA_FILE]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteImportDataFile(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 = migrationCenterClient.PollOnceDeleteImportDataFile(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;
}

DeleteImportDataFileAsync(DeleteImportDataFileRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportDataFileAsync(DeleteImportDataFileRequest request, CallSettings callSettings = null)

Delete an import data file.

Parameters
NameDescription
requestDeleteImportDataFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteImportDataFileRequest request = new DeleteImportDataFileRequest
{
    ImportDataFileName = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportDataFileAsync(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 migrationCenterClient.PollOnceDeleteImportDataFileAsync(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;
}

DeleteImportDataFileAsync(DeleteImportDataFileRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportDataFileAsync(DeleteImportDataFileRequest request, CancellationToken cancellationToken)

Delete an import data file.

Parameters
NameDescription
requestDeleteImportDataFileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteImportDataFileRequest request = new DeleteImportDataFileRequest
{
    ImportDataFileName = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportDataFileAsync(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 migrationCenterClient.PollOnceDeleteImportDataFileAsync(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;
}

DeleteImportDataFileAsync(ImportDataFileName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportDataFileAsync(ImportDataFileName name, CallSettings callSettings = null)

Delete an import data file.

Parameters
NameDescription
nameImportDataFileName

Required. Name of the ImportDataFile to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportDataFileName name = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportDataFileAsync(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 migrationCenterClient.PollOnceDeleteImportDataFileAsync(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;
}

DeleteImportDataFileAsync(ImportDataFileName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportDataFileAsync(ImportDataFileName name, CancellationToken cancellationToken)

Delete an import data file.

Parameters
NameDescription
nameImportDataFileName

Required. Name of the ImportDataFile to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportDataFileName name = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportDataFileAsync(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 migrationCenterClient.PollOnceDeleteImportDataFileAsync(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;
}

DeleteImportDataFileAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportDataFileAsync(string name, CallSettings callSettings = null)

Delete an import data file.

Parameters
NameDescription
namestring

Required. Name of the ImportDataFile to delete.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]/importDataFiles/[IMPORT_DATA_FILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportDataFileAsync(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 migrationCenterClient.PollOnceDeleteImportDataFileAsync(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;
}

DeleteImportDataFileAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportDataFileAsync(string name, CancellationToken cancellationToken)

Delete an import data file.

Parameters
NameDescription
namestring

Required. Name of the ImportDataFile to delete.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]/importDataFiles/[IMPORT_DATA_FILE]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportDataFileAsync(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 migrationCenterClient.PollOnceDeleteImportDataFileAsync(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;
}

DeleteImportJob(DeleteImportJobRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteImportJob(DeleteImportJobRequest request, CallSettings callSettings = null)

Deletes an import job.

Parameters
NameDescription
requestDeleteImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteImportJobRequest request = new DeleteImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteImportJob(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 = migrationCenterClient.PollOnceDeleteImportJob(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;
}

DeleteImportJob(ImportJobName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteImportJob(ImportJobName name, CallSettings callSettings = null)

Deletes an import job.

Parameters
NameDescription
nameImportJobName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteImportJob(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 = migrationCenterClient.PollOnceDeleteImportJob(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;
}

DeleteImportJob(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteImportJob(string name, CallSettings callSettings = null)

Deletes an import job.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteImportJob(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 = migrationCenterClient.PollOnceDeleteImportJob(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;
}

DeleteImportJobAsync(DeleteImportJobRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportJobAsync(DeleteImportJobRequest request, CallSettings callSettings = null)

Deletes an import job.

Parameters
NameDescription
requestDeleteImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteImportJobRequest request = new DeleteImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportJobAsync(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 migrationCenterClient.PollOnceDeleteImportJobAsync(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;
}

DeleteImportJobAsync(DeleteImportJobRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportJobAsync(DeleteImportJobRequest request, CancellationToken cancellationToken)

Deletes an import job.

Parameters
NameDescription
requestDeleteImportJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteImportJobRequest request = new DeleteImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportJobAsync(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 migrationCenterClient.PollOnceDeleteImportJobAsync(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;
}

DeleteImportJobAsync(ImportJobName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportJobAsync(ImportJobName name, CallSettings callSettings = null)

Deletes an import job.

Parameters
NameDescription
nameImportJobName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportJobAsync(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 migrationCenterClient.PollOnceDeleteImportJobAsync(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;
}

DeleteImportJobAsync(ImportJobName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportJobAsync(ImportJobName name, CancellationToken cancellationToken)

Deletes an import job.

Parameters
NameDescription
nameImportJobName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportJobAsync(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 migrationCenterClient.PollOnceDeleteImportJobAsync(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;
}

DeleteImportJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportJobAsync(string name, CallSettings callSettings = null)

Deletes an import job.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportJobAsync(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 migrationCenterClient.PollOnceDeleteImportJobAsync(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;
}

DeleteImportJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteImportJobAsync(string name, CancellationToken cancellationToken)

Deletes an import job.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteImportJobAsync(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 migrationCenterClient.PollOnceDeleteImportJobAsync(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;
}

DeletePreferenceSet(DeletePreferenceSetRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeletePreferenceSet(DeletePreferenceSetRequest request, CallSettings callSettings = null)

Deletes a preference set.

Parameters
NameDescription
requestDeletePreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeletePreferenceSetRequest request = new DeletePreferenceSetRequest
{
    PreferenceSetName = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeletePreferenceSet(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 = migrationCenterClient.PollOnceDeletePreferenceSet(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;
}

DeletePreferenceSet(PreferenceSetName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeletePreferenceSet(PreferenceSetName name, CallSettings callSettings = null)

Deletes a preference set.

Parameters
NameDescription
namePreferenceSetName

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
PreferenceSetName name = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeletePreferenceSet(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 = migrationCenterClient.PollOnceDeletePreferenceSet(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;
}

DeletePreferenceSet(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeletePreferenceSet(string name, CallSettings callSettings = null)

Deletes a preference set.

Parameters
NameDescription
namestring

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/preferenceSets/[PREFERENCE_SET]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeletePreferenceSet(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 = migrationCenterClient.PollOnceDeletePreferenceSet(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;
}

DeletePreferenceSetAsync(DeletePreferenceSetRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePreferenceSetAsync(DeletePreferenceSetRequest request, CallSettings callSettings = null)

Deletes a preference set.

Parameters
NameDescription
requestDeletePreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeletePreferenceSetRequest request = new DeletePreferenceSetRequest
{
    PreferenceSetName = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeletePreferenceSetAsync(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 migrationCenterClient.PollOnceDeletePreferenceSetAsync(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;
}

DeletePreferenceSetAsync(DeletePreferenceSetRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePreferenceSetAsync(DeletePreferenceSetRequest request, CancellationToken cancellationToken)

Deletes a preference set.

Parameters
NameDescription
requestDeletePreferenceSetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeletePreferenceSetRequest request = new DeletePreferenceSetRequest
{
    PreferenceSetName = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeletePreferenceSetAsync(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 migrationCenterClient.PollOnceDeletePreferenceSetAsync(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;
}

DeletePreferenceSetAsync(PreferenceSetName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePreferenceSetAsync(PreferenceSetName name, CallSettings callSettings = null)

Deletes a preference set.

Parameters
NameDescription
namePreferenceSetName

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
PreferenceSetName name = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeletePreferenceSetAsync(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 migrationCenterClient.PollOnceDeletePreferenceSetAsync(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;
}

DeletePreferenceSetAsync(PreferenceSetName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePreferenceSetAsync(PreferenceSetName name, CancellationToken cancellationToken)

Deletes a preference set.

Parameters
NameDescription
namePreferenceSetName

Required. Name of the group resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
PreferenceSetName name = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeletePreferenceSetAsync(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 migrationCenterClient.PollOnceDeletePreferenceSetAsync(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;
}

DeletePreferenceSetAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePreferenceSetAsync(string name, CallSettings callSettings = null)

Deletes a preference set.

Parameters
NameDescription
namestring

Required. Name of the group resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/preferenceSets/[PREFERENCE_SET]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeletePreferenceSetAsync(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 migrationCenterClient.PollOnceDeletePreferenceSetAsync(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;
}

DeletePreferenceSetAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeletePreferenceSetAsync(string name, CancellationToken cancellationToken)

Deletes a preference set.

Parameters
NameDescription
namestring

Required. Name of the group resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/preferenceSets/[PREFERENCE_SET]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeletePreferenceSetAsync(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 migrationCenterClient.PollOnceDeletePreferenceSetAsync(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;
}

DeleteReport(DeleteReportRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReport(DeleteReportRequest request, CallSettings callSettings = null)

Deletes a Report.

Parameters
NameDescription
requestDeleteReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteReportRequest request = new DeleteReportRequest
{
    ReportName = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteReport(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 = migrationCenterClient.PollOnceDeleteReport(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;
}

DeleteReport(ReportName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReport(ReportName name, CallSettings callSettings = null)

Deletes a Report.

Parameters
NameDescription
nameReportName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportName name = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteReport(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 = migrationCenterClient.PollOnceDeleteReport(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;
}

DeleteReport(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReport(string name, CallSettings callSettings = null)

Deletes a Report.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reports/[REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteReport(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 = migrationCenterClient.PollOnceDeleteReport(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;
}

DeleteReportAsync(DeleteReportRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportAsync(DeleteReportRequest request, CallSettings callSettings = null)

Deletes a Report.

Parameters
NameDescription
requestDeleteReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteReportRequest request = new DeleteReportRequest
{
    ReportName = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportAsync(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 migrationCenterClient.PollOnceDeleteReportAsync(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;
}

DeleteReportAsync(DeleteReportRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportAsync(DeleteReportRequest request, CancellationToken cancellationToken)

Deletes a Report.

Parameters
NameDescription
requestDeleteReportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteReportRequest request = new DeleteReportRequest
{
    ReportName = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportAsync(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 migrationCenterClient.PollOnceDeleteReportAsync(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;
}

DeleteReportAsync(ReportName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportAsync(ReportName name, CallSettings callSettings = null)

Deletes a Report.

Parameters
NameDescription
nameReportName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportName name = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportAsync(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 migrationCenterClient.PollOnceDeleteReportAsync(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;
}

DeleteReportAsync(ReportName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportAsync(ReportName name, CancellationToken cancellationToken)

Deletes a Report.

Parameters
NameDescription
nameReportName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportName name = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportAsync(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 migrationCenterClient.PollOnceDeleteReportAsync(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;
}

DeleteReportAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportAsync(string name, CallSettings callSettings = null)

Deletes a Report.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reports/[REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportAsync(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 migrationCenterClient.PollOnceDeleteReportAsync(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;
}

DeleteReportAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportAsync(string name, CancellationToken cancellationToken)

Deletes a Report.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reports/[REPORT]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportAsync(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 migrationCenterClient.PollOnceDeleteReportAsync(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;
}

DeleteReportConfig(DeleteReportConfigRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReportConfig(DeleteReportConfigRequest request, CallSettings callSettings = null)

Deletes a ReportConfig.

Parameters
NameDescription
requestDeleteReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteReportConfigRequest request = new DeleteReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteReportConfig(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 = migrationCenterClient.PollOnceDeleteReportConfig(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;
}

DeleteReportConfig(ReportConfigName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReportConfig(ReportConfigName name, CallSettings callSettings = null)

Deletes a ReportConfig.

Parameters
NameDescription
nameReportConfigName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteReportConfig(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 = migrationCenterClient.PollOnceDeleteReportConfig(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;
}

DeleteReportConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteReportConfig(string name, CallSettings callSettings = null)

Deletes a ReportConfig.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteReportConfig(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 = migrationCenterClient.PollOnceDeleteReportConfig(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;
}

DeleteReportConfigAsync(DeleteReportConfigRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportConfigAsync(DeleteReportConfigRequest request, CallSettings callSettings = null)

Deletes a ReportConfig.

Parameters
NameDescription
requestDeleteReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteReportConfigRequest request = new DeleteReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportConfigAsync(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 migrationCenterClient.PollOnceDeleteReportConfigAsync(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;
}

DeleteReportConfigAsync(DeleteReportConfigRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportConfigAsync(DeleteReportConfigRequest request, CancellationToken cancellationToken)

Deletes a ReportConfig.

Parameters
NameDescription
requestDeleteReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteReportConfigRequest request = new DeleteReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportConfigAsync(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 migrationCenterClient.PollOnceDeleteReportConfigAsync(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;
}

DeleteReportConfigAsync(ReportConfigName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportConfigAsync(ReportConfigName name, CallSettings callSettings = null)

Deletes a ReportConfig.

Parameters
NameDescription
nameReportConfigName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportConfigAsync(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 migrationCenterClient.PollOnceDeleteReportConfigAsync(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;
}

DeleteReportConfigAsync(ReportConfigName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportConfigAsync(ReportConfigName name, CancellationToken cancellationToken)

Deletes a ReportConfig.

Parameters
NameDescription
nameReportConfigName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportConfigAsync(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 migrationCenterClient.PollOnceDeleteReportConfigAsync(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;
}

DeleteReportConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportConfigAsync(string name, CallSettings callSettings = null)

Deletes a ReportConfig.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportConfigAsync(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 migrationCenterClient.PollOnceDeleteReportConfigAsync(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;
}

DeleteReportConfigAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteReportConfigAsync(string name, CancellationToken cancellationToken)

Deletes a ReportConfig.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteReportConfigAsync(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 migrationCenterClient.PollOnceDeleteReportConfigAsync(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;
}

DeleteSource(DeleteSourceRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSource(DeleteSourceRequest request, CallSettings callSettings = null)

Deletes a source.

Parameters
NameDescription
requestDeleteSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteSource(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 = migrationCenterClient.PollOnceDeleteSource(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;
}

DeleteSource(SourceName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSource(SourceName name, CallSettings callSettings = null)

Deletes a source.

Parameters
NameDescription
nameSourceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteSource(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 = migrationCenterClient.PollOnceDeleteSource(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;
}

DeleteSource(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteSource(string name, CallSettings callSettings = null)

Deletes a source.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.DeleteSource(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 = migrationCenterClient.PollOnceDeleteSource(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;
}

DeleteSourceAsync(DeleteSourceRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(DeleteSourceRequest request, CallSettings callSettings = null)

Deletes a source.

Parameters
NameDescription
requestDeleteSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteSourceAsync(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 migrationCenterClient.PollOnceDeleteSourceAsync(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;
}

DeleteSourceAsync(DeleteSourceRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(DeleteSourceRequest request, CancellationToken cancellationToken)

Deletes a source.

Parameters
NameDescription
requestDeleteSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
DeleteSourceRequest request = new DeleteSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteSourceAsync(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 migrationCenterClient.PollOnceDeleteSourceAsync(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;
}

DeleteSourceAsync(SourceName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(SourceName name, CallSettings callSettings = null)

Deletes a source.

Parameters
NameDescription
nameSourceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteSourceAsync(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 migrationCenterClient.PollOnceDeleteSourceAsync(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;
}

DeleteSourceAsync(SourceName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(SourceName name, CancellationToken cancellationToken)

Deletes a source.

Parameters
NameDescription
nameSourceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteSourceAsync(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 migrationCenterClient.PollOnceDeleteSourceAsync(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;
}

DeleteSourceAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(string name, CallSettings callSettings = null)

Deletes a source.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteSourceAsync(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 migrationCenterClient.PollOnceDeleteSourceAsync(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;
}

DeleteSourceAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteSourceAsync(string name, CancellationToken cancellationToken)

Deletes a source.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.DeleteSourceAsync(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 migrationCenterClient.PollOnceDeleteSourceAsync(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;
}

GetAsset(AssetName, CallSettings)

public virtual Asset GetAsset(AssetName name, CallSettings callSettings = null)

Gets the details of an asset.

Parameters
NameDescription
nameAssetName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Asset

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Asset response = migrationCenterClient.GetAsset(name);

GetAsset(GetAssetRequest, CallSettings)

public virtual Asset GetAsset(GetAssetRequest request, CallSettings callSettings = null)

Gets the details of an asset.

Parameters
NameDescription
requestGetAssetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Asset

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetAssetRequest request = new GetAssetRequest
{
    AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    View = AssetView.Unspecified,
};
// Make the request
Asset response = migrationCenterClient.GetAsset(request);

GetAsset(string, CallSettings)

public virtual Asset GetAsset(string name, CallSettings callSettings = null)

Gets the details of an asset.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Asset

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Asset response = migrationCenterClient.GetAsset(name);

GetAssetAsync(AssetName, CallSettings)

public virtual Task<Asset> GetAssetAsync(AssetName name, CallSettings callSettings = null)

Gets the details of an asset.

Parameters
NameDescription
nameAssetName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Asset response = await migrationCenterClient.GetAssetAsync(name);

GetAssetAsync(AssetName, CancellationToken)

public virtual Task<Asset> GetAssetAsync(AssetName name, CancellationToken cancellationToken)

Gets the details of an asset.

Parameters
NameDescription
nameAssetName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Asset response = await migrationCenterClient.GetAssetAsync(name);

GetAssetAsync(GetAssetRequest, CallSettings)

public virtual Task<Asset> GetAssetAsync(GetAssetRequest request, CallSettings callSettings = null)

Gets the details of an asset.

Parameters
NameDescription
requestGetAssetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetAssetRequest request = new GetAssetRequest
{
    AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    View = AssetView.Unspecified,
};
// Make the request
Asset response = await migrationCenterClient.GetAssetAsync(request);

GetAssetAsync(GetAssetRequest, CancellationToken)

public virtual Task<Asset> GetAssetAsync(GetAssetRequest request, CancellationToken cancellationToken)

Gets the details of an asset.

Parameters
NameDescription
requestGetAssetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetAssetRequest request = new GetAssetRequest
{
    AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
    View = AssetView.Unspecified,
};
// Make the request
Asset response = await migrationCenterClient.GetAssetAsync(request);

GetAssetAsync(string, CallSettings)

public virtual Task<Asset> GetAssetAsync(string name, CallSettings callSettings = null)

Gets the details of an asset.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Asset response = await migrationCenterClient.GetAssetAsync(name);

GetAssetAsync(string, CancellationToken)

public virtual Task<Asset> GetAssetAsync(string name, CancellationToken cancellationToken)

Gets the details of an asset.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Asset response = await migrationCenterClient.GetAssetAsync(name);

GetErrorFrame(ErrorFrameName, CallSettings)

public virtual ErrorFrame GetErrorFrame(ErrorFrameName name, CallSettings callSettings = null)

Gets the details of an error frame.

Parameters
NameDescription
nameErrorFrameName

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ErrorFrame

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ErrorFrameName name = ErrorFrameName.FromProjectLocationSourceErrorFrame("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]");
// Make the request
ErrorFrame response = migrationCenterClient.GetErrorFrame(name);

GetErrorFrame(GetErrorFrameRequest, CallSettings)

public virtual ErrorFrame GetErrorFrame(GetErrorFrameRequest request, CallSettings callSettings = null)

Gets the details of an error frame.

Parameters
NameDescription
requestGetErrorFrameRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ErrorFrame

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetErrorFrameRequest request = new GetErrorFrameRequest
{
    ErrorFrameName = ErrorFrameName.FromProjectLocationSourceErrorFrame("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]"),
    View = ErrorFrameView.Unspecified,
};
// Make the request
ErrorFrame response = migrationCenterClient.GetErrorFrame(request);

GetErrorFrame(string, CallSettings)

public virtual ErrorFrame GetErrorFrame(string name, CallSettings callSettings = null)

Gets the details of an error frame.

Parameters
NameDescription
namestring

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ErrorFrame

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/errorFrames/[ERROR_FRAME]";
// Make the request
ErrorFrame response = migrationCenterClient.GetErrorFrame(name);

GetErrorFrameAsync(ErrorFrameName, CallSettings)

public virtual Task<ErrorFrame> GetErrorFrameAsync(ErrorFrameName name, CallSettings callSettings = null)

Gets the details of an error frame.

Parameters
NameDescription
nameErrorFrameName

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskErrorFrame

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ErrorFrameName name = ErrorFrameName.FromProjectLocationSourceErrorFrame("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]");
// Make the request
ErrorFrame response = await migrationCenterClient.GetErrorFrameAsync(name);

GetErrorFrameAsync(ErrorFrameName, CancellationToken)

public virtual Task<ErrorFrame> GetErrorFrameAsync(ErrorFrameName name, CancellationToken cancellationToken)

Gets the details of an error frame.

Parameters
NameDescription
nameErrorFrameName

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskErrorFrame

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ErrorFrameName name = ErrorFrameName.FromProjectLocationSourceErrorFrame("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]");
// Make the request
ErrorFrame response = await migrationCenterClient.GetErrorFrameAsync(name);

GetErrorFrameAsync(GetErrorFrameRequest, CallSettings)

public virtual Task<ErrorFrame> GetErrorFrameAsync(GetErrorFrameRequest request, CallSettings callSettings = null)

Gets the details of an error frame.

Parameters
NameDescription
requestGetErrorFrameRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskErrorFrame

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetErrorFrameRequest request = new GetErrorFrameRequest
{
    ErrorFrameName = ErrorFrameName.FromProjectLocationSourceErrorFrame("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]"),
    View = ErrorFrameView.Unspecified,
};
// Make the request
ErrorFrame response = await migrationCenterClient.GetErrorFrameAsync(request);

GetErrorFrameAsync(GetErrorFrameRequest, CancellationToken)

public virtual Task<ErrorFrame> GetErrorFrameAsync(GetErrorFrameRequest request, CancellationToken cancellationToken)

Gets the details of an error frame.

Parameters
NameDescription
requestGetErrorFrameRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskErrorFrame

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetErrorFrameRequest request = new GetErrorFrameRequest
{
    ErrorFrameName = ErrorFrameName.FromProjectLocationSourceErrorFrame("[PROJECT]", "[LOCATION]", "[SOURCE]", "[ERROR_FRAME]"),
    View = ErrorFrameView.Unspecified,
};
// Make the request
ErrorFrame response = await migrationCenterClient.GetErrorFrameAsync(request);

GetErrorFrameAsync(string, CallSettings)

public virtual Task<ErrorFrame> GetErrorFrameAsync(string name, CallSettings callSettings = null)

Gets the details of an error frame.

Parameters
NameDescription
namestring

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskErrorFrame

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/errorFrames/[ERROR_FRAME]";
// Make the request
ErrorFrame response = await migrationCenterClient.GetErrorFrameAsync(name);

GetErrorFrameAsync(string, CancellationToken)

public virtual Task<ErrorFrame> GetErrorFrameAsync(string name, CancellationToken cancellationToken)

Gets the details of an error frame.

Parameters
NameDescription
namestring

Required. The name of the frame to retrieve. Format: projects/{project}/locations/{location}/sources/{source}/errorFrames/{error_frame}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskErrorFrame

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]/errorFrames/[ERROR_FRAME]";
// Make the request
ErrorFrame response = await migrationCenterClient.GetErrorFrameAsync(name);

GetGroup(GetGroupRequest, CallSettings)

public virtual Group GetGroup(GetGroupRequest request, CallSettings callSettings = null)

Gets the details of a group.

Parameters
NameDescription
requestGetGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = migrationCenterClient.GetGroup(request);

GetGroup(GroupName, CallSettings)

public virtual Group GetGroup(GroupName name, CallSettings callSettings = null)

Gets the details of a group.

Parameters
NameDescription
nameGroupName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = migrationCenterClient.GetGroup(name);

GetGroup(string, CallSettings)

public virtual Group GetGroup(string name, CallSettings callSettings = null)

Gets the details of a group.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Group

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Group response = migrationCenterClient.GetGroup(name);

GetGroupAsync(GetGroupRequest, CallSettings)

public virtual Task<Group> GetGroupAsync(GetGroupRequest request, CallSettings callSettings = null)

Gets the details of a group.

Parameters
NameDescription
requestGetGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = await migrationCenterClient.GetGroupAsync(request);

GetGroupAsync(GetGroupRequest, CancellationToken)

public virtual Task<Group> GetGroupAsync(GetGroupRequest request, CancellationToken cancellationToken)

Gets the details of a group.

Parameters
NameDescription
requestGetGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetGroupRequest request = new GetGroupRequest
{
    GroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
};
// Make the request
Group response = await migrationCenterClient.GetGroupAsync(request);

GetGroupAsync(GroupName, CallSettings)

public virtual Task<Group> GetGroupAsync(GroupName name, CallSettings callSettings = null)

Gets the details of a group.

Parameters
NameDescription
nameGroupName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = await migrationCenterClient.GetGroupAsync(name);

GetGroupAsync(GroupName, CancellationToken)

public virtual Task<Group> GetGroupAsync(GroupName name, CancellationToken cancellationToken)

Gets the details of a group.

Parameters
NameDescription
nameGroupName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName name = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Group response = await migrationCenterClient.GetGroupAsync(name);

GetGroupAsync(string, CallSettings)

public virtual Task<Group> GetGroupAsync(string name, CallSettings callSettings = null)

Gets the details of a group.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Group response = await migrationCenterClient.GetGroupAsync(name);

GetGroupAsync(string, CancellationToken)

public virtual Task<Group> GetGroupAsync(string name, CancellationToken cancellationToken)

Gets the details of a group.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskGroup

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Group response = await migrationCenterClient.GetGroupAsync(name);

GetImportDataFile(GetImportDataFileRequest, CallSettings)

public virtual ImportDataFile GetImportDataFile(GetImportDataFileRequest request, CallSettings callSettings = null)

Gets an import data file.

Parameters
NameDescription
requestGetImportDataFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportDataFile

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetImportDataFileRequest request = new GetImportDataFileRequest
{
    ImportDataFileName = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]"),
};
// Make the request
ImportDataFile response = migrationCenterClient.GetImportDataFile(request);

GetImportDataFile(ImportDataFileName, CallSettings)

public virtual ImportDataFile GetImportDataFile(ImportDataFileName name, CallSettings callSettings = null)

Gets an import data file.

Parameters
NameDescription
nameImportDataFileName

Required. Name of the ImportDataFile.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportDataFile

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportDataFileName name = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
// Make the request
ImportDataFile response = migrationCenterClient.GetImportDataFile(name);

GetImportDataFile(string, CallSettings)

public virtual ImportDataFile GetImportDataFile(string name, CallSettings callSettings = null)

Gets an import data file.

Parameters
NameDescription
namestring

Required. Name of the ImportDataFile.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportDataFile

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]/importDataFiles/[IMPORT_DATA_FILE]";
// Make the request
ImportDataFile response = migrationCenterClient.GetImportDataFile(name);

GetImportDataFileAsync(GetImportDataFileRequest, CallSettings)

public virtual Task<ImportDataFile> GetImportDataFileAsync(GetImportDataFileRequest request, CallSettings callSettings = null)

Gets an import data file.

Parameters
NameDescription
requestGetImportDataFileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportDataFile

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetImportDataFileRequest request = new GetImportDataFileRequest
{
    ImportDataFileName = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]"),
};
// Make the request
ImportDataFile response = await migrationCenterClient.GetImportDataFileAsync(request);

GetImportDataFileAsync(GetImportDataFileRequest, CancellationToken)

public virtual Task<ImportDataFile> GetImportDataFileAsync(GetImportDataFileRequest request, CancellationToken cancellationToken)

Gets an import data file.

Parameters
NameDescription
requestGetImportDataFileRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskImportDataFile

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetImportDataFileRequest request = new GetImportDataFileRequest
{
    ImportDataFileName = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]"),
};
// Make the request
ImportDataFile response = await migrationCenterClient.GetImportDataFileAsync(request);

GetImportDataFileAsync(ImportDataFileName, CallSettings)

public virtual Task<ImportDataFile> GetImportDataFileAsync(ImportDataFileName name, CallSettings callSettings = null)

Gets an import data file.

Parameters
NameDescription
nameImportDataFileName

Required. Name of the ImportDataFile.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportDataFile

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportDataFileName name = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
// Make the request
ImportDataFile response = await migrationCenterClient.GetImportDataFileAsync(name);

GetImportDataFileAsync(ImportDataFileName, CancellationToken)

public virtual Task<ImportDataFile> GetImportDataFileAsync(ImportDataFileName name, CancellationToken cancellationToken)

Gets an import data file.

Parameters
NameDescription
nameImportDataFileName

Required. Name of the ImportDataFile.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskImportDataFile

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportDataFileName name = ImportDataFileName.FromProjectLocationImportJobImportDataFile("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]", "[IMPORT_DATA_FILE]");
// Make the request
ImportDataFile response = await migrationCenterClient.GetImportDataFileAsync(name);

GetImportDataFileAsync(string, CallSettings)

public virtual Task<ImportDataFile> GetImportDataFileAsync(string name, CallSettings callSettings = null)

Gets an import data file.

Parameters
NameDescription
namestring

Required. Name of the ImportDataFile.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportDataFile

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]/importDataFiles/[IMPORT_DATA_FILE]";
// Make the request
ImportDataFile response = await migrationCenterClient.GetImportDataFileAsync(name);

GetImportDataFileAsync(string, CancellationToken)

public virtual Task<ImportDataFile> GetImportDataFileAsync(string name, CancellationToken cancellationToken)

Gets an import data file.

Parameters
NameDescription
namestring

Required. Name of the ImportDataFile.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskImportDataFile

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]/importDataFiles/[IMPORT_DATA_FILE]";
// Make the request
ImportDataFile response = await migrationCenterClient.GetImportDataFileAsync(name);

GetImportJob(GetImportJobRequest, CallSettings)

public virtual ImportJob GetImportJob(GetImportJobRequest request, CallSettings callSettings = null)

Gets the details of an import job.

Parameters
NameDescription
requestGetImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportJob

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetImportJobRequest request = new GetImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    View = ImportJobView.Unspecified,
};
// Make the request
ImportJob response = migrationCenterClient.GetImportJob(request);

GetImportJob(ImportJobName, CallSettings)

public virtual ImportJob GetImportJob(ImportJobName name, CallSettings callSettings = null)

Gets the details of an import job.

Parameters
NameDescription
nameImportJobName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportJob

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
ImportJob response = migrationCenterClient.GetImportJob(name);

GetImportJob(string, CallSettings)

public virtual ImportJob GetImportJob(string name, CallSettings callSettings = null)

Gets the details of an import job.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportJob

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
ImportJob response = migrationCenterClient.GetImportJob(name);

GetImportJobAsync(GetImportJobRequest, CallSettings)

public virtual Task<ImportJob> GetImportJobAsync(GetImportJobRequest request, CallSettings callSettings = null)

Gets the details of an import job.

Parameters
NameDescription
requestGetImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportJob

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetImportJobRequest request = new GetImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    View = ImportJobView.Unspecified,
};
// Make the request
ImportJob response = await migrationCenterClient.GetImportJobAsync(request);

GetImportJobAsync(GetImportJobRequest, CancellationToken)

public virtual Task<ImportJob> GetImportJobAsync(GetImportJobRequest request, CancellationToken cancellationToken)

Gets the details of an import job.

Parameters
NameDescription
requestGetImportJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskImportJob

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetImportJobRequest request = new GetImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    View = ImportJobView.Unspecified,
};
// Make the request
ImportJob response = await migrationCenterClient.GetImportJobAsync(request);

GetImportJobAsync(ImportJobName, CallSettings)

public virtual Task<ImportJob> GetImportJobAsync(ImportJobName name, CallSettings callSettings = null)

Gets the details of an import job.

Parameters
NameDescription
nameImportJobName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportJob

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
ImportJob response = await migrationCenterClient.GetImportJobAsync(name);

GetImportJobAsync(ImportJobName, CancellationToken)

public virtual Task<ImportJob> GetImportJobAsync(ImportJobName name, CancellationToken cancellationToken)

Gets the details of an import job.

Parameters
NameDescription
nameImportJobName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskImportJob

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
ImportJob response = await migrationCenterClient.GetImportJobAsync(name);

GetImportJobAsync(string, CallSettings)

public virtual Task<ImportJob> GetImportJobAsync(string name, CallSettings callSettings = null)

Gets the details of an import job.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskImportJob

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
ImportJob response = await migrationCenterClient.GetImportJobAsync(name);

GetImportJobAsync(string, CancellationToken)

public virtual Task<ImportJob> GetImportJobAsync(string name, CancellationToken cancellationToken)

Gets the details of an import job.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskImportJob

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
ImportJob response = await migrationCenterClient.GetImportJobAsync(name);

GetPreferenceSet(GetPreferenceSetRequest, CallSettings)

public virtual PreferenceSet GetPreferenceSet(GetPreferenceSetRequest request, CallSettings callSettings = null)

Gets the details of a preference set.

Parameters
NameDescription
requestGetPreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PreferenceSet

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetPreferenceSetRequest request = new GetPreferenceSetRequest
{
    PreferenceSetName = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]"),
};
// Make the request
PreferenceSet response = migrationCenterClient.GetPreferenceSet(request);

GetPreferenceSet(PreferenceSetName, CallSettings)

public virtual PreferenceSet GetPreferenceSet(PreferenceSetName name, CallSettings callSettings = null)

Gets the details of a preference set.

Parameters
NameDescription
namePreferenceSetName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PreferenceSet

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
PreferenceSetName name = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
// Make the request
PreferenceSet response = migrationCenterClient.GetPreferenceSet(name);

GetPreferenceSet(string, CallSettings)

public virtual PreferenceSet GetPreferenceSet(string name, CallSettings callSettings = null)

Gets the details of a preference set.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PreferenceSet

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/preferenceSets/[PREFERENCE_SET]";
// Make the request
PreferenceSet response = migrationCenterClient.GetPreferenceSet(name);

GetPreferenceSetAsync(GetPreferenceSetRequest, CallSettings)

public virtual Task<PreferenceSet> GetPreferenceSetAsync(GetPreferenceSetRequest request, CallSettings callSettings = null)

Gets the details of a preference set.

Parameters
NameDescription
requestGetPreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPreferenceSet

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetPreferenceSetRequest request = new GetPreferenceSetRequest
{
    PreferenceSetName = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]"),
};
// Make the request
PreferenceSet response = await migrationCenterClient.GetPreferenceSetAsync(request);

GetPreferenceSetAsync(GetPreferenceSetRequest, CancellationToken)

public virtual Task<PreferenceSet> GetPreferenceSetAsync(GetPreferenceSetRequest request, CancellationToken cancellationToken)

Gets the details of a preference set.

Parameters
NameDescription
requestGetPreferenceSetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPreferenceSet

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetPreferenceSetRequest request = new GetPreferenceSetRequest
{
    PreferenceSetName = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]"),
};
// Make the request
PreferenceSet response = await migrationCenterClient.GetPreferenceSetAsync(request);

GetPreferenceSetAsync(PreferenceSetName, CallSettings)

public virtual Task<PreferenceSet> GetPreferenceSetAsync(PreferenceSetName name, CallSettings callSettings = null)

Gets the details of a preference set.

Parameters
NameDescription
namePreferenceSetName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPreferenceSet

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
PreferenceSetName name = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
// Make the request
PreferenceSet response = await migrationCenterClient.GetPreferenceSetAsync(name);

GetPreferenceSetAsync(PreferenceSetName, CancellationToken)

public virtual Task<PreferenceSet> GetPreferenceSetAsync(PreferenceSetName name, CancellationToken cancellationToken)

Gets the details of a preference set.

Parameters
NameDescription
namePreferenceSetName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPreferenceSet

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
PreferenceSetName name = PreferenceSetName.FromProjectLocationPreferenceSet("[PROJECT]", "[LOCATION]", "[PREFERENCE_SET]");
// Make the request
PreferenceSet response = await migrationCenterClient.GetPreferenceSetAsync(name);

GetPreferenceSetAsync(string, CallSettings)

public virtual Task<PreferenceSet> GetPreferenceSetAsync(string name, CallSettings callSettings = null)

Gets the details of a preference set.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPreferenceSet

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/preferenceSets/[PREFERENCE_SET]";
// Make the request
PreferenceSet response = await migrationCenterClient.GetPreferenceSetAsync(name);

GetPreferenceSetAsync(string, CancellationToken)

public virtual Task<PreferenceSet> GetPreferenceSetAsync(string name, CancellationToken cancellationToken)

Gets the details of a preference set.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskPreferenceSet

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/preferenceSets/[PREFERENCE_SET]";
// Make the request
PreferenceSet response = await migrationCenterClient.GetPreferenceSetAsync(name);

GetReport(GetReportRequest, CallSettings)

public virtual Report GetReport(GetReportRequest request, CallSettings callSettings = null)

Gets details of a single Report.

Parameters
NameDescription
requestGetReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Report

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetReportRequest request = new GetReportRequest
{
    ReportName = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]"),
    View = ReportView.Unspecified,
};
// Make the request
Report response = migrationCenterClient.GetReport(request);

GetReport(ReportName, CallSettings)

public virtual Report GetReport(ReportName name, CallSettings callSettings = null)

Gets details of a single Report.

Parameters
NameDescription
nameReportName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Report

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportName name = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
// Make the request
Report response = migrationCenterClient.GetReport(name);

GetReport(string, CallSettings)

public virtual Report GetReport(string name, CallSettings callSettings = null)

Gets details of a single Report.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Report

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reports/[REPORT]";
// Make the request
Report response = migrationCenterClient.GetReport(name);

GetReportAsync(GetReportRequest, CallSettings)

public virtual Task<Report> GetReportAsync(GetReportRequest request, CallSettings callSettings = null)

Gets details of a single Report.

Parameters
NameDescription
requestGetReportRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReport

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetReportRequest request = new GetReportRequest
{
    ReportName = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]"),
    View = ReportView.Unspecified,
};
// Make the request
Report response = await migrationCenterClient.GetReportAsync(request);

GetReportAsync(GetReportRequest, CancellationToken)

public virtual Task<Report> GetReportAsync(GetReportRequest request, CancellationToken cancellationToken)

Gets details of a single Report.

Parameters
NameDescription
requestGetReportRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReport

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetReportRequest request = new GetReportRequest
{
    ReportName = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]"),
    View = ReportView.Unspecified,
};
// Make the request
Report response = await migrationCenterClient.GetReportAsync(request);

GetReportAsync(ReportName, CallSettings)

public virtual Task<Report> GetReportAsync(ReportName name, CallSettings callSettings = null)

Gets details of a single Report.

Parameters
NameDescription
nameReportName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReport

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportName name = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
// Make the request
Report response = await migrationCenterClient.GetReportAsync(name);

GetReportAsync(ReportName, CancellationToken)

public virtual Task<Report> GetReportAsync(ReportName name, CancellationToken cancellationToken)

Gets details of a single Report.

Parameters
NameDescription
nameReportName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReport

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportName name = ReportName.FromProjectLocationReportConfigReport("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]", "[REPORT]");
// Make the request
Report response = await migrationCenterClient.GetReportAsync(name);

GetReportAsync(string, CallSettings)

public virtual Task<Report> GetReportAsync(string name, CallSettings callSettings = null)

Gets details of a single Report.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReport

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reports/[REPORT]";
// Make the request
Report response = await migrationCenterClient.GetReportAsync(name);

GetReportAsync(string, CancellationToken)

public virtual Task<Report> GetReportAsync(string name, CancellationToken cancellationToken)

Gets details of a single Report.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReport

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]/reports/[REPORT]";
// Make the request
Report response = await migrationCenterClient.GetReportAsync(name);

GetReportConfig(GetReportConfigRequest, CallSettings)

public virtual ReportConfig GetReportConfig(GetReportConfigRequest request, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
NameDescription
requestGetReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportConfig

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetReportConfigRequest request = new GetReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
};
// Make the request
ReportConfig response = migrationCenterClient.GetReportConfig(request);

GetReportConfig(ReportConfigName, CallSettings)

public virtual ReportConfig GetReportConfig(ReportConfigName name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
NameDescription
nameReportConfigName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportConfig

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
ReportConfig response = migrationCenterClient.GetReportConfig(name);

GetReportConfig(string, CallSettings)

public virtual ReportConfig GetReportConfig(string name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportConfig

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
ReportConfig response = migrationCenterClient.GetReportConfig(name);

GetReportConfigAsync(GetReportConfigRequest, CallSettings)

public virtual Task<ReportConfig> GetReportConfigAsync(GetReportConfigRequest request, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
NameDescription
requestGetReportConfigRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetReportConfigRequest request = new GetReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
};
// Make the request
ReportConfig response = await migrationCenterClient.GetReportConfigAsync(request);

GetReportConfigAsync(GetReportConfigRequest, CancellationToken)

public virtual Task<ReportConfig> GetReportConfigAsync(GetReportConfigRequest request, CancellationToken cancellationToken)

Gets details of a single ReportConfig.

Parameters
NameDescription
requestGetReportConfigRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetReportConfigRequest request = new GetReportConfigRequest
{
    ReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
};
// Make the request
ReportConfig response = await migrationCenterClient.GetReportConfigAsync(request);

GetReportConfigAsync(ReportConfigName, CallSettings)

public virtual Task<ReportConfig> GetReportConfigAsync(ReportConfigName name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
NameDescription
nameReportConfigName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
ReportConfig response = await migrationCenterClient.GetReportConfigAsync(name);

GetReportConfigAsync(ReportConfigName, CancellationToken)

public virtual Task<ReportConfig> GetReportConfigAsync(ReportConfigName name, CancellationToken cancellationToken)

Gets details of a single ReportConfig.

Parameters
NameDescription
nameReportConfigName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName name = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
ReportConfig response = await migrationCenterClient.GetReportConfigAsync(name);

GetReportConfigAsync(string, CallSettings)

public virtual Task<ReportConfig> GetReportConfigAsync(string name, CallSettings callSettings = null)

Gets details of a single ReportConfig.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
ReportConfig response = await migrationCenterClient.GetReportConfigAsync(name);

GetReportConfigAsync(string, CancellationToken)

public virtual Task<ReportConfig> GetReportConfigAsync(string name, CancellationToken cancellationToken)

Gets details of a single ReportConfig.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReportConfig

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
ReportConfig response = await migrationCenterClient.GetReportConfigAsync(name);

GetSettings(GetSettingsRequest, CallSettings)

public virtual Settings GetSettings(GetSettingsRequest request, CallSettings callSettings = null)

Gets the details of regional settings.

Parameters
NameDescription
requestGetSettingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Settings

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Settings response = migrationCenterClient.GetSettings(request);

GetSettings(SettingsName, CallSettings)

public virtual Settings GetSettings(SettingsName name, CallSettings callSettings = null)

Gets the details of regional settings.

Parameters
NameDescription
nameSettingsName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Settings

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Settings response = migrationCenterClient.GetSettings(name);

GetSettings(string, CallSettings)

public virtual Settings GetSettings(string name, CallSettings callSettings = null)

Gets the details of regional settings.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Settings

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/settings";
// Make the request
Settings response = migrationCenterClient.GetSettings(name);

GetSettingsAsync(GetSettingsRequest, CallSettings)

public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CallSettings callSettings = null)

Gets the details of regional settings.

Parameters
NameDescription
requestGetSettingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Settings response = await migrationCenterClient.GetSettingsAsync(request);

GetSettingsAsync(GetSettingsRequest, CancellationToken)

public virtual Task<Settings> GetSettingsAsync(GetSettingsRequest request, CancellationToken cancellationToken)

Gets the details of regional settings.

Parameters
NameDescription
requestGetSettingsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetSettingsRequest request = new GetSettingsRequest
{
    SettingsName = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
Settings response = await migrationCenterClient.GetSettingsAsync(request);

GetSettingsAsync(SettingsName, CallSettings)

public virtual Task<Settings> GetSettingsAsync(SettingsName name, CallSettings callSettings = null)

Gets the details of regional settings.

Parameters
NameDescription
nameSettingsName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Settings response = await migrationCenterClient.GetSettingsAsync(name);

GetSettingsAsync(SettingsName, CancellationToken)

public virtual Task<Settings> GetSettingsAsync(SettingsName name, CancellationToken cancellationToken)

Gets the details of regional settings.

Parameters
NameDescription
nameSettingsName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SettingsName name = SettingsName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
Settings response = await migrationCenterClient.GetSettingsAsync(name);

GetSettingsAsync(string, CallSettings)

public virtual Task<Settings> GetSettingsAsync(string name, CallSettings callSettings = null)

Gets the details of regional settings.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/settings";
// Make the request
Settings response = await migrationCenterClient.GetSettingsAsync(name);

GetSettingsAsync(string, CancellationToken)

public virtual Task<Settings> GetSettingsAsync(string name, CancellationToken cancellationToken)

Gets the details of regional settings.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSettings

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/settings";
// Make the request
Settings response = await migrationCenterClient.GetSettingsAsync(name);

GetSource(GetSourceRequest, CallSettings)

public virtual Source GetSource(GetSourceRequest request, CallSettings callSettings = null)

Gets the details of a source.

Parameters
NameDescription
requestGetSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Source

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = migrationCenterClient.GetSource(request);

GetSource(SourceName, CallSettings)

public virtual Source GetSource(SourceName name, CallSettings callSettings = null)

Gets the details of a source.

Parameters
NameDescription
nameSourceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Source

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = migrationCenterClient.GetSource(name);

GetSource(string, CallSettings)

public virtual Source GetSource(string name, CallSettings callSettings = null)

Gets the details of a source.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Source

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Source response = migrationCenterClient.GetSource(name);

GetSourceAsync(GetSourceRequest, CallSettings)

public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CallSettings callSettings = null)

Gets the details of a source.

Parameters
NameDescription
requestGetSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = await migrationCenterClient.GetSourceAsync(request);

GetSourceAsync(GetSourceRequest, CancellationToken)

public virtual Task<Source> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken)

Gets the details of a source.

Parameters
NameDescription
requestGetSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GetSourceRequest request = new GetSourceRequest
{
    SourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
Source response = await migrationCenterClient.GetSourceAsync(request);

GetSourceAsync(SourceName, CallSettings)

public virtual Task<Source> GetSourceAsync(SourceName name, CallSettings callSettings = null)

Gets the details of a source.

Parameters
NameDescription
nameSourceName

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = await migrationCenterClient.GetSourceAsync(name);

GetSourceAsync(SourceName, CancellationToken)

public virtual Task<Source> GetSourceAsync(SourceName name, CancellationToken cancellationToken)

Gets the details of a source.

Parameters
NameDescription
nameSourceName

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName name = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
Source response = await migrationCenterClient.GetSourceAsync(name);

GetSourceAsync(string, CallSettings)

public virtual Task<Source> GetSourceAsync(string name, CallSettings callSettings = null)

Gets the details of a source.

Parameters
NameDescription
namestring

Required. Name of the resource.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Source response = await migrationCenterClient.GetSourceAsync(name);

GetSourceAsync(string, CancellationToken)

public virtual Task<Source> GetSourceAsync(string name, CancellationToken cancellationToken)

Gets the details of a source.

Parameters
NameDescription
namestring

Required. Name of the resource.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskSource

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
Source response = await migrationCenterClient.GetSourceAsync(name);

ListAssets(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListAssetsResponse, Asset> ListAssets(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the assets in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListAssetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListAssetsResponseAsset

A pageable sequence of Asset resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListAssetsResponse, Asset> response = migrationCenterClient.ListAssets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Asset 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 (ListAssetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Asset 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<Asset> 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 (Asset 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;

ListAssets(ListAssetsRequest, CallSettings)

public virtual PagedEnumerable<ListAssetsResponse, Asset> ListAssets(ListAssetsRequest request, CallSettings callSettings = null)

Lists all the assets in a given project and location.

Parameters
NameDescription
requestListAssetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListAssetsResponseAsset

A pageable sequence of Asset resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListAssetsRequest request = new ListAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
    View = AssetView.Unspecified,
};
// Make the request
PagedEnumerable<ListAssetsResponse, Asset> response = migrationCenterClient.ListAssets(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Asset 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 (ListAssetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Asset 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<Asset> 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 (Asset 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;

ListAssets(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListAssetsResponse, Asset> ListAssets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the assets in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListAssetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListAssetsResponseAsset

A pageable sequence of Asset resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListAssetsResponse, Asset> response = migrationCenterClient.ListAssets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Asset 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 (ListAssetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Asset 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<Asset> 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 (Asset 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;

ListAssetsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the assets in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListAssetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListAssetsResponseAsset

A pageable asynchronous sequence of Asset resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListAssetsResponse, Asset> response = migrationCenterClient.ListAssetsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Asset item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Asset 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<Asset> 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 (Asset 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;

ListAssetsAsync(ListAssetsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(ListAssetsRequest request, CallSettings callSettings = null)

Lists all the assets in a given project and location.

Parameters
NameDescription
requestListAssetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListAssetsResponseAsset

A pageable asynchronous sequence of Asset resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListAssetsRequest request = new ListAssetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
    View = AssetView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListAssetsResponse, Asset> response = migrationCenterClient.ListAssetsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Asset item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Asset 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<Asset> 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 (Asset 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;

ListAssetsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the assets in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListAssetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListAssetsResponseAsset

A pageable asynchronous sequence of Asset resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListAssetsResponse, Asset> response = migrationCenterClient.ListAssetsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Asset item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAssetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Asset 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<Asset> 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 (Asset 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;

ListErrorFrames(ListErrorFramesRequest, CallSettings)

public virtual PagedEnumerable<ListErrorFramesResponse, ErrorFrame> ListErrorFrames(ListErrorFramesRequest request, CallSettings callSettings = null)

Lists all error frames in a given source and location.

Parameters
NameDescription
requestListErrorFramesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListErrorFramesResponseErrorFrame

A pageable sequence of ErrorFrame resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListErrorFramesRequest request = new ListErrorFramesRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    View = ErrorFrameView.Unspecified,
};
// Make the request
PagedEnumerable<ListErrorFramesResponse, ErrorFrame> response = migrationCenterClient.ListErrorFrames(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ErrorFrame 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 (ListErrorFramesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ErrorFrame 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<ErrorFrame> 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 (ErrorFrame 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;

ListErrorFrames(SourceName, string, int?, CallSettings)

public virtual PagedEnumerable<ListErrorFramesResponse, ErrorFrame> ListErrorFrames(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all error frames in a given source and location.

Parameters
NameDescription
parentSourceName

Required. Parent value (the source) for ListErrorFramesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListErrorFramesResponseErrorFrame

A pageable sequence of ErrorFrame resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedEnumerable<ListErrorFramesResponse, ErrorFrame> response = migrationCenterClient.ListErrorFrames(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ErrorFrame 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 (ListErrorFramesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ErrorFrame 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<ErrorFrame> 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 (ErrorFrame 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;

ListErrorFrames(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListErrorFramesResponse, ErrorFrame> ListErrorFrames(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all error frames in a given source and location.

Parameters
NameDescription
parentstring

Required. Parent value (the source) for ListErrorFramesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListErrorFramesResponseErrorFrame

A pageable sequence of ErrorFrame resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedEnumerable<ListErrorFramesResponse, ErrorFrame> response = migrationCenterClient.ListErrorFrames(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ErrorFrame 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 (ListErrorFramesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ErrorFrame 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<ErrorFrame> 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 (ErrorFrame 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;

ListErrorFramesAsync(ListErrorFramesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListErrorFramesResponse, ErrorFrame> ListErrorFramesAsync(ListErrorFramesRequest request, CallSettings callSettings = null)

Lists all error frames in a given source and location.

Parameters
NameDescription
requestListErrorFramesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListErrorFramesResponseErrorFrame

A pageable asynchronous sequence of ErrorFrame resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListErrorFramesRequest request = new ListErrorFramesRequest
{
    ParentAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
    View = ErrorFrameView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListErrorFramesResponse, ErrorFrame> response = migrationCenterClient.ListErrorFramesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ErrorFrame item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListErrorFramesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ErrorFrame 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<ErrorFrame> 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 (ErrorFrame 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;

ListErrorFramesAsync(SourceName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListErrorFramesResponse, ErrorFrame> ListErrorFramesAsync(SourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all error frames in a given source and location.

Parameters
NameDescription
parentSourceName

Required. Parent value (the source) for ListErrorFramesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListErrorFramesResponseErrorFrame

A pageable asynchronous sequence of ErrorFrame resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
SourceName parent = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]");
// Make the request
PagedAsyncEnumerable<ListErrorFramesResponse, ErrorFrame> response = migrationCenterClient.ListErrorFramesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ErrorFrame item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListErrorFramesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ErrorFrame 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<ErrorFrame> 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 (ErrorFrame 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;

ListErrorFramesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListErrorFramesResponse, ErrorFrame> ListErrorFramesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all error frames in a given source and location.

Parameters
NameDescription
parentstring

Required. Parent value (the source) for ListErrorFramesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListErrorFramesResponseErrorFrame

A pageable asynchronous sequence of ErrorFrame resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/sources/[SOURCE]";
// Make the request
PagedAsyncEnumerable<ListErrorFramesResponse, ErrorFrame> response = migrationCenterClient.ListErrorFramesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ErrorFrame item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListErrorFramesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ErrorFrame 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<ErrorFrame> 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 (ErrorFrame 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;

ListGroups(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all groups in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListGroupsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = migrationCenterClient.ListGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Group 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 (ListGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group 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<Group> 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 (Group 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;

ListGroups(ListGroupsRequest, CallSettings)

public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(ListGroupsRequest request, CallSettings callSettings = null)

Lists all groups in a given project and location.

Parameters
NameDescription
requestListGroupsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListGroupsRequest request = new ListGroupsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = migrationCenterClient.ListGroups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Group 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 (ListGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group 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<Group> 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 (Group 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;

ListGroups(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGroupsResponse, Group> ListGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all groups in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListGroupsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListGroupsResponseGroup

A pageable sequence of Group resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListGroupsResponse, Group> response = migrationCenterClient.ListGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Group 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 (ListGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group 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<Group> 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 (Group 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;

ListGroupsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all groups in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListGroupsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = migrationCenterClient.ListGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group 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<Group> 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 (Group 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;

ListGroupsAsync(ListGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(ListGroupsRequest request, CallSettings callSettings = null)

Lists all groups in a given project and location.

Parameters
NameDescription
requestListGroupsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListGroupsRequest request = new ListGroupsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = migrationCenterClient.ListGroupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group 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<Group> 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 (Group 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;

ListGroupsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGroupsResponse, Group> ListGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all groups in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListGroupsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListGroupsResponseGroup

A pageable asynchronous sequence of Group resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListGroupsResponse, Group> response = migrationCenterClient.ListGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Group item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Group 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<Group> 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 (Group 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;

ListImportDataFiles(ImportJobName, string, int?, CallSettings)

public virtual PagedEnumerable<ListImportDataFilesResponse, ImportDataFile> ListImportDataFiles(ImportJobName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List import data files.

Parameters
NameDescription
parentImportJobName

Required. Name of the parent of the ImportDataFiles resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListImportDataFilesResponseImportDataFile

A pageable sequence of ImportDataFile resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJobName parent = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
PagedEnumerable<ListImportDataFilesResponse, ImportDataFile> response = migrationCenterClient.ListImportDataFiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ImportDataFile 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 (ListImportDataFilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportDataFile 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<ImportDataFile> 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 (ImportDataFile 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;

ListImportDataFiles(ListImportDataFilesRequest, CallSettings)

public virtual PagedEnumerable<ListImportDataFilesResponse, ImportDataFile> ListImportDataFiles(ListImportDataFilesRequest request, CallSettings callSettings = null)

List import data files.

Parameters
NameDescription
requestListImportDataFilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListImportDataFilesResponseImportDataFile

A pageable sequence of ImportDataFile resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListImportDataFilesRequest request = new ListImportDataFilesRequest
{
    ParentAsImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListImportDataFilesResponse, ImportDataFile> response = migrationCenterClient.ListImportDataFiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ImportDataFile 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 (ListImportDataFilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportDataFile 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<ImportDataFile> 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 (ImportDataFile 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;

ListImportDataFiles(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListImportDataFilesResponse, ImportDataFile> ListImportDataFiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List import data files.

Parameters
NameDescription
parentstring

Required. Name of the parent of the ImportDataFiles resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListImportDataFilesResponseImportDataFile

A pageable sequence of ImportDataFile resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
PagedEnumerable<ListImportDataFilesResponse, ImportDataFile> response = migrationCenterClient.ListImportDataFiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ImportDataFile 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 (ListImportDataFilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportDataFile 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<ImportDataFile> 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 (ImportDataFile 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;

ListImportDataFilesAsync(ImportJobName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListImportDataFilesResponse, ImportDataFile> ListImportDataFilesAsync(ImportJobName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List import data files.

Parameters
NameDescription
parentImportJobName

Required. Name of the parent of the ImportDataFiles resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListImportDataFilesResponseImportDataFile

A pageable asynchronous sequence of ImportDataFile resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName parent = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
PagedAsyncEnumerable<ListImportDataFilesResponse, ImportDataFile> response = migrationCenterClient.ListImportDataFilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ImportDataFile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListImportDataFilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportDataFile 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<ImportDataFile> 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 (ImportDataFile 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;

ListImportDataFilesAsync(ListImportDataFilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListImportDataFilesResponse, ImportDataFile> ListImportDataFilesAsync(ListImportDataFilesRequest request, CallSettings callSettings = null)

List import data files.

Parameters
NameDescription
requestListImportDataFilesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListImportDataFilesResponseImportDataFile

A pageable asynchronous sequence of ImportDataFile resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListImportDataFilesRequest request = new ListImportDataFilesRequest
{
    ParentAsImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListImportDataFilesResponse, ImportDataFile> response = migrationCenterClient.ListImportDataFilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ImportDataFile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListImportDataFilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportDataFile 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<ImportDataFile> 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 (ImportDataFile 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;

ListImportDataFilesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListImportDataFilesResponse, ImportDataFile> ListImportDataFilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List import data files.

Parameters
NameDescription
parentstring

Required. Name of the parent of the ImportDataFiles resource.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListImportDataFilesResponseImportDataFile

A pageable asynchronous sequence of ImportDataFile resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
PagedAsyncEnumerable<ListImportDataFilesResponse, ImportDataFile> response = migrationCenterClient.ListImportDataFilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ImportDataFile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListImportDataFilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportDataFile 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<ImportDataFile> 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 (ImportDataFile 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;

ListImportJobs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListImportJobsResponse, ImportJob> ListImportJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all import jobs.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListImportJobsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListImportJobsResponseImportJob

A pageable sequence of ImportJob resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListImportJobsResponse, ImportJob> response = migrationCenterClient.ListImportJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ImportJob 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 (ListImportJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportJob 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<ImportJob> 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 (ImportJob 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;

ListImportJobs(ListImportJobsRequest, CallSettings)

public virtual PagedEnumerable<ListImportJobsResponse, ImportJob> ListImportJobs(ListImportJobsRequest request, CallSettings callSettings = null)

Lists all import jobs.

Parameters
NameDescription
requestListImportJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListImportJobsResponseImportJob

A pageable sequence of ImportJob resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListImportJobsRequest request = new ListImportJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
    View = ImportJobView.Unspecified,
};
// Make the request
PagedEnumerable<ListImportJobsResponse, ImportJob> response = migrationCenterClient.ListImportJobs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ImportJob 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 (ListImportJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportJob 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<ImportJob> 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 (ImportJob 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;

ListImportJobs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListImportJobsResponse, ImportJob> ListImportJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all import jobs.

Parameters
NameDescription
parentstring

Required. Parent value for ListImportJobsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListImportJobsResponseImportJob

A pageable sequence of ImportJob resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListImportJobsResponse, ImportJob> response = migrationCenterClient.ListImportJobs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ImportJob 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 (ListImportJobsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportJob 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<ImportJob> 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 (ImportJob 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;

ListImportJobsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListImportJobsResponse, ImportJob> ListImportJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all import jobs.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListImportJobsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListImportJobsResponseImportJob

A pageable asynchronous sequence of ImportJob resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListImportJobsResponse, ImportJob> response = migrationCenterClient.ListImportJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ImportJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListImportJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportJob 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<ImportJob> 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 (ImportJob 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;

ListImportJobsAsync(ListImportJobsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListImportJobsResponse, ImportJob> ListImportJobsAsync(ListImportJobsRequest request, CallSettings callSettings = null)

Lists all import jobs.

Parameters
NameDescription
requestListImportJobsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListImportJobsResponseImportJob

A pageable asynchronous sequence of ImportJob resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListImportJobsRequest request = new ListImportJobsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
    View = ImportJobView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListImportJobsResponse, ImportJob> response = migrationCenterClient.ListImportJobsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ImportJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListImportJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportJob 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<ImportJob> 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 (ImportJob 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;

ListImportJobsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListImportJobsResponse, ImportJob> ListImportJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all import jobs.

Parameters
NameDescription
parentstring

Required. Parent value for ListImportJobsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListImportJobsResponseImportJob

A pageable asynchronous sequence of ImportJob resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListImportJobsResponse, ImportJob> response = migrationCenterClient.ListImportJobsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ImportJob item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListImportJobsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ImportJob 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<ImportJob> 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 (ImportJob 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;

ListPreferenceSets(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListPreferenceSetsResponse, PreferenceSet> ListPreferenceSets(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the preference sets in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListPreferenceSetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPreferenceSetsResponsePreferenceSet

A pageable sequence of PreferenceSet resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPreferenceSetsResponse, PreferenceSet> response = migrationCenterClient.ListPreferenceSets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (PreferenceSet 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 (ListPreferenceSetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PreferenceSet 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<PreferenceSet> 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 (PreferenceSet 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;

ListPreferenceSets(ListPreferenceSetsRequest, CallSettings)

public virtual PagedEnumerable<ListPreferenceSetsResponse, PreferenceSet> ListPreferenceSets(ListPreferenceSetsRequest request, CallSettings callSettings = null)

Lists all the preference sets in a given project and location.

Parameters
NameDescription
requestListPreferenceSetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPreferenceSetsResponsePreferenceSet

A pageable sequence of PreferenceSet resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListPreferenceSetsRequest request = new ListPreferenceSetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListPreferenceSetsResponse, PreferenceSet> response = migrationCenterClient.ListPreferenceSets(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (PreferenceSet 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 (ListPreferenceSetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PreferenceSet 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<PreferenceSet> 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 (PreferenceSet 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;

ListPreferenceSets(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListPreferenceSetsResponse, PreferenceSet> ListPreferenceSets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the preference sets in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListPreferenceSetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListPreferenceSetsResponsePreferenceSet

A pageable sequence of PreferenceSet resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPreferenceSetsResponse, PreferenceSet> response = migrationCenterClient.ListPreferenceSets(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (PreferenceSet 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 (ListPreferenceSetsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PreferenceSet 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<PreferenceSet> 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 (PreferenceSet 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;

ListPreferenceSetsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPreferenceSetsResponse, PreferenceSet> ListPreferenceSetsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the preference sets in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListPreferenceSetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListPreferenceSetsResponsePreferenceSet

A pageable asynchronous sequence of PreferenceSet resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPreferenceSetsResponse, PreferenceSet> response = migrationCenterClient.ListPreferenceSetsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PreferenceSet item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPreferenceSetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PreferenceSet 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<PreferenceSet> 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 (PreferenceSet 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;

ListPreferenceSetsAsync(ListPreferenceSetsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListPreferenceSetsResponse, PreferenceSet> ListPreferenceSetsAsync(ListPreferenceSetsRequest request, CallSettings callSettings = null)

Lists all the preference sets in a given project and location.

Parameters
NameDescription
requestListPreferenceSetsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListPreferenceSetsResponsePreferenceSet

A pageable asynchronous sequence of PreferenceSet resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListPreferenceSetsRequest request = new ListPreferenceSetsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListPreferenceSetsResponse, PreferenceSet> response = migrationCenterClient.ListPreferenceSetsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PreferenceSet item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPreferenceSetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PreferenceSet 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<PreferenceSet> 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 (PreferenceSet 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;

ListPreferenceSetsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListPreferenceSetsResponse, PreferenceSet> ListPreferenceSetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the preference sets in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListPreferenceSetsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListPreferenceSetsResponsePreferenceSet

A pageable asynchronous sequence of PreferenceSet resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPreferenceSetsResponse, PreferenceSet> response = migrationCenterClient.ListPreferenceSetsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PreferenceSet item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPreferenceSetsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (PreferenceSet 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<PreferenceSet> 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 (PreferenceSet 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;

ListReportConfigs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListReportConfigsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReportConfigsResponseReportConfig

A pageable sequence of ReportConfig resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListReportConfigsResponse, ReportConfig> response = migrationCenterClient.ListReportConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportConfig 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 (ListReportConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig 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<ReportConfig> 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 (ReportConfig 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;

ListReportConfigs(ListReportConfigsRequest, CallSettings)

public virtual PagedEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigs(ListReportConfigsRequest request, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
NameDescription
requestListReportConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReportConfigsResponseReportConfig

A pageable sequence of ReportConfig resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListReportConfigsRequest request = new ListReportConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListReportConfigsResponse, ReportConfig> response = migrationCenterClient.ListReportConfigs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportConfig 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 (ListReportConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig 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<ReportConfig> 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 (ReportConfig 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;

ListReportConfigs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListReportConfigsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReportConfigsResponseReportConfig

A pageable sequence of ReportConfig resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListReportConfigsResponse, ReportConfig> response = migrationCenterClient.ListReportConfigs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ReportConfig 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 (ListReportConfigsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig 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<ReportConfig> 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 (ReportConfig 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;

ListReportConfigsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListReportConfigsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReportConfigsResponseReportConfig

A pageable asynchronous sequence of ReportConfig resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> response = migrationCenterClient.ListReportConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig 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<ReportConfig> 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 (ReportConfig 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;

ListReportConfigsAsync(ListReportConfigsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigsAsync(ListReportConfigsRequest request, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
NameDescription
requestListReportConfigsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReportConfigsResponseReportConfig

A pageable asynchronous sequence of ReportConfig resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListReportConfigsRequest request = new ListReportConfigsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> response = migrationCenterClient.ListReportConfigsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig 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<ReportConfig> 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 (ReportConfig 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;

ListReportConfigsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> ListReportConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists ReportConfigs in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListReportConfigsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReportConfigsResponseReportConfig

A pageable asynchronous sequence of ReportConfig resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListReportConfigsResponse, ReportConfig> response = migrationCenterClient.ListReportConfigsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ReportConfig item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportConfigsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ReportConfig 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<ReportConfig> 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 (ReportConfig 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;

ListReports(ListReportsRequest, CallSettings)

public virtual PagedEnumerable<ListReportsResponse, Report> ListReports(ListReportsRequest request, CallSettings callSettings = null)

Lists Reports in a given ReportConfig.

Parameters
NameDescription
requestListReportsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReportsResponseReport

A pageable sequence of Report resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListReportsRequest request = new ListReportsRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Filter = "",
    OrderBy = "",
    View = ReportView.Unspecified,
};
// Make the request
PagedEnumerable<ListReportsResponse, Report> response = migrationCenterClient.ListReports(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Report 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 (ListReportsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Report 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<Report> 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 (Report 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;

ListReports(ReportConfigName, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportsResponse, Report> ListReports(ReportConfigName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Reports in a given ReportConfig.

Parameters
NameDescription
parentReportConfigName

Required. Parent value for ListReportsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReportsResponseReport

A pageable sequence of Report resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
PagedEnumerable<ListReportsResponse, Report> response = migrationCenterClient.ListReports(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Report 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 (ListReportsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Report 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<Report> 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 (Report 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;

ListReports(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListReportsResponse, Report> ListReports(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Reports in a given ReportConfig.

Parameters
NameDescription
parentstring

Required. Parent value for ListReportsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListReportsResponseReport

A pageable sequence of Report resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
PagedEnumerable<ListReportsResponse, Report> response = migrationCenterClient.ListReports(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Report 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 (ListReportsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Report 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<Report> 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 (Report 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;

ListReportsAsync(ListReportsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListReportsResponse, Report> ListReportsAsync(ListReportsRequest request, CallSettings callSettings = null)

Lists Reports in a given ReportConfig.

Parameters
NameDescription
requestListReportsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReportsResponseReport

A pageable asynchronous sequence of Report resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListReportsRequest request = new ListReportsRequest
{
    ParentAsReportConfigName = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]"),
    Filter = "",
    OrderBy = "",
    View = ReportView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListReportsResponse, Report> response = migrationCenterClient.ListReportsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Report item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Report 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<Report> 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 (Report 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;

ListReportsAsync(ReportConfigName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportsResponse, Report> ListReportsAsync(ReportConfigName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Reports in a given ReportConfig.

Parameters
NameDescription
parentReportConfigName

Required. Parent value for ListReportsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReportsResponseReport

A pageable asynchronous sequence of Report resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportConfigName parent = ReportConfigName.FromProjectLocationReportConfig("[PROJECT]", "[LOCATION]", "[REPORT_CONFIG]");
// Make the request
PagedAsyncEnumerable<ListReportsResponse, Report> response = migrationCenterClient.ListReportsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Report item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Report 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<Report> 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 (Report 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;

ListReportsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListReportsResponse, Report> ListReportsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Reports in a given ReportConfig.

Parameters
NameDescription
parentstring

Required. Parent value for ListReportsRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListReportsResponseReport

A pageable asynchronous sequence of Report resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/reportConfigs/[REPORT_CONFIG]";
// Make the request
PagedAsyncEnumerable<ListReportsResponse, Report> response = migrationCenterClient.ListReportsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Report item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListReportsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Report 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<Report> 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 (Report 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;

ListSources(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the sources in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListSourcesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSourcesResponseSource

A pageable sequence of Source resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = migrationCenterClient.ListSources(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source 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<Source> 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 (Source 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;

ListSources(ListSourcesRequest, CallSettings)

public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(ListSourcesRequest request, CallSettings callSettings = null)

Lists all the sources in a given project and location.

Parameters
NameDescription
requestListSourcesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSourcesResponseSource

A pageable sequence of Source resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = migrationCenterClient.ListSources(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source 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<Source> 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 (Source 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;

ListSources(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListSourcesResponse, Source> ListSources(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the sources in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListSourcesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListSourcesResponseSource

A pageable sequence of Source resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListSourcesResponse, Source> response = migrationCenterClient.ListSources(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Source 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 (ListSourcesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source 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<Source> 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 (Source 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;

ListSourcesAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the sources in a given project and location.

Parameters
NameDescription
parentLocationName

Required. Parent value for ListSourcesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSourcesResponseSource

A pageable asynchronous sequence of Source resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = migrationCenterClient.ListSourcesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source 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<Source> 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 (Source 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;

ListSourcesAsync(ListSourcesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(ListSourcesRequest request, CallSettings callSettings = null)

Lists all the sources in a given project and location.

Parameters
NameDescription
requestListSourcesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSourcesResponseSource

A pageable asynchronous sequence of Source resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ListSourcesRequest request = new ListSourcesRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = migrationCenterClient.ListSourcesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source 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<Source> 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 (Source 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;

ListSourcesAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListSourcesResponse, Source> ListSourcesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the sources in a given project and location.

Parameters
NameDescription
parentstring

Required. Parent value for ListSourcesRequest.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListSourcesResponseSource

A pageable asynchronous sequence of Source resources.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListSourcesResponse, Source> response = migrationCenterClient.ListSourcesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Source item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSourcesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Source 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<Source> 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 (Source 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;

PollOnceAddAssetsToGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> PollOnceAddAssetsToGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of AddAssetsToGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The result of polling the operation.

PollOnceAddAssetsToGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> PollOnceAddAssetsToGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of AddAssetsToGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> PollOnceCreateGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The result of polling the operation.

PollOnceCreateGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> PollOnceCreateGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateImportDataFile(string, CallSettings)

public virtual Operation<ImportDataFile, OperationMetadata> PollOnceCreateImportDataFile(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateImportDataFile .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportDataFileOperationMetadata

The result of polling the operation.

PollOnceCreateImportDataFileAsync(string, CallSettings)

public virtual Task<Operation<ImportDataFile, OperationMetadata>> PollOnceCreateImportDataFileAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateImportDataFile.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportDataFileOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateImportJob(string, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> PollOnceCreateImportJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The result of polling the operation.

PollOnceCreateImportJobAsync(string, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> PollOnceCreateImportJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A task representing the result of polling the operation.

PollOnceCreatePreferenceSet(string, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> PollOnceCreatePreferenceSet(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreatePreferenceSet .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The result of polling the operation.

PollOnceCreatePreferenceSetAsync(string, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> PollOnceCreatePreferenceSetAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreatePreferenceSet.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateReport(string, CallSettings)

public virtual Operation<Report, OperationMetadata> PollOnceCreateReport(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportOperationMetadata

The result of polling the operation.

PollOnceCreateReportAsync(string, CallSettings)

public virtual Task<Operation<Report, OperationMetadata>> PollOnceCreateReportAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateReportConfig(string, CallSettings)

public virtual Operation<ReportConfig, OperationMetadata> PollOnceCreateReportConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateReportConfig .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationReportConfigOperationMetadata

The result of polling the operation.

PollOnceCreateReportConfigAsync(string, CallSettings)

public virtual Task<Operation<ReportConfig, OperationMetadata>> PollOnceCreateReportConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateReportConfig.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationReportConfigOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateSource(string, CallSettings)

public virtual Operation<Source, OperationMetadata> PollOnceCreateSource(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The result of polling the operation.

PollOnceCreateSourceAsync(string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> PollOnceCreateSourceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteGroup(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteGroupAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteImportDataFile(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteImportDataFile(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteImportDataFile .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteImportDataFileAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteImportDataFileAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteImportDataFile.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteImportJob(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteImportJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteImportJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteImportJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeletePreferenceSet(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeletePreferenceSet(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeletePreferenceSet .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeletePreferenceSetAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePreferenceSetAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeletePreferenceSet.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteReport(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteReport(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteReportAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteReportAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteReport.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteReportConfig(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteReportConfig(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteReportConfig .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteReportConfigAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteReportConfigAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteReportConfig.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteSource(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteSource(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteSourceAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteSourceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceRemoveAssetsFromGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> PollOnceRemoveAssetsFromGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of RemoveAssetsFromGroup .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The result of polling the operation.

PollOnceRemoveAssetsFromGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> PollOnceRemoveAssetsFromGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of RemoveAssetsFromGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceRunImportJob(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceRunImportJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of RunImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceRunImportJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceRunImportJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of RunImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> PollOnceUpdateGroup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The result of polling the operation.

PollOnceUpdateGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> PollOnceUpdateGroupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateGroup.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateImportJob(string, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> PollOnceUpdateImportJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The result of polling the operation.

PollOnceUpdateImportJobAsync(string, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> PollOnceUpdateImportJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdatePreferenceSet(string, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> PollOnceUpdatePreferenceSet(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdatePreferenceSet .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The result of polling the operation.

PollOnceUpdatePreferenceSetAsync(string, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> PollOnceUpdatePreferenceSetAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdatePreferenceSet.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

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

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSettingsOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateSource(string, CallSettings)

public virtual Operation<Source, OperationMetadata> PollOnceUpdateSource(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The result of polling the operation.

PollOnceUpdateSourceAsync(string, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> PollOnceUpdateSourceAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateSource.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A task representing the result of polling the operation.

PollOnceValidateImportJob(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceValidateImportJob(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ValidateImportJob .

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceValidateImportJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceValidateImportJobAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ValidateImportJob.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

RemoveAssetsFromGroup(GroupName, CallSettings)

public virtual Operation<Group, OperationMetadata> RemoveAssetsFromGroup(GroupName group, CallSettings callSettings = null)

Removes assets from a group.

Parameters
NameDescription
groupGroupName

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.RemoveAssetsFromGroup(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceRemoveAssetsFromGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroup(RemoveAssetsFromGroupRequest, CallSettings)

public virtual Operation<Group, OperationMetadata> RemoveAssetsFromGroup(RemoveAssetsFromGroupRequest request, CallSettings callSettings = null)

Removes assets from a group.

Parameters
NameDescription
requestRemoveAssetsFromGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
RemoveAssetsFromGroupRequest request = new RemoveAssetsFromGroupRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
    Assets = new AssetList(),
    AllowMissing = false,
};
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.RemoveAssetsFromGroup(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceRemoveAssetsFromGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroup(string, CallSettings)

public virtual Operation<Group, OperationMetadata> RemoveAssetsFromGroup(string group, CallSettings callSettings = null)

Removes assets from a group.

Parameters
NameDescription
groupstring

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.RemoveAssetsFromGroup(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceRemoveAssetsFromGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroupAsync(GroupName, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> RemoveAssetsFromGroupAsync(GroupName group, CallSettings callSettings = null)

Removes assets from a group.

Parameters
NameDescription
groupGroupName

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.RemoveAssetsFromGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceRemoveAssetsFromGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroupAsync(GroupName, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> RemoveAssetsFromGroupAsync(GroupName group, CancellationToken cancellationToken)

Removes assets from a group.

Parameters
NameDescription
groupGroupName

Required. Group reference.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
GroupName group = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]");
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.RemoveAssetsFromGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceRemoveAssetsFromGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroupAsync(RemoveAssetsFromGroupRequest, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> RemoveAssetsFromGroupAsync(RemoveAssetsFromGroupRequest request, CallSettings callSettings = null)

Removes assets from a group.

Parameters
NameDescription
requestRemoveAssetsFromGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
RemoveAssetsFromGroupRequest request = new RemoveAssetsFromGroupRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
    Assets = new AssetList(),
    AllowMissing = false,
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.RemoveAssetsFromGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceRemoveAssetsFromGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroupAsync(RemoveAssetsFromGroupRequest, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> RemoveAssetsFromGroupAsync(RemoveAssetsFromGroupRequest request, CancellationToken cancellationToken)

Removes assets from a group.

Parameters
NameDescription
requestRemoveAssetsFromGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
RemoveAssetsFromGroupRequest request = new RemoveAssetsFromGroupRequest
{
    GroupAsGroupName = GroupName.FromProjectLocationGroup("[PROJECT]", "[LOCATION]", "[GROUP]"),
    RequestId = "",
    Assets = new AssetList(),
    AllowMissing = false,
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.RemoveAssetsFromGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceRemoveAssetsFromGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroupAsync(string, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> RemoveAssetsFromGroupAsync(string group, CallSettings callSettings = null)

Removes assets from a group.

Parameters
NameDescription
groupstring

Required. Group reference.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.RemoveAssetsFromGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceRemoveAssetsFromGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

RemoveAssetsFromGroupAsync(string, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> RemoveAssetsFromGroupAsync(string group, CancellationToken cancellationToken)

Removes assets from a group.

Parameters
NameDescription
groupstring

Required. Group reference.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string group = "projects/[PROJECT]/locations/[LOCATION]/groups/[GROUP]";
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.RemoveAssetsFromGroupAsync(group);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceRemoveAssetsFromGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

ReportAssetFrames(ReportAssetFramesRequest, CallSettings)

public virtual ReportAssetFramesResponse ReportAssetFrames(ReportAssetFramesRequest request, CallSettings callSettings = null)

Reports a set of frames.

Parameters
NameDescription
requestReportAssetFramesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ReportAssetFramesResponse

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ReportAssetFramesRequest request = new ReportAssetFramesRequest
{
    Parent = "",
    Frames = new Frames(),
    SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
ReportAssetFramesResponse response = migrationCenterClient.ReportAssetFrames(request);

ReportAssetFramesAsync(ReportAssetFramesRequest, CallSettings)

public virtual Task<ReportAssetFramesResponse> ReportAssetFramesAsync(ReportAssetFramesRequest request, CallSettings callSettings = null)

Reports a set of frames.

Parameters
NameDescription
requestReportAssetFramesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskReportAssetFramesResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportAssetFramesRequest request = new ReportAssetFramesRequest
{
    Parent = "",
    Frames = new Frames(),
    SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
ReportAssetFramesResponse response = await migrationCenterClient.ReportAssetFramesAsync(request);

ReportAssetFramesAsync(ReportAssetFramesRequest, CancellationToken)

public virtual Task<ReportAssetFramesResponse> ReportAssetFramesAsync(ReportAssetFramesRequest request, CancellationToken cancellationToken)

Reports a set of frames.

Parameters
NameDescription
requestReportAssetFramesRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskReportAssetFramesResponse

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ReportAssetFramesRequest request = new ReportAssetFramesRequest
{
    Parent = "",
    Frames = new Frames(),
    SourceAsSourceName = SourceName.FromProjectLocationSource("[PROJECT]", "[LOCATION]", "[SOURCE]"),
};
// Make the request
ReportAssetFramesResponse response = await migrationCenterClient.ReportAssetFramesAsync(request);

RunImportJob(ImportJobName, CallSettings)

public virtual Operation<Empty, OperationMetadata> RunImportJob(ImportJobName name, CallSettings callSettings = null)

Runs an import job.

Parameters
NameDescription
nameImportJobName

Required. The name of the import job to run.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.RunImportJob(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 = migrationCenterClient.PollOnceRunImportJob(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;
}

RunImportJob(RunImportJobRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> RunImportJob(RunImportJobRequest request, CallSettings callSettings = null)

Runs an import job.

Parameters
NameDescription
requestRunImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
RunImportJobRequest request = new RunImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.RunImportJob(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 = migrationCenterClient.PollOnceRunImportJob(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;
}

RunImportJob(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> RunImportJob(string name, CallSettings callSettings = null)

Runs an import job.

Parameters
NameDescription
namestring

Required. The name of the import job to run.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.RunImportJob(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 = migrationCenterClient.PollOnceRunImportJob(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;
}

RunImportJobAsync(ImportJobName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> RunImportJobAsync(ImportJobName name, CallSettings callSettings = null)

Runs an import job.

Parameters
NameDescription
nameImportJobName

Required. The name of the import job to run.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.RunImportJobAsync(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 migrationCenterClient.PollOnceRunImportJobAsync(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;
}

RunImportJobAsync(ImportJobName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> RunImportJobAsync(ImportJobName name, CancellationToken cancellationToken)

Runs an import job.

Parameters
NameDescription
nameImportJobName

Required. The name of the import job to run.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.RunImportJobAsync(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 migrationCenterClient.PollOnceRunImportJobAsync(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;
}

RunImportJobAsync(RunImportJobRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> RunImportJobAsync(RunImportJobRequest request, CallSettings callSettings = null)

Runs an import job.

Parameters
NameDescription
requestRunImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
RunImportJobRequest request = new RunImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.RunImportJobAsync(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 migrationCenterClient.PollOnceRunImportJobAsync(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;
}

RunImportJobAsync(RunImportJobRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> RunImportJobAsync(RunImportJobRequest request, CancellationToken cancellationToken)

Runs an import job.

Parameters
NameDescription
requestRunImportJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
RunImportJobRequest request = new RunImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.RunImportJobAsync(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 migrationCenterClient.PollOnceRunImportJobAsync(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;
}

RunImportJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> RunImportJobAsync(string name, CallSettings callSettings = null)

Runs an import job.

Parameters
NameDescription
namestring

Required. The name of the import job to run.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.RunImportJobAsync(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 migrationCenterClient.PollOnceRunImportJobAsync(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;
}

RunImportJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> RunImportJobAsync(string name, CancellationToken cancellationToken)

Runs an import job.

Parameters
NameDescription
namestring

Required. The name of the import job to run.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.RunImportJobAsync(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 migrationCenterClient.PollOnceRunImportJobAsync(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;
}

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.

UpdateAsset(Asset, FieldMask, CallSettings)

public virtual Asset UpdateAsset(Asset asset, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of an asset.

Parameters
NameDescription
assetAsset

Required. The resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Asset

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
Asset asset = new Asset();
FieldMask updateMask = new FieldMask();
// Make the request
Asset response = migrationCenterClient.UpdateAsset(asset, updateMask);

UpdateAsset(UpdateAssetRequest, CallSettings)

public virtual Asset UpdateAsset(UpdateAssetRequest request, CallSettings callSettings = null)

Updates the parameters of an asset.

Parameters
NameDescription
requestUpdateAssetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Asset

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
UpdateAssetRequest request = new UpdateAssetRequest
{
    UpdateMask = new FieldMask(),
    Asset = new Asset(),
    RequestId = "",
};
// Make the request
Asset response = migrationCenterClient.UpdateAsset(request);

UpdateAssetAsync(Asset, FieldMask, CallSettings)

public virtual Task<Asset> UpdateAssetAsync(Asset asset, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of an asset.

Parameters
NameDescription
assetAsset

Required. The resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Asset asset = new Asset();
FieldMask updateMask = new FieldMask();
// Make the request
Asset response = await migrationCenterClient.UpdateAssetAsync(asset, updateMask);

UpdateAssetAsync(Asset, FieldMask, CancellationToken)

public virtual Task<Asset> UpdateAssetAsync(Asset asset, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of an asset.

Parameters
NameDescription
assetAsset

Required. The resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Asset asset = new Asset();
FieldMask updateMask = new FieldMask();
// Make the request
Asset response = await migrationCenterClient.UpdateAssetAsync(asset, updateMask);

UpdateAssetAsync(UpdateAssetRequest, CallSettings)

public virtual Task<Asset> UpdateAssetAsync(UpdateAssetRequest request, CallSettings callSettings = null)

Updates the parameters of an asset.

Parameters
NameDescription
requestUpdateAssetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateAssetRequest request = new UpdateAssetRequest
{
    UpdateMask = new FieldMask(),
    Asset = new Asset(),
    RequestId = "",
};
// Make the request
Asset response = await migrationCenterClient.UpdateAssetAsync(request);

UpdateAssetAsync(UpdateAssetRequest, CancellationToken)

public virtual Task<Asset> UpdateAssetAsync(UpdateAssetRequest request, CancellationToken cancellationToken)

Updates the parameters of an asset.

Parameters
NameDescription
requestUpdateAssetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskAsset

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateAssetRequest request = new UpdateAssetRequest
{
    UpdateMask = new FieldMask(),
    Asset = new Asset(),
    RequestId = "",
};
// Make the request
Asset response = await migrationCenterClient.UpdateAssetAsync(request);

UpdateGroup(Group, FieldMask, CallSettings)

public virtual Operation<Group, OperationMetadata> UpdateGroup(Group group, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a group.

Parameters
NameDescription
groupGroup

Required. The group resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Group resource by the update. The values specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.UpdateGroup(group, updateMask);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

UpdateGroup(UpdateGroupRequest, CallSettings)

public virtual Operation<Group, OperationMetadata> UpdateGroup(UpdateGroupRequest request, CallSettings callSettings = null)

Updates the parameters of a group.

Parameters
NameDescription
requestUpdateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationGroupOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
UpdateGroupRequest request = new UpdateGroupRequest
{
    UpdateMask = new FieldMask(),
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = migrationCenterClient.UpdateGroup(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdateGroup(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

UpdateGroupAsync(Group, FieldMask, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(Group group, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a group.

Parameters
NameDescription
groupGroup

Required. The group resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Group resource by the update. The values specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.UpdateGroupAsync(group, updateMask);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

UpdateGroupAsync(Group, FieldMask, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(Group group, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a group.

Parameters
NameDescription
groupGroup

Required. The group resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Group resource by the update. The values specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Group group = new Group();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.UpdateGroupAsync(group, updateMask);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

UpdateGroupAsync(UpdateGroupRequest, CallSettings)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(UpdateGroupRequest request, CallSettings callSettings = null)

Updates the parameters of a group.

Parameters
NameDescription
requestUpdateGroupRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateGroupRequest request = new UpdateGroupRequest
{
    UpdateMask = new FieldMask(),
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.UpdateGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

UpdateGroupAsync(UpdateGroupRequest, CancellationToken)

public virtual Task<Operation<Group, OperationMetadata>> UpdateGroupAsync(UpdateGroupRequest request, CancellationToken cancellationToken)

Updates the parameters of a group.

Parameters
NameDescription
requestUpdateGroupRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationGroupOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateGroupRequest request = new UpdateGroupRequest
{
    UpdateMask = new FieldMask(),
    Group = new Group(),
    RequestId = "",
};
// Make the request
Operation<Group, OperationMetadata> response = await migrationCenterClient.UpdateGroupAsync(request);

// Poll until the returned long-running operation is complete
Operation<Group, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Group 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<Group, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateGroupAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Group retrievedResult = retrievedResponse.Result;
}

UpdateImportJob(ImportJob, FieldMask, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> UpdateImportJob(ImportJob importJob, FieldMask updateMask, CallSettings callSettings = null)

Updates an import job.

Parameters
NameDescription
importJobImportJob

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJob importJob = new ImportJob();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ImportJob, OperationMetadata> response = migrationCenterClient.UpdateImportJob(importJob, updateMask);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdateImportJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

UpdateImportJob(UpdateImportJobRequest, CallSettings)

public virtual Operation<ImportJob, OperationMetadata> UpdateImportJob(UpdateImportJobRequest request, CallSettings callSettings = null)

Updates an import job.

Parameters
NameDescription
requestUpdateImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationImportJobOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
UpdateImportJobRequest request = new UpdateImportJobRequest
{
    UpdateMask = new FieldMask(),
    ImportJob = new ImportJob(),
    RequestId = "",
};
// Make the request
Operation<ImportJob, OperationMetadata> response = migrationCenterClient.UpdateImportJob(request);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdateImportJob(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

UpdateImportJobAsync(ImportJob, FieldMask, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> UpdateImportJobAsync(ImportJob importJob, FieldMask updateMask, CallSettings callSettings = null)

Updates an import job.

Parameters
NameDescription
importJobImportJob

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJob importJob = new ImportJob();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.UpdateImportJobAsync(importJob, updateMask);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

UpdateImportJobAsync(ImportJob, FieldMask, CancellationToken)

public virtual Task<Operation<ImportJob, OperationMetadata>> UpdateImportJobAsync(ImportJob importJob, FieldMask updateMask, CancellationToken cancellationToken)

Updates an import job.

Parameters
NameDescription
importJobImportJob

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Asset resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJob importJob = new ImportJob();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.UpdateImportJobAsync(importJob, updateMask);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

UpdateImportJobAsync(UpdateImportJobRequest, CallSettings)

public virtual Task<Operation<ImportJob, OperationMetadata>> UpdateImportJobAsync(UpdateImportJobRequest request, CallSettings callSettings = null)

Updates an import job.

Parameters
NameDescription
requestUpdateImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateImportJobRequest request = new UpdateImportJobRequest
{
    UpdateMask = new FieldMask(),
    ImportJob = new ImportJob(),
    RequestId = "",
};
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.UpdateImportJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

UpdateImportJobAsync(UpdateImportJobRequest, CancellationToken)

public virtual Task<Operation<ImportJob, OperationMetadata>> UpdateImportJobAsync(UpdateImportJobRequest request, CancellationToken cancellationToken)

Updates an import job.

Parameters
NameDescription
requestUpdateImportJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationImportJobOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateImportJobRequest request = new UpdateImportJobRequest
{
    UpdateMask = new FieldMask(),
    ImportJob = new ImportJob(),
    RequestId = "",
};
// Make the request
Operation<ImportJob, OperationMetadata> response = await migrationCenterClient.UpdateImportJobAsync(request);

// Poll until the returned long-running operation is complete
Operation<ImportJob, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ImportJob 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<ImportJob, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateImportJobAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ImportJob retrievedResult = retrievedResponse.Result;
}

UpdatePreferenceSet(PreferenceSet, FieldMask, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> UpdatePreferenceSet(PreferenceSet preferenceSet, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a preference set.

Parameters
NameDescription
preferenceSetPreferenceSet

Required. The preference set resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the PreferenceSet resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
PreferenceSet preferenceSet = new PreferenceSet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PreferenceSet, OperationMetadata> response = migrationCenterClient.UpdatePreferenceSet(preferenceSet, updateMask);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdatePreferenceSet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

UpdatePreferenceSet(UpdatePreferenceSetRequest, CallSettings)

public virtual Operation<PreferenceSet, OperationMetadata> UpdatePreferenceSet(UpdatePreferenceSetRequest request, CallSettings callSettings = null)

Updates the parameters of a preference set.

Parameters
NameDescription
requestUpdatePreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationPreferenceSetOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
UpdatePreferenceSetRequest request = new UpdatePreferenceSetRequest
{
    UpdateMask = new FieldMask(),
    PreferenceSet = new PreferenceSet(),
    RequestId = "",
};
// Make the request
Operation<PreferenceSet, OperationMetadata> response = migrationCenterClient.UpdatePreferenceSet(request);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdatePreferenceSet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

UpdatePreferenceSetAsync(PreferenceSet, FieldMask, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> UpdatePreferenceSetAsync(PreferenceSet preferenceSet, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a preference set.

Parameters
NameDescription
preferenceSetPreferenceSet

Required. The preference set resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the PreferenceSet resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
PreferenceSet preferenceSet = new PreferenceSet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.UpdatePreferenceSetAsync(preferenceSet, updateMask);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

UpdatePreferenceSetAsync(PreferenceSet, FieldMask, CancellationToken)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> UpdatePreferenceSetAsync(PreferenceSet preferenceSet, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a preference set.

Parameters
NameDescription
preferenceSetPreferenceSet

Required. The preference set resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the PreferenceSet resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
PreferenceSet preferenceSet = new PreferenceSet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.UpdatePreferenceSetAsync(preferenceSet, updateMask);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

UpdatePreferenceSetAsync(UpdatePreferenceSetRequest, CallSettings)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> UpdatePreferenceSetAsync(UpdatePreferenceSetRequest request, CallSettings callSettings = null)

Updates the parameters of a preference set.

Parameters
NameDescription
requestUpdatePreferenceSetRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdatePreferenceSetRequest request = new UpdatePreferenceSetRequest
{
    UpdateMask = new FieldMask(),
    PreferenceSet = new PreferenceSet(),
    RequestId = "",
};
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.UpdatePreferenceSetAsync(request);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

UpdatePreferenceSetAsync(UpdatePreferenceSetRequest, CancellationToken)

public virtual Task<Operation<PreferenceSet, OperationMetadata>> UpdatePreferenceSetAsync(UpdatePreferenceSetRequest request, CancellationToken cancellationToken)

Updates the parameters of a preference set.

Parameters
NameDescription
requestUpdatePreferenceSetRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationPreferenceSetOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdatePreferenceSetRequest request = new UpdatePreferenceSetRequest
{
    UpdateMask = new FieldMask(),
    PreferenceSet = new PreferenceSet(),
    RequestId = "",
};
// Make the request
Operation<PreferenceSet, OperationMetadata> response = await migrationCenterClient.UpdatePreferenceSetAsync(request);

// Poll until the returned long-running operation is complete
Operation<PreferenceSet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PreferenceSet 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<PreferenceSet, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdatePreferenceSetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    PreferenceSet retrievedResult = retrievedResponse.Result;
}

UpdateSettings(Settings, FieldMask, CallSettings)

public virtual Operation<Settings, OperationMetadata> UpdateSettings(Settings settings, FieldMask updateMask, CallSettings callSettings = null)

Updates the regional-level project settings.

Parameters
NameDescription
settingsSettings

Required. The project settings resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Settings resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSettingsOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Settings, OperationMetadata> response = migrationCenterClient.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 = migrationCenterClient.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)

Updates the regional-level project settings.

Parameters
NameDescription
requestUpdateSettingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSettingsOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    UpdateMask = new FieldMask(),
    Settings = new Settings(),
    RequestId = "",
};
// Make the request
Operation<Settings, OperationMetadata> response = migrationCenterClient.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 = migrationCenterClient.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)

Updates the regional-level project settings.

Parameters
NameDescription
settingsSettings

Required. The project settings resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Settings resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSettingsOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Settings, OperationMetadata> response = await migrationCenterClient.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 migrationCenterClient.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)

Updates the regional-level project settings.

Parameters
NameDescription
settingsSettings

Required. The project settings resource being updated.

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Settings resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSettingsOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Settings settings = new Settings();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Settings, OperationMetadata> response = await migrationCenterClient.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 migrationCenterClient.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)

Updates the regional-level project settings.

Parameters
NameDescription
requestUpdateSettingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSettingsOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    UpdateMask = new FieldMask(),
    Settings = new Settings(),
    RequestId = "",
};
// Make the request
Operation<Settings, OperationMetadata> response = await migrationCenterClient.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 migrationCenterClient.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)

Updates the regional-level project settings.

Parameters
NameDescription
requestUpdateSettingsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSettingsOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSettingsRequest request = new UpdateSettingsRequest
{
    UpdateMask = new FieldMask(),
    Settings = new Settings(),
    RequestId = "",
};
// Make the request
Operation<Settings, OperationMetadata> response = await migrationCenterClient.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 migrationCenterClient.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;
}

UpdateSource(Source, FieldMask, CallSettings)

public virtual Operation<Source, OperationMetadata> UpdateSource(Source source, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a source.

Parameters
NameDescription
sourceSource

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Source resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = migrationCenterClient.UpdateSource(source, updateMask);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

UpdateSource(UpdateSourceRequest, CallSettings)

public virtual Operation<Source, OperationMetadata> UpdateSource(UpdateSourceRequest request, CallSettings callSettings = null)

Updates the parameters of a source.

Parameters
NameDescription
requestUpdateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationSourceOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
    UpdateMask = new FieldMask(),
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = migrationCenterClient.UpdateSource(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = migrationCenterClient.PollOnceUpdateSource(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

UpdateSourceAsync(Source, FieldMask, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(Source source, FieldMask updateMask, CallSettings callSettings = null)

Updates the parameters of a source.

Parameters
NameDescription
sourceSource

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Source resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.UpdateSourceAsync(source, updateMask);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

UpdateSourceAsync(Source, FieldMask, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(Source source, FieldMask updateMask, CancellationToken cancellationToken)

Updates the parameters of a source.

Parameters
NameDescription
sourceSource

Required. The resource being updated

updateMaskFieldMask

Required. Field mask is used to specify the fields to be overwritten in the Source resource by the update. The values specified in the update_mask field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
Source source = new Source();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.UpdateSourceAsync(source, updateMask);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

UpdateSourceAsync(UpdateSourceRequest, CallSettings)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(UpdateSourceRequest request, CallSettings callSettings = null)

Updates the parameters of a source.

Parameters
NameDescription
requestUpdateSourceRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
    UpdateMask = new FieldMask(),
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.UpdateSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

UpdateSourceAsync(UpdateSourceRequest, CancellationToken)

public virtual Task<Operation<Source, OperationMetadata>> UpdateSourceAsync(UpdateSourceRequest request, CancellationToken cancellationToken)

Updates the parameters of a source.

Parameters
NameDescription
requestUpdateSourceRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationSourceOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
UpdateSourceRequest request = new UpdateSourceRequest
{
    UpdateMask = new FieldMask(),
    Source = new Source(),
    RequestId = "",
};
// Make the request
Operation<Source, OperationMetadata> response = await migrationCenterClient.UpdateSourceAsync(request);

// Poll until the returned long-running operation is complete
Operation<Source, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Source 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<Source, OperationMetadata> retrievedResponse = await migrationCenterClient.PollOnceUpdateSourceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Source retrievedResult = retrievedResponse.Result;
}

ValidateImportJob(ImportJobName, CallSettings)

public virtual Operation<Empty, OperationMetadata> ValidateImportJob(ImportJobName name, CallSettings callSettings = null)

Validates an import job.

Parameters
NameDescription
nameImportJobName

Required. The name of the import job to validate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.ValidateImportJob(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 = migrationCenterClient.PollOnceValidateImportJob(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;
}

ValidateImportJob(ValidateImportJobRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> ValidateImportJob(ValidateImportJobRequest request, CallSettings callSettings = null)

Validates an import job.

Parameters
NameDescription
requestValidateImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
ValidateImportJobRequest request = new ValidateImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.ValidateImportJob(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 = migrationCenterClient.PollOnceValidateImportJob(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;
}

ValidateImportJob(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> ValidateImportJob(string name, CallSettings callSettings = null)

Validates an import job.

Parameters
NameDescription
namestring

Required. The name of the import job to validate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = MigrationCenterClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = migrationCenterClient.ValidateImportJob(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 = migrationCenterClient.PollOnceValidateImportJob(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;
}

ValidateImportJobAsync(ImportJobName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> ValidateImportJobAsync(ImportJobName name, CallSettings callSettings = null)

Validates an import job.

Parameters
NameDescription
nameImportJobName

Required. The name of the import job to validate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.ValidateImportJobAsync(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 migrationCenterClient.PollOnceValidateImportJobAsync(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;
}

ValidateImportJobAsync(ImportJobName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> ValidateImportJobAsync(ImportJobName name, CancellationToken cancellationToken)

Validates an import job.

Parameters
NameDescription
nameImportJobName

Required. The name of the import job to validate.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ImportJobName name = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]");
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.ValidateImportJobAsync(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 migrationCenterClient.PollOnceValidateImportJobAsync(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;
}

ValidateImportJobAsync(ValidateImportJobRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> ValidateImportJobAsync(ValidateImportJobRequest request, CallSettings callSettings = null)

Validates an import job.

Parameters
NameDescription
requestValidateImportJobRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ValidateImportJobRequest request = new ValidateImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.ValidateImportJobAsync(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 migrationCenterClient.PollOnceValidateImportJobAsync(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;
}

ValidateImportJobAsync(ValidateImportJobRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> ValidateImportJobAsync(ValidateImportJobRequest request, CancellationToken cancellationToken)

Validates an import job.

Parameters
NameDescription
requestValidateImportJobRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
ValidateImportJobRequest request = new ValidateImportJobRequest
{
    ImportJobName = ImportJobName.FromProjectLocationImportJob("[PROJECT]", "[LOCATION]", "[IMPORT_JOB]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.ValidateImportJobAsync(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 migrationCenterClient.PollOnceValidateImportJobAsync(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;
}

ValidateImportJobAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> ValidateImportJobAsync(string name, CallSettings callSettings = null)

Validates an import job.

Parameters
NameDescription
namestring

Required. The name of the import job to validate.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.ValidateImportJobAsync(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 migrationCenterClient.PollOnceValidateImportJobAsync(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;
}

ValidateImportJobAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> ValidateImportJobAsync(string name, CancellationToken cancellationToken)

Validates an import job.

Parameters
NameDescription
namestring

Required. The name of the import job to validate.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
MigrationCenterClient migrationCenterClient = await MigrationCenterClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/importJobs/[IMPORT_JOB]";
// Make the request
Operation<Empty, OperationMetadata> response = await migrationCenterClient.ValidateImportJobAsync(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 migrationCenterClient.PollOnceValidateImportJobAsync(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;
}