queryVersionConfig method
Queries the bare metal admin cluster version config.
Request parameters:
parent
- Required. The parent of the project and location to query for
version config. Format: "projects/{project}/locations/{location}"
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
upgradeConfig_clusterName
- The admin cluster resource name. This is the
full resource name of the admin cluster resource. Format:
"projects/{project}/locations/{location}/bareMetalAdminClusters/{bare_metal_admin_cluster}"
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a QueryBareMetalAdminVersionConfigResponse.
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<QueryBareMetalAdminVersionConfigResponse> queryVersionConfig(
core.String parent, {
core.String? upgradeConfig_clusterName,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (upgradeConfig_clusterName != null)
'upgradeConfig.clusterName': [upgradeConfig_clusterName],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' +
core.Uri.encodeFull('$parent') +
'/bareMetalAdminClusters:queryVersionConfig';
final response_ = await _requester.request(
url_,
'POST',
queryParams: queryParams_,
);
return QueryBareMetalAdminVersionConfigResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}