Class: Google::Apis::DnsV1::ManagedZone

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ManagedZone

Returns a new instance of ManagedZone.


168
169
170
# File 'generated/google/apis/dns_v1/classes.rb', line 168

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

Instance Attribute Details

#creation_timeString

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

Returns:

  • (String)

124
125
126
# File 'generated/google/apis/dns_v1/classes.rb', line 124

def creation_time
  @creation_time
end

#descriptionString

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

Returns:

  • (String)

130
131
132
# File 'generated/google/apis/dns_v1/classes.rb', line 130

def description
  @description
end

#dns_nameString

The DNS name of this managed zone, for instance "example.com.". Corresponds to the JSON property dnsName

Returns:

  • (String)

135
136
137
# File 'generated/google/apis/dns_v1/classes.rb', line 135

def dns_name
  @dns_name
end

#idString

Unique identifier for the resource; defined by the server (output only) Corresponds to the JSON property id

Returns:

  • (String)

140
141
142
# File 'generated/google/apis/dns_v1/classes.rb', line 140

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "dns# managedZone". Corresponds to the JSON property kind

Returns:

  • (String)

146
147
148
# File 'generated/google/apis/dns_v1/classes.rb', line 146

def kind
  @kind
end

#nameString

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

Returns:

  • (String)

153
154
155
# File 'generated/google/apis/dns_v1/classes.rb', line 153

def name
  @name
end

#name_server_setString

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

Returns:

  • (String)

160
161
162
# File 'generated/google/apis/dns_v1/classes.rb', line 160

def name_server_set
  @name_server_set
end

#name_serversArray<String>

Delegate your managed_zone to these virtual name servers; defined by the server (output only) Corresponds to the JSON property nameServers

Returns:

  • (Array<String>)

166
167
168
# File 'generated/google/apis/dns_v1/classes.rb', line 166

def name_servers
  @name_servers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


173
174
175
176
177
178
179
180
181
182
# 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