Class: Google::Apis::ComposerV1beta1::AllowedIpRange
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1beta1::AllowedIpRange
- Defined in:
- generated/google/apis/composer_v1beta1/classes.rb,
generated/google/apis/composer_v1beta1/representations.rb,
generated/google/apis/composer_v1beta1/representations.rb
Overview
Allowed IP range with user-provided description.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#value ⇒ String
IP address or range, defined using CIDR notation, of requests that this rule applies to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllowedIpRange
constructor
A new instance of AllowedIpRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllowedIpRange
Returns a new instance of AllowedIpRange.
46 47 48 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 46 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. User-provided description.
Corresponds to the JSON property description
32 33 34 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 32 def description @description end |
#value ⇒ String
IP address or range, defined using CIDR notation, of requests that this
rule applies to. You can use the wildcard character "*" to match all IPs
equivalent to "0/0" and "::/0" together.
Examples: 192.168.1.1
or 192.168.0.0/16
or 2001:db8::/32
or 2001:0db8:0000:0042:0000:8a2e:0370:7334
.
IP range prefixes should be properly truncated. For example,
1.2.3.4/24
should be truncated to 1.2.3.0/24
. Similarly, for IPv6,
2001:db8::1/32
should be truncated to 2001:db8::/32
.
Corresponds to the JSON property value
44 45 46 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 44 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
51 52 53 54 |
# File 'generated/google/apis/composer_v1beta1/classes.rb', line 51 def update!(**args) @description = args[:description] if args.key?(:description) @value = args[:value] if args.key?(:value) end |