Exemplo n.º 1
0
 /// <summary>
 /// Asynchronously creates a job to extract this model to Google Cloud Storage.
 /// See [the BigQuery documentation](https://cloud.google.com/bigquery-ml/docs/exporting-models) for more information on model extract jobs.
 /// This method just creates a <see cref="ModelReference"/> and delegates to <see cref="BigQueryClient.CreateModelExtractJobAsync(ModelReference, string, CreateModelExtractJobOptions, CancellationToken)"/>.
 /// </summary>
 /// <param name="destinationUri">The Google Cloud Storage URI (possibly including a wildcard) to extract the model to. Must not be null or empty.</param>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
 /// <returns>A task representing the asynchronous operation. When complete, the result is
 /// the job created for the extract operation.</returns>
 public Task <BigQueryJob> CreateModelExtractJobAsync(string destinationUri, CreateModelExtractJobOptions options = null, CancellationToken cancellationToken = default) =>
 _client.CreateModelExtractJobAsync(Reference, destinationUri, options, cancellationToken);