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

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



2982
2983
2984
# File 'generated/google/apis/compute_v1/classes.rb', line 2982

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

Instance Attribute Details

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

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



2974
2975
2976
# File 'generated/google/apis/compute_v1/classes.rb', line 2974

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



2980
2981
2982
# File 'generated/google/apis/compute_v1/classes.rb', line 2980

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2987
2988
2989
2990
# File 'generated/google/apis/compute_v1/classes.rb', line 2987

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