searchMigratableResources method

  1. @override
Future<SearchMigratableResourcesResponse> searchMigratableResources(
  1. SearchMigratableResourcesRequest request
)
override

Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<SearchMigratableResourcesResponse> searchMigratableResources(
  SearchMigratableResourcesRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_searchMigratableResources case final searchMigratableResources?) {
    return searchMigratableResources(request);
  }
  throw UnsupportedError('searchMigratableResources');
}