Class: Google::Apis::ComputeV1::ForwardingRulesScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForwardingRulesScopedList

Returns a new instance of ForwardingRulesScopedList.



9265
9266
9267
# File 'lib/google/apis/compute_v1/classes.rb', line 9265

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

Instance Attribute Details

#forwarding_rulesArray<Google::Apis::ComputeV1::ForwardingRule>

A list of forwarding rules contained in this scope. Corresponds to the JSON property forwardingRules



9257
9258
9259
# File 'lib/google/apis/compute_v1/classes.rb', line 9257

def forwarding_rules
  @forwarding_rules
end

#warningGoogle::Apis::ComputeV1::ForwardingRulesScopedList::Warning

Informational warning which replaces the list of forwarding rules when the list is empty. Corresponds to the JSON property warning



9263
9264
9265
# File 'lib/google/apis/compute_v1/classes.rb', line 9263

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9270
9271
9272
9273
# File 'lib/google/apis/compute_v1/classes.rb', line 9270

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