readBlobData method

Future<GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse> readBlobData(
  1. String timeSeries, {
  2. List<String>? blobIds,
  3. String? $fields,
})

Gets bytes of TensorboardBlobs.

This is to allow reading blob data stored in consumer project's Cloud Storage bucket without users having to obtain Cloud Storage access permission.

Request parameters:

timeSeries - Required. The resource name of the TensorboardTimeSeries to list Blobs. Format: projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series} Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+/tensorboards/\[^/\]+/experiments/\[^/\]+/runs/\[^/\]+/timeSeries/\[^/\]+$.

blobIds - IDs of the blobs to read.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse>
    readBlobData(
  core.String timeSeries, {
  core.List<core.String>? blobIds,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (blobIds != null) 'blobIds': blobIds,
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$timeSeries') + ':readBlobData';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}