コード例 #1
0
        /// <summary>Snippet for GetMigrationSubtaskAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetMigrationSubtaskResourceNamesAsync()
        {
            // Create client
            MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();

            // Initialize request argument(s)
            MigrationSubtaskName name = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]");
            // Make the request
            MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(name);
        }
        /// <summary>Snippet for GetMigrationSubtaskAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetMigrationSubtaskRequestObjectAsync()
        {
            // Create client
            MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetMigrationSubtaskRequest request = new GetMigrationSubtaskRequest
            {
                MigrationSubtaskName = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"),
                ReadMask             = new FieldMask(),
            };
            // Make the request
            MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(request);
        }