Class: Google::Apis::DnsV1beta2::RrSetRoutingPolicy

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

Overview

A RRSetRoutingPolicy represents ResourceRecordSet data that is returned dynamically with the response varying based on configured properties such as geolocation or by weighted random selection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RrSetRoutingPolicy

Returns a new instance of RrSetRoutingPolicy.



1485
1486
1487
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1485

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

Instance Attribute Details

#geoGoogle::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy

Corresponds to the JSON property geo



1463
1464
1465
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1463

def geo
  @geo
end

#geo_policyGoogle::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy

Corresponds to the JSON property geoPolicy



1468
1469
1470
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1468

def geo_policy
  @geo_policy
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


1473
1474
1475
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1473

def kind
  @kind
end

#wrrGoogle::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy

Corresponds to the JSON property wrr



1478
1479
1480
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1478

def wrr
  @wrr
end

#wrr_policyGoogle::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy

Corresponds to the JSON property wrrPolicy



1483
1484
1485
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1483

def wrr_policy
  @wrr_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1490
1491
1492
1493
1494
1495
1496
# File 'lib/google/apis/dns_v1beta2/classes.rb', line 1490

def update!(**args)
  @geo = args[:geo] if args.key?(:geo)
  @geo_policy = args[:geo_policy] if args.key?(:geo_policy)
  @kind = args[:kind] if args.key?(:kind)
  @wrr = args[:wrr] if args.key?(:wrr)
  @wrr_policy = args[:wrr_policy] if args.key?(:wrr_policy)
end