Class: Google::Apis::ComputeAlpha::NetworkPoliciesScopedList
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NetworkPoliciesScopedList
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Defined Under Namespace
Classes: Warning
Instance Attribute Summary collapse
-
#network_policies ⇒ Array<Google::Apis::ComputeAlpha::NetworkPolicy>
A list of network policies contained in this scope.
-
#warning ⇒ Google::Apis::ComputeAlpha::NetworkPoliciesScopedList::Warning
Informational warning which replaces the list of network policies when the list is empty.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkPoliciesScopedList
constructor
A new instance of NetworkPoliciesScopedList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkPoliciesScopedList
Returns a new instance of NetworkPoliciesScopedList.
38831 38832 38833 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38831 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network_policies ⇒ Array<Google::Apis::ComputeAlpha::NetworkPolicy>
A list of network policies contained in this scope.
Corresponds to the JSON property networkPolicies
38823 38824 38825 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38823 def network_policies @network_policies end |
#warning ⇒ Google::Apis::ComputeAlpha::NetworkPoliciesScopedList::Warning
Informational warning which replaces the list of network policies when the
list is empty.
Corresponds to the JSON property warning
38829 38830 38831 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38829 def warning @warning end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38836 38837 38838 38839 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38836 def update!(**args) @network_policies = args[:network_policies] if args.key?(:network_policies) @warning = args[:warning] if args.key?(:warning) end |