Class: Google::Apis::DomainsV1alpha2::ConfigureDnsSettingsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/domains_v1alpha2/classes.rb,
lib/google/apis/domains_v1alpha2/representations.rb,
lib/google/apis/domains_v1alpha2/representations.rb

Overview

Request for the ConfigureDnsSettings method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigureDnsSettingsRequest

Returns a new instance of ConfigureDnsSettingsRequest.



263
264
265
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 263

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dns_settingsGoogle::Apis::DomainsV1alpha2::DnsSettings

Defines the DNS configuration of a Registration, including name servers, DNSSEC, and glue records. Corresponds to the JSON property dnsSettings



244
245
246
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 244

def dns_settings
  @dns_settings
end

#update_maskString

Required. The field mask describing which fields to update as a comma- separated list. For example, if only the name servers are being updated for an existing Custom DNS configuration, the update_mask is "custom_dns. name_servers". When changing the DNS provider from one type to another, pass the new provider's field name as part of the field mask. For example, when changing from a Google Domains DNS configuration to a Custom DNS configuration, the update_mask is "custom_dns". // Corresponds to the JSON property updateMask

Returns:

  • (String)


255
256
257
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 255

def update_mask
  @update_mask
end

#validate_onlyBoolean Also known as: validate_only?

Validate the request without actually updating the DNS settings. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


260
261
262
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 260

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



268
269
270
271
272
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 268

def update!(**args)
  @dns_settings = args[:dns_settings] if args.key?(:dns_settings)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end