/// <summary>Snippet for CreateMigrationWorkflow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateMigrationWorkflowResourceNames() { // Create client MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create(); // Initialize request argument(s) LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); MigrationWorkflow migrationWorkflow = new MigrationWorkflow(); // Make the request MigrationWorkflow response = migrationServiceClient.CreateMigrationWorkflow(parent, migrationWorkflow); }
/// <summary>Snippet for CreateMigrationWorkflow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateMigrationWorkflow() { // Create client MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]"; MigrationWorkflow migrationWorkflow = new MigrationWorkflow(); // Make the request MigrationWorkflow response = migrationServiceClient.CreateMigrationWorkflow(parent, migrationWorkflow); }
/// <summary>Snippet for CreateMigrationWorkflow</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void CreateMigrationWorkflowRequestObject() { // Create client MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create(); // Initialize request argument(s) CreateMigrationWorkflowRequest request = new CreateMigrationWorkflowRequest { ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), MigrationWorkflow = new MigrationWorkflow(), }; // Make the request MigrationWorkflow response = migrationServiceClient.CreateMigrationWorkflow(request); }