Class: Google::Apis::TrafficdirectorV2::DynamicScopedRouteConfigs

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

Returns a new instance of DynamicScopedRouteConfigs.



420
421
422
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 420

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)


401
402
403
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 401

def last_updated
  @last_updated
end

#nameString

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

Returns:

  • (String)


406
407
408
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 406

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


411
412
413
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 411

def scoped_route_configs
  @scoped_route_configs
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 scoped routes configuration was loaded. Corresponds to the JSON property versionInfo

Returns:

  • (String)


418
419
420
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 418

def version_info
  @version_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



425
426
427
428
429
430
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 425

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)
  @version_info = args[:version_info] if args.key?(:version_info)
end