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.



1561
1562
1563
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1561

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

Instance Attribute Details

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1542
1543
1544
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1542

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)


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

def location
  @location
end

#rrdatasArray<String>

Corresponds to the JSON property rrdatas

Returns:

  • (Array<String>)


1554
1555
1556
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1554

def rrdatas
  @rrdatas
end

#signature_rrdatasArray<String>

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

Returns:

  • (Array<String>)


1559
1560
1561
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1559

def signature_rrdatas
  @signature_rrdatas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1566
1567
1568
1569
1570
1571
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1566

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