Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthzPolicyAuthzRuleIpBlock

Returns a new instance of AuthzPolicyAuthzRuleIpBlock.



464
465
466
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 464

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

Instance Attribute Details

#lengthFixnum

Required. The length of the address range. Corresponds to the JSON property length

Returns:

  • (Fixnum)


457
458
459
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 457

def length
  @length
end

#prefixString

Required. The address prefix. Corresponds to the JSON property prefix

Returns:

  • (String)


462
463
464
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 462

def prefix
  @prefix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 469

def update!(**args)
  @length = args[:length] if args.key?(:length)
  @prefix = args[:prefix] if args.key?(:prefix)
end