Class: Google::Apis::TrafficdirectorV2::DynamicRouteConfig

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) ⇒ DynamicRouteConfig

Returns a new instance of DynamicRouteConfig.



382
383
384
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 382

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

Instance Attribute Details

#last_updatedString

The timestamp when the Route was last updated. Corresponds to the JSON property lastUpdated

Returns:

  • (String)


368
369
370
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 368

def last_updated
  @last_updated
end

#route_configHash<String,Object>

The route config. Corresponds to the JSON property routeConfig

Returns:

  • (Hash<String,Object>)


373
374
375
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 373

def route_config
  @route_config
end

#version_infoString

This is the per-resource version information. This version is currently taken from the :ref:version_info field at the time that the route configuration was loaded. Corresponds to the JSON property versionInfo

Returns:

  • (String)


380
381
382
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 380

def version_info
  @version_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



387
388
389
390
391
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 387

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