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

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ForwardingRulesScopedList

Returns a new instance of ForwardingRulesScopedList



3932
3933
3934
# File 'generated/google/apis/compute_beta/classes.rb', line 3932

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

Instance Attribute Details

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

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



3924
3925
3926
# File 'generated/google/apis/compute_beta/classes.rb', line 3924

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



3930
3931
3932
# File 'generated/google/apis/compute_beta/classes.rb', line 3930

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3937
3938
3939
3940
# File 'generated/google/apis/compute_beta/classes.rb', line 3937

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