Class: Google::Apis::SqladminV1beta4::DnsNameMapping

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

Overview

DNS metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DnsNameMapping

Returns a new instance of DnsNameMapping.



1838
1839
1840
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1838

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

Instance Attribute Details

#connection_typeString

Output only. The connection type of the DNS name. Corresponds to the JSON property connectionType

Returns:

  • (String)


1826
1827
1828
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1826

def connection_type
  @connection_type
end

#dns_scopeString

Output only. The scope that the DNS name applies to. Corresponds to the JSON property dnsScope

Returns:

  • (String)


1831
1832
1833
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1831

def dns_scope
  @dns_scope
end

#nameString

The DNS name. Corresponds to the JSON property name

Returns:

  • (String)


1836
1837
1838
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1836

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1843
1844
1845
1846
1847
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1843

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