Class: Google::Apis::ServicenetworkingV1::DnsZone

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

Overview

Represents a DNS zone resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsZone

Returns a new instance of DnsZone.



1558
1559
1560
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1558

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

Instance Attribute Details

#dns_suffixString

The DNS name suffix of this zone e.g. example.com.. Cloud DNS requires that a DNS suffix ends with a trailing dot. Corresponds to the JSON property dnsSuffix

Returns:

  • (String)


1549
1550
1551
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1549

def dns_suffix
  @dns_suffix
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)


1556
1557
1558
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1556

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1563
1564
1565
1566
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1563

def update!(**args)
  @dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix)
  @name = args[:name] if args.key?(:name)
end