Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicyGeoPolicyGeoPolicyItem

Returns a new instance of RrSetRoutingPolicyGeoPolicyGeoPolicyItem.



1584
1585
1586
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1584

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

Instance Attribute Details

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1565
1566
1567
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1565

def kind
  @kind
end

#locationString

The geo-location granularity is a GCP region. This location string should correspond to a GCP region. e.g. "us-east1", "southamerica-east1", "asia-east1" , etc. Corresponds to the JSON property location

Returns:

  • (String)


1572
1573
1574
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1572

def location
  @location
end

#rrdatasArray<String>

Corresponds to the JSON property rrdatas

Returns:

  • (Array<String>)


1577
1578
1579
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1577

def rrdatas
  @rrdatas
end

#signature_rrdatasArray<String>

DNSSEC generated signatures for the above geo_rrdata. Corresponds to the JSON property signatureRrdatas

Returns:

  • (Array<String>)


1582
1583
1584
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1582

def signature_rrdatas
  @signature_rrdatas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1589
1590
1591
1592
1593
1594
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1589

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @rrdatas = args[:rrdatas] if args.key?(:rrdatas)
  @signature_rrdatas = args[:signature_rrdatas] if args.key?(:signature_rrdatas)
end