Class: Google::Apis::DnsV1::ManagedZone
- Inherits:
-
Object
- Object
- Google::Apis::DnsV1::ManagedZone
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v1/classes.rb,
generated/google/apis/dns_v1/representations.rb,
generated/google/apis/dns_v1/representations.rb
Overview
A zone is a subtree of the DNS namespace under one administrative responsibility. A ManagedZone is a resource that represents a DNS zone hosted by the Cloud DNS service.
Instance Attribute Summary collapse
-
#creation_time ⇒ String
The time that this resource was created on the server.
-
#description ⇒ String
A mutable string of at most 1024 characters associated with this resource for the user's convenience.
-
#dns_name ⇒ String
The DNS name of this managed zone, for instance "example.com.".
-
#dnssec_config ⇒ Google::Apis::DnsV1::ManagedZoneDnsSecConfig
DNSSEC configuration.
-
#forwarding_config ⇒ Google::Apis::DnsV1::ManagedZoneForwardingConfig
The presence for this field indicates that outbound forwarding is enabled for this zone.
-
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only) Corresponds to the JSON property
id
. -
#kind ⇒ String
Corresponds to the JSON property
kind
. -
#labels ⇒ Hash<String,String>
User labels.
-
#name ⇒ String
User assigned name for this resource.
-
#name_server_set ⇒ String
Optionally specifies the NameServerSet for this ManagedZone.
-
#name_servers ⇒ Array<String>
Delegate your managed_zone to these virtual name servers; defined by the server (output only) Corresponds to the JSON property
nameServers
. -
#peering_config ⇒ Google::Apis::DnsV1::ManagedZonePeeringConfig
The presence of this field indicates that DNS Peering is enabled for this zone.
-
#private_visibility_config ⇒ Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig
For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
-
#reverse_lookup_config ⇒ Google::Apis::DnsV1::ManagedZoneReverseLookupConfig
The presence of this field indicates that this is a managed reverse lookup zone and Cloud DNS will resolve reverse lookup queries using automatically configured records for VPC resources.
-
#service_directory_config ⇒ Google::Apis::DnsV1::ManagedZoneServiceDirectoryConfig
Contains information about Service Directory-backed zones.
-
#visibility ⇒ String
The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManagedZone
constructor
A new instance of ManagedZone.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ManagedZone
Returns a new instance of ManagedZone.
444 445 446 |
# File 'generated/google/apis/dns_v1/classes.rb', line 444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
The time that this resource was created on the server. This is in RFC3339 text
format. Output only.
Corresponds to the JSON property creationTime
353 354 355 |
# File 'generated/google/apis/dns_v1/classes.rb', line 353 def creation_time @creation_time end |
#description ⇒ String
A mutable string of at most 1024 characters associated with this resource for
the user's convenience. Has no effect on the managed zone's function.
Corresponds to the JSON property description
359 360 361 |
# File 'generated/google/apis/dns_v1/classes.rb', line 359 def description @description end |
#dns_name ⇒ String
The DNS name of this managed zone, for instance "example.com.".
Corresponds to the JSON property dnsName
364 365 366 |
# File 'generated/google/apis/dns_v1/classes.rb', line 364 def dns_name @dns_name end |
#dnssec_config ⇒ Google::Apis::DnsV1::ManagedZoneDnsSecConfig
DNSSEC configuration.
Corresponds to the JSON property dnssecConfig
369 370 371 |
# File 'generated/google/apis/dns_v1/classes.rb', line 369 def dnssec_config @dnssec_config end |
#forwarding_config ⇒ Google::Apis::DnsV1::ManagedZoneForwardingConfig
The presence for this field indicates that outbound forwarding is enabled for
this zone. The value of this field contains the set of destinations to forward
to.
Corresponds to the JSON property forwardingConfig
376 377 378 |
# File 'generated/google/apis/dns_v1/classes.rb', line 376 def forwarding_config @forwarding_config end |
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only)
Corresponds to the JSON property id
381 382 383 |
# File 'generated/google/apis/dns_v1/classes.rb', line 381 def id @id end |
#kind ⇒ String
Corresponds to the JSON property kind
386 387 388 |
# File 'generated/google/apis/dns_v1/classes.rb', line 386 def kind @kind end |
#labels ⇒ Hash<String,String>
User labels.
Corresponds to the JSON property labels
391 392 393 |
# File 'generated/google/apis/dns_v1/classes.rb', line 391 def labels @labels end |
#name ⇒ String
User assigned name for this resource. Must be unique within the project. The
name must be 1-63 characters long, must begin with a letter, end with a letter
or digit, and only contain lowercase letters, digits or dashes.
Corresponds to the JSON property name
398 399 400 |
# File 'generated/google/apis/dns_v1/classes.rb', line 398 def name @name end |
#name_server_set ⇒ String
Optionally specifies the NameServerSet for this ManagedZone. A NameServerSet
is a set of DNS name servers that all host the same ManagedZones. Most users
will leave this field unset.
Corresponds to the JSON property nameServerSet
405 406 407 |
# File 'generated/google/apis/dns_v1/classes.rb', line 405 def name_server_set @name_server_set end |
#name_servers ⇒ Array<String>
Delegate your managed_zone to these virtual name servers; defined by the
server (output only)
Corresponds to the JSON property nameServers
411 412 413 |
# File 'generated/google/apis/dns_v1/classes.rb', line 411 def name_servers @name_servers end |
#peering_config ⇒ Google::Apis::DnsV1::ManagedZonePeeringConfig
The presence of this field indicates that DNS Peering is enabled for this zone.
The value of this field contains the network to peer with.
Corresponds to the JSON property peeringConfig
417 418 419 |
# File 'generated/google/apis/dns_v1/classes.rb', line 417 def peering_config @peering_config end |
#private_visibility_config ⇒ Google::Apis::DnsV1::ManagedZonePrivateVisibilityConfig
For privately visible zones, the set of Virtual Private Cloud resources that
the zone is visible from.
Corresponds to the JSON property privateVisibilityConfig
423 424 425 |
# File 'generated/google/apis/dns_v1/classes.rb', line 423 def private_visibility_config @private_visibility_config end |
#reverse_lookup_config ⇒ Google::Apis::DnsV1::ManagedZoneReverseLookupConfig
The presence of this field indicates that this is a managed reverse lookup
zone and Cloud DNS will resolve reverse lookup queries using automatically
configured records for VPC resources. This only applies to networks listed
under private_visibility_config.
Corresponds to the JSON property reverseLookupConfig
431 432 433 |
# File 'generated/google/apis/dns_v1/classes.rb', line 431 def reverse_lookup_config @reverse_lookup_config end |
#service_directory_config ⇒ Google::Apis::DnsV1::ManagedZoneServiceDirectoryConfig
Contains information about Service Directory-backed zones.
Corresponds to the JSON property serviceDirectoryConfig
436 437 438 |
# File 'generated/google/apis/dns_v1/classes.rb', line 436 def service_directory_config @service_directory_config end |
#visibility ⇒ String
The zone's visibility: public zones are exposed to the Internet, while private
zones are visible only to Virtual Private Cloud resources.
Corresponds to the JSON property visibility
442 443 444 |
# File 'generated/google/apis/dns_v1/classes.rb', line 442 def visibility @visibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 |
# File 'generated/google/apis/dns_v1/classes.rb', line 449 def update!(**args) @creation_time = args[:creation_time] if args.key?(:creation_time) @description = args[:description] if args.key?(:description) @dns_name = args[:dns_name] if args.key?(:dns_name) @dnssec_config = args[:dnssec_config] if args.key?(:dnssec_config) @forwarding_config = args[:forwarding_config] if args.key?(:forwarding_config) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @name_server_set = args[:name_server_set] if args.key?(:name_server_set) @name_servers = args[:name_servers] if args.key?(:name_servers) @peering_config = args[:peering_config] if args.key?(:peering_config) @private_visibility_config = args[:private_visibility_config] if args.key?(:private_visibility_config) @reverse_lookup_config = args[:reverse_lookup_config] if args.key?(:reverse_lookup_config) @service_directory_config = args[:service_directory_config] if args.key?(:service_directory_config) @visibility = args[:visibility] if args.key?(:visibility) end |