Class: Google::Compute::Data::FirewallAllowedApi

Inherits:
FirewallAllowed show all
Defined in:
lib/google/compute/property/firewall_allowed.rb

Overview

Manages a FirewallAllowed nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from FirewallAllowed

#ip_protocol, #ports

Instance Method Summary collapse

Methods inherited from FirewallAllowed

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ FirewallAllowedApi

Returns a new instance of FirewallAllowedApi.



87
88
89
90
91
92
# File 'lib/google/compute/property/firewall_allowed.rb', line 87

def initialize(args)
  @ip_protocol =
    Google::Compute::Property::String.api_munge(args['IPProtocol'])
  @ports =
    Google::Compute::Property::StringArray.api_munge(args['ports'])
end