Class: Google::Apis::ComputeAlpha::RouterNatRuleAction
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RouterNatRuleAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#source_nat_active_ips ⇒ Array<String>
A list of URLs of the IP resources used for this NAT rule.
-
#source_nat_drain_ips ⇒ Array<String>
A list of URLs of the IP resources to be drained.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouterNatRuleAction
constructor
A new instance of RouterNatRuleAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RouterNatRuleAction
Returns a new instance of RouterNatRuleAction.
32193 32194 32195 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 32193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_nat_active_ips ⇒ Array<String>
A list of URLs of the IP resources used for this NAT rule. These IP addresses
must be valid static external IP addresses assigned to the project.
Corresponds to the JSON property sourceNatActiveIps
32184 32185 32186 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 32184 def source_nat_active_ips @source_nat_active_ips end |
#source_nat_drain_ips ⇒ Array<String>
A list of URLs of the IP resources to be drained. These IPs must be valid
static external IPs that have been assigned to the NAT. These IPs should be
used for updating/patching a NAT rule only.
Corresponds to the JSON property sourceNatDrainIps
32191 32192 32193 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 32191 def source_nat_drain_ips @source_nat_drain_ips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32198 32199 32200 32201 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 32198 def update!(**args) @source_nat_active_ips = args[:source_nat_active_ips] if args.key?(:source_nat_active_ips) @source_nat_drain_ips = args[:source_nat_drain_ips] if args.key?(:source_nat_drain_ips) end |