Class: Google::Apis::TrafficdirectorV2::InlineScopedRouteConfigs

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InlineScopedRouteConfigs

Returns a new instance of InlineScopedRouteConfigs.



538
539
540
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 538

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

Instance Attribute Details

#last_updatedString

The timestamp when the scoped route config set was last updated. Corresponds to the JSON property lastUpdated

Returns:

  • (String)


526
527
528
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 526

def last_updated
  @last_updated
end

#nameString

The name assigned to the scoped route configurations. Corresponds to the JSON property name

Returns:

  • (String)


531
532
533
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 531

def name
  @name
end

#scoped_route_configsArray<Hash<String,Object>>

The scoped route configurations. Corresponds to the JSON property scopedRouteConfigs

Returns:

  • (Array<Hash<String,Object>>)


536
537
538
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 536

def scoped_route_configs
  @scoped_route_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



543
544
545
546
547
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 543

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