configureContactSettings method
- ConfigureContactSettingsRequest request,
- String registration, {
- String? $fields,
Updates a Registration
's contact settings.
Some changes require confirmation by the domain's registrant contact .
Caution: Please consider carefully any changes to contact privacy settings
when changing from REDACTED_CONTACT_DATA
to PUBLIC_CONTACT_DATA.
There
may be a delay in reflecting updates you make to registrant contact
information such that any changes you make to contact privacy (including
from REDACTED_CONTACT_DATA
to PUBLIC_CONTACT_DATA
) will be applied
without delay but changes to registrant contact information may take a
limited time to be publicized. This means that changes to contact privacy
from REDACTED_CONTACT_DATA
to PUBLIC_CONTACT_DATA
may make the
previous registrant contact data public until the modified registrant
contact details are published.
request
- The metadata request object.
Request parameters:
registration
- Required. The name of the Registration
whose contact
settings are being updated, in the format projects / * /locations / * /registrations / *
.
Value must have pattern
^projects/\[^/\]+/locations/\[^/\]+/registrations/\[^/\]+$
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a Operation.
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<Operation> configureContactSettings(
ConfigureContactSettingsRequest request,
core.String registration, {
core.String? $fields,
}) async {
final body_ = convert.json.encode(request);
final queryParams_ = <core.String, core.List<core.String>>{
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' +
core.Uri.encodeFull('$registration') +
':configureContactSettings';
final response_ = await _requester.request(
url_,
'POST',
body: body_,
queryParams: queryParams_,
);
return Operation.fromJson(response_ as core.Map<core.String, core.dynamic>);
}