class Google::Apis::DnsV1::ManagedZone

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.

Attributes

creation_time[RW]

The time that this resource was created on the server. This is in RFC3339 text format. Output only. Corresponds to the JSON property `creationTime` @return [String]

description[RW]

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` @return [String]

dns_name[RW]

The DNS name of this managed zone, for instance “example.com.”. Corresponds to the JSON property `dnsName` @return [String]

id[RW]

Unique identifier for the resource; defined by the server (output only) Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “dns# managedZone”. Corresponds to the JSON property `kind` @return [String]

name[RW]

User assigned name for this resource. Must be unique within the project. The name must be 1-32 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` @return [String]

name_server_set[RW]

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` @return [String]

name_servers[RW]

Delegate your managed_zone to these virtual name servers; defined by the server (output only) Corresponds to the JSON property `nameServers` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dns_v1/classes.rb, line 168
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dns_v1/classes.rb, line 173
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)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @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