Class: Google::Apis::ComputeBeta::ForwardingRulesScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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.



8998
8999
9000
# File 'lib/google/apis/compute_beta/classes.rb', line 8998

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

Instance Attribute Details

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

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



8990
8991
8992
# File 'lib/google/apis/compute_beta/classes.rb', line 8990

def forwarding_rules
  @forwarding_rules
end

#warningGoogle::Apis::ComputeBeta::ForwardingRulesScopedList::Warning

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



8996
8997
8998
# File 'lib/google/apis/compute_beta/classes.rb', line 8996

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9003
9004
9005
9006
# File 'lib/google/apis/compute_beta/classes.rb', line 9003

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