Пример #1
0
 /// <summary>Snippet for GetDatasetAsync</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 GetDatasetAsync()
 {
     // Create client
     AutoMlClient autoMlClient = await AutoMlClient.CreateAsync();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/datasets/[DATASET]";
     // Make the request
     Dataset response = await autoMlClient.GetDatasetAsync(name);
 }
Пример #2
0
        /// <summary>Snippet for GetDatasetAsync</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 GetDatasetResourceNamesAsync()
        {
            // Create client
            AutoMlClient autoMlClient = await AutoMlClient.CreateAsync();

            // Initialize request argument(s)
            DatasetName name = DatasetName.FromProjectLocationDataset("[PROJECT]", "[LOCATION]", "[DATASET]");
            // Make the request
            Dataset response = await autoMlClient.GetDatasetAsync(name);
        }
Пример #3
0
        /// <summary>Snippet for GetDatasetAsync</summary>
        public async Task GetDatasetRequestObjectAsync()
        {
            // Snippet: GetDatasetAsync(GetDatasetRequest, CallSettings)
            // Additional: GetDatasetAsync(GetDatasetRequest, CancellationToken)
            // Create client
            AutoMlClient autoMlClient = await AutoMlClient.CreateAsync();

            // Initialize request argument(s)
            GetDatasetRequest request = new GetDatasetRequest {
                Name = "",
            };
            // Make the request
            Dataset response = await autoMlClient.GetDatasetAsync(request);

            // End snippet
        }