/// <summary>Snippet for CreateMigrationWorkflowAsync</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 CreateMigrationWorkflowResourceNamesAsync()
        {
            // Create client
            MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();

            // Initialize request argument(s)
            LocationName      parent            = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
            // Make the request
            MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(parent, migrationWorkflow);
        }
Esempio n. 2
0
        /// <summary>Snippet for CreateMigrationWorkflowAsync</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 CreateMigrationWorkflowAsync()
        {
            // Create client
            MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();

            // Initialize request argument(s)
            string            parent            = "projects/[PROJECT]/locations/[LOCATION]";
            MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
            // Make the request
            MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(parent, migrationWorkflow);
        }
        /// <summary>Snippet for CreateMigrationWorkflowAsync</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 CreateMigrationWorkflowRequestObjectAsync()
        {
            // Create client
            MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();

            // Initialize request argument(s)
            CreateMigrationWorkflowRequest request = new CreateMigrationWorkflowRequest
            {
                ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
                MigrationWorkflow    = new MigrationWorkflow(),
            };
            // Make the request
            MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(request);
        }