Class: Google::Apis::ComputeAlpha::ForwardingRulesScopedList

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForwardingRulesScopedList

Returns a new instance of ForwardingRulesScopedList.



10449
10450
10451
# File 'lib/google/apis/compute_alpha/classes.rb', line 10449

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

Instance Attribute Details

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

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



10441
10442
10443
# File 'lib/google/apis/compute_alpha/classes.rb', line 10441

def forwarding_rules
  @forwarding_rules
end

#warningGoogle::Apis::ComputeAlpha::ForwardingRulesScopedList::Warning

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



10447
10448
10449
# File 'lib/google/apis/compute_alpha/classes.rb', line 10447

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10454
10455
10456
10457
# File 'lib/google/apis/compute_alpha/classes.rb', line 10454

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