Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb
Overview
Represents a range of IP Addresses.
Instance Attribute Summary collapse
-
#length ⇒ Fixnum
Required.
-
#prefix ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthzPolicyAuthzRuleIpBlock
constructor
A new instance of AuthzPolicyAuthzRuleIpBlock.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthzPolicyAuthzRuleIpBlock
Returns a new instance of AuthzPolicyAuthzRuleIpBlock.
456 457 458 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 456 def initialize(**args) update!(**args) end |
Instance Attribute Details
#length ⇒ Fixnum
Required. The length of the address range.
Corresponds to the JSON property length
449 450 451 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 449 def length @length end |
#prefix ⇒ String
Required. The address prefix.
Corresponds to the JSON property prefix
454 455 456 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 454 def prefix @prefix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
461 462 463 464 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 461 def update!(**args) @length = args[:length] if args.key?(:length) @prefix = args[:prefix] if args.key?(:prefix) end |