Class: Google::Apis::TrafficdirectorV3::DynamicScopedRouteConfigs

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

Overview

[#next-free-field: 7]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DynamicScopedRouteConfigs

Returns a new instance of DynamicScopedRouteConfigs.



584
585
586
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 584

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

Instance Attribute Details

#client_statusString

The client status of this resource. [#not-implemented-hide:] Corresponds to the JSON property clientStatus

Returns:

  • (String)


552
553
554
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 552

def client_status
  @client_status
end

#error_stateGoogle::Apis::TrafficdirectorV3::UpdateFailureState

Set if the last update failed, cleared after the next successful update. The error_state field contains the rejected version of this particular resource along with the reason and timestamp. For successfully updated or acknowledged resource, this field should be empty. [#not-implemented-hide:] Corresponds to the JSON property errorState



560
561
562
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 560

def error_state
  @error_state
end

#last_updatedString

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

Returns:

  • (String)


565
566
567
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 565

def last_updated
  @last_updated
end

#nameString

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

Returns:

  • (String)


570
571
572
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 570

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


575
576
577
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 575

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)


582
583
584
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 582

def version_info
  @version_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



589
590
591
592
593
594
595
596
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 589

def update!(**args)
  @client_status = args[:client_status] if args.key?(:client_status)
  @error_state = args[:error_state] if args.key?(:error_state)
  @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