Beispiel #1
0
 /// <summary>Snippet for GetMigrationJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetMigrationJobResourceNames()
 {
     // Create client
     DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
     // Initialize request argument(s)
     MigrationJobName name = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]");
     // Make the request
     MigrationJob response = dataMigrationServiceClient.GetMigrationJob(name);
 }
 /// <summary>Snippet for GetMigrationJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetMigrationJob()
 {
     // Create client
     DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/migrationJobs/[MIGRATION_JOB]";
     // Make the request
     MigrationJob response = dataMigrationServiceClient.GetMigrationJob(name);
 }
 /// <summary>Snippet for GetMigrationJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetMigrationJobRequestObject()
 {
     // Create client
     DataMigrationServiceClient dataMigrationServiceClient = DataMigrationServiceClient.Create();
     // Initialize request argument(s)
     GetMigrationJobRequest request = new GetMigrationJobRequest
     {
         MigrationJobName = MigrationJobName.FromProjectLocationMigrationJob("[PROJECT]", "[LOCATION]", "[MIGRATION_JOB]"),
     };
     // Make the request
     MigrationJob response = dataMigrationServiceClient.GetMigrationJob(request);
 }