get method
Get the template associated with a template.
Request parameters:
projectId - Required. The ID of the Cloud Platform project that the job
belongs to.
location - The
regional endpoint
to which to direct the request.
gcsPath - Required. A Cloud Storage path to the template from which to
create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.
view - The view to retrieve. Defaults to METADATA_ONLY.
Possible string values are:
- "METADATA_ONLY" : Template view that retrieves only the metadata associated with the template.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GetTemplateResponse.
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<GetTemplateResponse> get(
  core.String projectId,
  core.String location, {
  core.String? gcsPath,
  core.String? view,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (gcsPath != null) 'gcsPath': [gcsPath],
    if (view != null) 'view': [view],
    if ($fields != null) 'fields': [$fields],
  };
  final url_ = 'v1b3/projects/' +
      commons.escapeVariable('$projectId') +
      '/locations/' +
      commons.escapeVariable('$location') +
      '/templates:get';
  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GetTemplateResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}