Class: Google::Apis::DnsV2beta1::ManagedZone
- Inherits:
-
Object
- Object
- Google::Apis::DnsV2beta1::ManagedZone
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dns_v2beta1/classes.rb,
generated/google/apis/dns_v2beta1/representations.rb,
generated/google/apis/dns_v2beta1/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::DnsV2beta1::ManagedZoneDnsSecConfig
DNSSEC configuration.
-
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only) Corresponds to the JSON property
id
. -
#kind ⇒ String
Identifies what kind of resource this is.
-
#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
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManagedZone
constructor
A new instance of ManagedZone.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ManagedZone
Returns a new instance of ManagedZone
400 401 402 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 400 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
346 347 348 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 346 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
352 353 354 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 352 def description @description end |
#dns_name ⇒ String
The DNS name of this managed zone, for instance "example.com.".
Corresponds to the JSON property dnsName
357 358 359 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 357 def dns_name @dns_name end |
#dnssec_config ⇒ Google::Apis::DnsV2beta1::ManagedZoneDnsSecConfig
DNSSEC configuration.
Corresponds to the JSON property dnssecConfig
362 363 364 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 362 def dnssec_config @dnssec_config end |
#id ⇒ Fixnum
Unique identifier for the resource; defined by the server (output only)
Corresponds to the JSON property id
367 368 369 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 367 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "dns#
managedZone".
Corresponds to the JSON property kind
373 374 375 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 373 def kind @kind end |
#labels ⇒ Hash<String,String>
User labels.
Corresponds to the JSON property labels
378 379 380 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 378 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
385 386 387 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 385 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
392 393 394 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 392 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
398 399 400 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 398 def name_servers @name_servers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
405 406 407 408 409 410 411 412 413 414 415 416 |
# File 'generated/google/apis/dns_v2beta1/classes.rb', line 405 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) @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) end |