コード例 #1
0
 /// <summary>Snippet for GetMigrationSubtask</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetMigrationSubtask()
 {
     // Create client
     MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]/subtasks/[SUBTASK]";
     // Make the request
     MigrationSubtask response = migrationServiceClient.GetMigrationSubtask(name);
 }
コード例 #2
0
 /// <summary>Snippet for GetMigrationSubtask</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetMigrationSubtaskResourceNames()
 {
     // Create client
     MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
     // Initialize request argument(s)
     MigrationSubtaskName name = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]");
     // Make the request
     MigrationSubtask response = migrationServiceClient.GetMigrationSubtask(name);
 }
 /// <summary>Snippet for GetMigrationSubtask</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetMigrationSubtaskRequestObject()
 {
     // Create client
     MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
     // Initialize request argument(s)
     GetMigrationSubtaskRequest request = new GetMigrationSubtaskRequest
     {
         MigrationSubtaskName = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"),
         ReadMask             = new FieldMask(),
     };
     // Make the request
     MigrationSubtask response = migrationServiceClient.GetMigrationSubtask(request);
 }