list method
Producers can use this method to retrieve a list of available DNS RecordSets available inside the private zone on the tenant host project accessible from their network.
Request parameters:
parent
- Required. The service that is managing peering connectivity for
a service producer's organization. For Google services that support this
functionality, this value is services/servicenetworking.googleapis.com
.
Value must have pattern ^services/\[^/\]+$
.
consumerNetwork
- Required. The network that the consumer is using to
connect with services. Must be in the form of
projects/{project}/global/networks/{network} {project} is the project
number, as in '12345' {network} is the network name.
zone
- Required. The name of the private DNS zone in the shared producer
host project from which the record set will be removed.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListDnsRecordSetsResponse.
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<ListDnsRecordSetsResponse> list(
core.String parent, {
core.String? consumerNetwork,
core.String? zone,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (consumerNetwork != null) 'consumerNetwork': [consumerNetwork],
if (zone != null) 'zone': [zone],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dnsRecordSets:list';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListDnsRecordSetsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}