Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IpRules
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IpRules
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#allowed ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Allowed
Corresponds to the JSON property
allowed. -
#denied ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Denied
Corresponds to the JSON property
denied. -
#destination_ip_ranges ⇒ Array<String>
Corresponds to the JSON property
destinationIpRanges. -
#direction ⇒ String
Corresponds to the JSON property
direction. -
#exposed_services ⇒ Array<String>
Corresponds to the JSON property
exposedServices. -
#source_ip_ranges ⇒ Array<String>
Corresponds to the JSON property
sourceIpRanges.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IpRules
constructor
A new instance of GoogleCloudSecuritycenterV2IpRules.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IpRules
Returns a new instance of GoogleCloudSecuritycenterV2IpRules.
7273 7274 7275 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Allowed
Corresponds to the JSON property allowed
7246 7247 7248 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7246 def allowed @allowed end |
#denied ⇒ Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Denied
Corresponds to the JSON property denied
7251 7252 7253 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7251 def denied @denied end |
#destination_ip_ranges ⇒ Array<String>
Corresponds to the JSON property destinationIpRanges
7256 7257 7258 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7256 def destination_ip_ranges @destination_ip_ranges end |
#direction ⇒ String
Corresponds to the JSON property direction
7261 7262 7263 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7261 def direction @direction end |
#exposed_services ⇒ Array<String>
Corresponds to the JSON property exposedServices
7266 7267 7268 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7266 def exposed_services @exposed_services end |
#source_ip_ranges ⇒ Array<String>
Corresponds to the JSON property sourceIpRanges
7271 7272 7273 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7271 def source_ip_ranges @source_ip_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7278 7279 7280 7281 7282 7283 7284 7285 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7278 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @denied = args[:denied] if args.key?(:denied) @destination_ip_ranges = args[:destination_ip_ranges] if args.key?(:destination_ip_ranges) @direction = args[:direction] if args.key?(:direction) @exposed_services = args[:exposed_services] if args.key?(:exposed_services) @source_ip_ranges = args[:source_ip_ranges] if args.key?(:source_ip_ranges) end |