Class: Google::Apis::FirebaseapphostingV1::TrafficSet

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

Overview

A list of traffic splits that together represent where traffic is being routed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TrafficSet

Returns a new instance of TrafficSet.



1997
1998
1999
# File 'lib/google/apis/firebaseapphosting_v1/classes.rb', line 1997

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

Instance Attribute Details

#splitsArray<Google::Apis::FirebaseapphostingV1::TrafficSplit>

Required. The list of traffic splits. Corresponds to the JSON property splits



1995
1996
1997
# File 'lib/google/apis/firebaseapphosting_v1/classes.rb', line 1995

def splits
  @splits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2002
2003
2004
# File 'lib/google/apis/firebaseapphosting_v1/classes.rb', line 2002

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