getBoundaryConfig method
Retrieves the BoundaryConfig identified by the specified name (for
example, folders/123456789/boundaryConfig).
Request parameters:
name - Required. The name of the BoundaryConfig to retrieve. Format:
organizations/{organization}/boundaryConfig or
folders/{folder}/boundaryConfig Example:
folders/123456789/boundaryConfig
Value must have pattern ^organizations/\[^/\]+/boundaryConfig$.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a BoundaryConfig.
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<BoundaryConfig> getBoundaryConfig(
core.String name, {
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v3/' + core.Uri.encodeFull('$name');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return BoundaryConfig.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}